For the complete documentation index, see llms.txt. This page is also available as Markdown.

Example Queries

If this is your first time using the API please reference the Quick Start section to get familiar with getting a placekey as a response. The example queries below show how to include optional parameters and return additional Placekey types like address_placekey and building_placekey as well as additional fields like confidence_score.

Get a Placekey for a POI

Example Request:

curl --location 'https://api.placekey.io/v1/placekey' \
--header 'apikey: {{apikey}}' \
--header 'Content-Type: application/json' \
--data '{
  "query": {
    "location_name": "San Francisco City Hall",
    "street_address": "1 Dr Carlton B Goodlett Pl",
    "city": "San Francisco",
    "region": "CA",
    "postal_code": "94102",
    "iso_country_code": "US",
    "latitude": 37.7793,
    "longitude": -122.4193,
    "place_metadata": {
      "store_id": "1234",
      "phone_number": "1234567890",
      "website": "sfgsa.org",
      "naics_code": "712120",
      "mcc_code": "9399"
    }
  },
  "options": {"fields": ["address_placekey", "building_placekey", "confidence_score"]}
}'

Example Response:

Get a Placekey for an Address

Example Request:

Example Response:

Get a Placekey for a Pair of Coordinates

Example Request:

Example Response:

Get a Placekey with a Geocode

You can request geographic coordinates for the matched address by including "geocode" in the options.fields array. Each geocode counts as an additional lookup.

Example Request:

Example Response:

Get a Placekey with a Custom Query ID

With multiple queries, you can also specify an ID with each query that echoes back.

Example Request:

Example Response:

Last updated