Get a Saved Location
Get an existing Saved Location.
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
Path parameters
location_idstringRequired
An existing Saved Location ID.
Responses
200
Successful Response
application/json
422
Validation Error
application/json
get
/v1/saved-locations/{location_id}Examples
curl --location 'https://api.predicthq.com/v1/saved-locations/_4Dl3p4Q2zl4ifMjG4Z3ew' \
--header 'Authorization: Bearer TOKEN'import requests
url = "https://api.predicthq.com/v1/saved-locations/_4Dl3p4Q2zl4ifMjG4Z3ew"
headers = {
'Authorization': 'Bearer TOKEN'
}
response = requests.request("GET", url, headers=headers)
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?