Paging
Page numbers and cursors on /events, paging of all other lists, and the list envelope.
Events: page numbers or cursor
GET /events pages in two ways, chosen with paginate.
Page numbers (paginate=offset, the default). Pass page (from 1) and limit (1 to 100, default 50):
"pagination": { "limit": 50, "hasMore": true, "page": 2, "totalItems": 412 }totalItems and hasMore in this mode come from a count that is kept for up to 60 seconds, so right after data changes they can be slightly off. If rows change while you page, a row can move between pages.
Cursor (paginate=cursor). Pass limit and no page. Each page with more after it carries nextCursor:
"pagination": { "limit": 100, "hasMore": true, "nextCursor": "MjAyNi0xMi0wNHwyMDI2LTEyLTA0VDE4OjMwOjAwLjAwMFp8MGI2YzJmMGUtNWE3ZS00ZDNiLTlhNTEtMmYwYzFkN2U0YTEw" }Send it back unchanged with the same filters (&paginate=cursor&cursor=…). The order is fixed (day, start time, id), so nothing is repeated or skipped. There is no total in this mode. When hasMore is false, there is no nextCursor. Use the cursor for syncing and infinite scrolling.
Rules:
sort=rankingwith a cursor answers400.dedup=trueis ignored with a cursor.- A cursor this feed did not issue answers
400; start again without it. - A request with
semanticalways answers in page-number form. Semantic results come from the 100 best-matching event series at most.
All other lists
/showtimes, /locations, /event-series, /festivals, /artists, /works, /works/by-artist/{id} and /genres page with page and limit (1 to 100, default 50):
"pagination": { "limit": 50, "page": 1, "hasMore": false }On all of them hasMore is exact: the API reads one row past the page, and the order ends with the id, so pages neither repeat nor skip a record. Stop when hasMore is false. /genres is ordered by slug; parentId keeps the genres of one parent group.
/works/by-artist/{id} lists the works an artist is credited on, in any role.
/locations/by-region/{id} pages the venues of a region, ordered by name, with page and limit (1 to 200, default 20); name is in the language you ask for, with lang on each row (Languages); its pagination also carries totalItems, the number of venues of the region in your area.
Every list has the same envelope: the records in data and pagination with limit, page and hasMore. A list that takes no page answers in one page: the complete list (/genres/grouped, /regions, /regions/types, /regions/containing-point, /regions/{id}/children, /regions/{id}/ancestors, /regions/scores) or the first limit matches (/regions/search, /showtimes/live), always with "page": 1 and "hasMore": false. A single record is { "data": { … } }.
/genres/grouped answers the whole genre tree at once: each parent group with its genres in genres; a group without genres is left out.
/regions, /regions/containing-point, /regions/{id}/children and /regions/{id}/ancestors return complete lists, with only the regions in your area. /regions/search returns up to limit matches (default 10, at most 50) by name; your area applies before the limit, so you get up to limit matches in your area. /regions/geojson returns up to limit regions (default 1000, at most 5000) of your area as a GeoJSON FeatureCollection (application/geo+json).
A region carries id, name, type, parentId, externalId, areaKm2, population, images and lang; the lists from /regions?externalIds=, /regions/search, /regions/containing-point, /regions/{id}/children and /regions/{id}/ancestors also carry source, validFrom, validTo and translations (the name per language). On those lists name is the official name unless you ask for a language (Languages). /regions/search?withParent=true answers each match in a short form with parentName; withParent takes the same boolean values as the other switches (Parameters).