Search Events for a Saved Location
Search for events happening in an existing Saved Location.
Request
HTTP Request
GET https://api.predicthq.com/v1/saved-locations//insights/events
Path Parameters
Parameter
Description
location_id
An existing Saved Location ID.
Query Parameters
Parameter
Description
date_range_type
string
Date range to fetch events for. Currently the only supported date ranges are:
next_90d
E.g. ?date_range_type=next_90d
Response
Response Fields
Field
Description
count
number
Total number of results found.
results
array
List of results where each item is an Event.
Please refer to the response fields section in Search Events for the structure of each record.
Examples
curl --location 'https://api.predicthq.com/v1/saved-locations/0b6ZrOnTdB2Y7k4zC_9qBg/insights/events?date_range_type=next_90d&category=public-holidays%2Csports&sort=start' \
--header 'Authorization: Bearer TOKEN'
Guides
Below are some guides relevant to this API:
Last updated
Was this helpful?