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.
High-level Guide to Keeping Data Updated
import requests
response = requests.get(
url="https://api.predicthq.com/v1/events/",
headers={
"Authorization": "Bearer $ACCESS_TOKEN",
"Accept": "application/json"
},
params={
"updated.gte" : "2023-07-01",
"updated.lte" : "2023-07-10",
"state" : "active,deleted",
"sort": "-updated",
"limit": 500
}
)
print(response.json())Last updated
Was this helpful?