For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

For example an event for a conference that starts on 1 April 2026 may originally be created in our system on 1 Jan 2026. Then the event’s details don’t change until the 5 Feb 2026 when the event is canceled. The event’s state field then changes to deleted and the deleted_reason changes to cancelled. The event’s updated field would show 2026-02-05T05:00:00Z (for the cancellation change made to the event on 5 Feb 2026).

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:

  1. To find records that have been updated since your last fetch, use the updated.* parameters.

  2. Make sure you’re fetching both active and deleted events e.g. state=active,deleted

    1. For the Broadcasts API, use record_status=active,duplicate,deleted

  3. Ensure you won’t miss changes if records are updated while you’re fetching with sort=-updated

  4. Sync 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?