Keep data updated via API
Event information changes frequently. For example, a date changes, an event gets canceled, or ranking is updated. It’s important to keep your data set up to date.
Events change constantly: dates move, events are canceled or postponed, Predicted Attendance values are revised, and records are merged as duplicates or removed as spam. A stale local store degrades everything built on it - models score against outdated signals, and grounded AI systems answer from events that no longer exist. Keeping your store in sync is what keeps those outputs true.
Our records have an updated field which indicates the date/time the record was last updated.
High-level guide to keeping data updated
The best way to update your data store is to search for records that have changed since you last synced:
To find records that have been updated since your last fetch, use the
updated.*parameters.Make sure you’re fetching both
activeanddeletedevents e.g.state=active,deletedFor the Broadcasts API, use
record_status=active,duplicate,deleted
Ensure you won’t miss changes if records are updated while you’re fetching with
sort=-updatedSync every 24 hours, or more frequently for unscheduled events if needed.
The following example request in Python fetches updated events:
import requests
response = requests.get(
url="https://api.predicthq.com/v1/events/",
headers={
"Authorization": "Bearer $API_TOKEN",
"Accept": "application/json"
},
params={
"updated.gte" : "2026-07-01",
"updated.lte" : "2026-07-10",
"state" : "active,deleted",
"sort": "-updated",
"limit": 500
}
)
print(response.json())Last updated
Was this helpful?