For the complete documentation index, see llms.txt. This page is also available as Markdown.

Search Saved Locations

Search for existing Saved Locations.

Search Saved Locations

get

Search and list Saved Locations. Supports full-text search across name, description, location_code, formatted_address, and labels via the q parameter.

Saved Locations are standalone geographic entities that exist independently of any other PredictHQ product. Creating a Saved Location does not create a Beam Analysis — those must be created separately.

The returned location_id values can be passed directly to the Events API, Features API, and Beam API without needing to supply coordinates each time.

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:

  • name
  • description
  • location_code
  • formatted_address
  • labels

E.g. q=alabama

offsetintegerOptional

Offset the results.

Default: 0
limitintegerOptional

Limit the number of results.

Default: 10
location_idstring[] · max: 100Optional

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

A paginated list of Saved Location records.

countintegerRequired

Total number of results found.

get/v1/saved-locations

Examples

curl --location 'https://api.predicthq.com/v1/saved-locations?q=alabama&limit=50' \
--header 'Authorization: Bearer TOKEN'

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?