Search Saved Locations
Search for existing Saved Locations.
Authorizations
AuthorizationstringRequired
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
Query parameters
qstringOptional
A full-text search query that searches across the following fields:
namedescriptionlocation_codeformatted_addresslabels
E.g. q=alabama
offsetintegerOptionalDefault:
Offset the results.
0limitintegerOptionalDefault:
Limit the number of results.
10location_idstring[]Optional
A comma-separated string consisting of a list of 1 or more location_id's.
E.g. ?location_id=6TxvEapQeDzq9y_UKVRQCQ
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
/v1/saved-locationsExamples
curl --location 'https://api.predicthq.com/v1/saved-locations?q=alabama&limit=50' \
--header 'Authorization: Bearer TOKEN'import requests
url = "https://api.predicthq.com/v1/saved-locations?q=alabama&limit=50"
payload={}
headers = {
'Authorization': TOKEN
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)OpenAPI Spec
The OpenAPI spec for Saved Locations API can be found here.
Guides
Below are some guides relevant to this API:
Last updated
Was this helpful?