Get a Saved Location
Get an existing Saved Location.
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
An existing Saved Location ID.
Successful Response
The user-supplied identifier for the location.
E.g. 4t855453234t5623
4t855453234t5623The user defined name of the Saved Location set in the create location call.
E.g. My Parking Building
My Parking BuildingA list of user defined labels for the location.
E.g.: ["test", "retail"]
testAn array of place ids (see the Places API) for locations that are defined as covering an area (see City, State, Country locations) rather than a point and radius.
E.g. [2750405]
[2750405]The address of the location. This can be supplied when created a location. If it's not supplied it will be populated by a reverse geocode.
E.g.
{
"formatted_address": "666 Mission St, San Francisco, CA 94105, USA",
}
666 Mission St, San Francisco, CA 94105, USAThe creation date time for the location in ISO 8601 format.
E.g. 2022-04-26T11:46:24+00:00
2022-04-26T11:46:24+00:00The last update date time for the location in ISO 8601 format.
E.g. 2022-04-26T11:46:24+00:00
2022-04-26T11:46:24+00:00The date time the location was last enriched in ISO 8601 format.
E.g. 2022-04-26T11:46:25+00:00
2022-04-26T11:46:25+00:00The date/time insights were last calculated for the location in ISO 8601 format.
E.g. 2022-04-26T11:46:25+00:00
The ID of the user who created the saved location. This is present for location created in the WebApp. For locations created via the API this field will not be populated.
E.g. hjqkKozgS8mm
hjqkKozgS8mmReflects if a location has been updated by the enrichment process. When a location is initially created its status will be pending.
After the enrichment process has updated the location populating summary_insights and other fields the status will be active.
Typically locations only have the pending status for a short time.
E.g. active
activePossible values: The autogenerated identifier for the saved location.
E.g. 8gZ2rn8BRcTjM_3SWdjP
8gZ2rn8BRcTjM_3SWdjPValidation Error
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
Guides
Last updated
Was this helpful?