Search Places
Search for a Place.
The Places API gives you a read-only interface to PredictHQ's places data. A place represents a Geonames Feature, which can be either an Area, an Administrative Feature, or a Populated Place.
Places can be used to search and filter events using named geographic features rather than a radius, latitude and longitude (see events' place.scope and place.exact parameters). This is helpful when searching for all events that apply to a continent, country, state, region, province, county or city.
Enter your PredictHQ API key. The Bearer prefix is added automatically.
When calling the API directly, send: Authorization: Bearer <YOUR_API_KEY> as documented at https://docs.predicthq.com/api/overview/authenticating
A comma-separated list of place identifiers.
E.g. ?id=5115985
A comma-separated list of ISO 3166-1 alpha-2 country code.
E.g. ?country=US
A coordinate in the form @{latitude},{longitude}.
E.g. [email protected],-73.88236
A full-text search query.
E.g. ?q=New+York
Successful Response
Validation Error
Examples
OpenAPI Spec
The OpenAPI spec for Places API can be found here.
Guides
Below are some guides relevant to this API:
Last updated
Was this helpful?