This page explains how to use the get events catalogue endpoint to create and maintain your own event database.
Fetch all upcoming events
lastUpdatedAt
parameter to retrieve all upcoming events.You can’t get all the events at once. To retrieve all events, make multiple requests by incrementing the pageNumber
parameter until it exceeds the total number of pages indicated in pagination.totalPages
.Store them
data.events
in your own database.Make sure to save the event id
returned for each event to identify them for future updates.Retrieve updates since your last sync
lastUpdatedAt
parameter to the timestamp of your last successful synchronisation.
pageNumber
parameter to retrieve all updates.
Store changes
Update deleted events
eventIdsDeleted
for events removed due to duplicates identified since your last sync.
To keep your database up to date, delete the events matching these ids.
sources
id
s.
For example, if you’ve stored interactions with these events, you can transfer them to the newly merged events.