Saved Locations API
Search Events for a Saved Location
Returns events that impact the specified Saved Location. Please refer to the Events API docs for the available query parameters in addition to those listed below.
get/v1/saved-locations/{location_id}/insights/events
Request
- Base URLhttps://api.predicthq.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
location_idstring required
An existing Saved Location ID.
Query parameters
date_range_type'next_90d'
The type of date range for insight calculations. Currently only next_90d is supported.
Date range to fetch events for.
Currently the only supported date ranges are:
- next_90d
offsetinteger
Zero-based index of the first result to return.
limitinteger
Maximum number of results to return per page.
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.