Skip to main content

graphQL API of safegraph.com using Python functions

Project description

https://github.com/datamade/census/workflows/Python%20package/badge.svg

API of https://api.safegraph.com/v1/graphql

Installation

pip install safegraphQL

Usage

First, get yourself a SafeGraph API key.

from safegraphql import client
graph = client.HTTP_Client("MY_API_KEY")
placekeys = [
    "zzw-222@8fy-fjg-b8v", # (Disney World)
    "zzy-227@5sb-8cw-pjv", # (O'Hare Airport)
    "222-223@65y-rxx-djv", # (Walmart in Albany, NY)
    ]
# returns pandas dataframe
df = graph.places(placekeys, columns="*")

Datasets

  • CORE PLACES

Reliable POI For Accuracy In Your Data Models. With global coverage for any brand you request, our Core dataset provides high quality data for the POI you care about.

  • GEOMETRY

Machine Generated, Human Verified Building Footprint Polygons. SafeGraph Geometry allows data leaders to understand POI footprints with spatial hierarchy metadata.

  • PATTERNS

Understand Consumer Behavior With Verified Foot Traffic Data. Aggregate foot fall data to either specific POIs or to Census Block Groups (CBGs) with SafeGraph Patterns.

Examples

  • places

  • search

  • place_by_name

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

safegraphQL-0.1.1.tar.gz (9.7 kB view hashes)

Uploaded Source

Built Distribution

safegraphQL-0.1.1-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page