Keep Data Updated via API
Event information changes frequently. For example, a date changes, an event gets cancelled or ranking is updated. It’s important to keep your data set up to date.
Events often change or get deleted because they’re cancelled, postponed, marked as duplicates or identified as spam. In February 2020, concerns about COVID-19 led to a 500% spike in cancellations and postponements of significant events when compared to February 2019. It’s important to make sure you keep your copy of PredictHQ in-sync with ours to stay up-to-date.
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.
Use the
updated.*
parameters to find records that have been updated since your last fetch.Make sure you’re fetching both
active
anddeleted
events e.g.state=active,deleted
For the Broadcast API you would use
record_status=active,duplicate,deleted
Ensure you won’t miss changes if records are updated while you’re fetching with
sort=-updated
We recommend syncing every 24 hours or more frequently for unscheduled events if needed.
An example request in Python is below:
Last updated
Was this helpful?