Authentication
Getting an API Key
Sign in with your SafeGraph Shop account, and create an API key here:
https://shop.safegraph.com
Using curl
curl 'https://api.safegraph.com/v1/graphql' \
-H 'apikey: {YOUR_API_KEY}' \
-H 'content-type: application/json' \
--data-raw '{
"query":"query {\n lookup(placekey: \"225-222@5vg-7gs-t9z\") {\n\t\tsafegraph_core {\n\t\t\tlocation_name\n\t\t\ttop_category\n\t\t\tstreet_address\n\t\t\tcity\n\t\t\tregion\n\t\t\tlatitude\n\t\t\tlongitude\n\t\t}\n\t}\n}\n"
}'
Passing the API Key
Requests are authenticated by passing your API key in the apikey
header.
apikey: {YOUR_API_KEY}