Quick Start
In order to make your first request you need an API key. You can create your API key by logging into your self-service dashboard.
🚧 Need an API Key
If you need an API key you can sign up for an account and get your key here.
Get a Placekey for an Address
To get started you can use the below query to get a Placekey for just an address.
Example Request:
curl --location 'https://api.placekey.io/v1/placekey' \
--header 'apikey: {{apikey}}' \
--header 'Content-Type: application/json' \
--data '{
"query": {
"street_address": "1543 Mission Street, Floor 3",
"city": "San Francisco",
"region": "CA",
"postal_code": "94105",
"iso_country_code": "US",
"latitude": 37.7371,
"longitude": -122.44283
}
}'import requests
import json
url = "https://api.placekey.io/v1/placekey"
payload = json.dumps({
"query": {
"street_address": "1543 Mission Street, Floor 3",
"city": "San Francisco",
"region": "CA",
"postal_code": "94105",
"iso_country_code": "US",
"latitude": 37.7371,
"longitude": -122.44283
}
})
headers = {
'apikey': '{{apikey}}',
'Content-Type': 'application/json'
}
response = requests.post(url, headers=headers, data=payload)
print(response.text)Example Response:
Get a Placekey for a POI
Get a Placekey for a POI, a specific physical location which someone may find interesting. Restaurants, retail stores, and grocery stores are all examples of Points-of-Interest. Since the phrase is a mouthful, Point-of-Interest is often abbreviated as 'POI'.
Example Request:
Example Response:
Get a Placekey for a Pair of Coordinates
If you only have a pair of coordinates you can still get a Placekey. The Placekey will only contain the "Where" part. If you need a refresher on the Placekey structure and design visit this page.
Example Response:
Last updated