Search Places
Search for a Place.
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
Zero-based index of the first result to return.
0Maximum number of results to return per page.
10A 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. ?location=@40.66677,-73.88236
A full-text search query.
E.g. ?q=New+York
Successful Response
Total number of places matching the query
URL to next page
URL to previous page
Bad Request
Unauthorized
Forbidden
GET /v1/places HTTP/1.1
Host: api.predicthq.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 1,
"next": "text",
"previous": "text",
"results": [
{
"id": "text",
"type": "planet",
"name": "text",
"county": "text",
"region": "text",
"country": "text",
"country_alpha2": "text",
"country_alpha3": "text",
"location": [
1
]
}
]
}Examples
OpenAPI Spec
Guides
Last updated
Was this helpful?