Get a Saved Location

Get an existing Saved Location.

Get a Saved Location

get
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
chevron-right
200

Successful Response

application/json
location_codestringOptional

The user-supplied identifier for the location.

E.g. 4t855453234t5623

Example: 4t855453234t5623
namestringOptional

The user defined name of the Saved Location set in the create location call.

E.g. My Parking Building

Example: My Parking Building
labelsstring[]Optional

A list of user defined labels for the location.

E.g.: ["test", "retail"]

Example: test
place_idsinteger[]Optional

An 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]

Example: [2750405]
formatted_addressstringOptional

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",
  }
Example: 666 Mission St, San Francisco, CA 94105, USA
create_dtstring · date-timeRequired

The creation date time for the location in ISO 8601 format.

E.g. 2022-04-26T11:46:24+00:00

Example: 2022-04-26T11:46:24+00:00
update_dtstring · date-timeRequired

The last update date time for the location in ISO 8601 format.

E.g. 2022-04-26T11:46:24+00:00

Example: 2022-04-26T11:46:24+00:00
enrich_dtstring · date-timeOptional

The date time the location was last enriched in ISO 8601 format.

E.g. 2022-04-26T11:46:25+00:00

Example: 2022-04-26T11:46:25+00:00
insights_dtstring · date-timeOptional

The date/time insights were last calculated for the location in ISO 8601 format.

E.g. 2022-04-26T11:46:25+00:00

user_idstringOptional

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

Example: hjqkKozgS8mm
statusstring · enumRequired

Reflects 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

Example: activePossible values:
location_idstringRequired

The autogenerated identifier for the saved location.

E.g. 8gZ2rn8BRcTjM_3SWdjP

Example: 8gZ2rn8BRcTjM_3SWdjP
get
/v1/saved-locations/{location_id}

Examples

curl --location 'https://api.predicthq.com/v1/saved-locations/_4Dl3p4Q2zl4ifMjG4Z3ew' \
--header 'Authorization: Bearer TOKEN'

OpenAPI Spec

The OpenAPI spec for Saved Locations API can be found herearrow-up-right.

Guides

Below are some guides relevant to this API:

Last updated

Was this helpful?