> For the complete documentation index, see [llms.txt](https://docs.ticksights.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ticksights.com/api/conventions.md).

# Conventions

These rules apply to every endpoint. Anything specific to a single endpoint is documented with that endpoint.

#### Pagination

List endpoints take `page` (default 1) and `limit` (default 10, max 100) and answer with `total_count`, `page`, `limit` and the list itself. `total_count` counts every match, not just the current page.

`/topsellers` is the exception: it returns a plain array, so there is no `total_count`. A page with fewer than `limit` entries is the last one.

`/sales` is not paginated at all: it returns the most recent sales, at most 50, and there is no `page`. Narrow it with `marketplace`, `countryCode` or `venueId` instead.

Paging deep into a large result set gets slower the further you go. Rather than walking every page, narrow the result first: `updatedSince` on `/events` returns only what changed since your last sync, and `dateFrom`/`dateTo` on `/event/{id}/sales` limits the range.

#### Caching

Every GET endpoint sends an `ETag` and `Cache-Control: private, max-age=60` (300 for `/venues`). Send the ETag back as `If-None-Match` and you get `304 Not Modified` with an empty body when nothing changed. A 304 still counts against your rate limit.

#### Timezones

`Created`, `last_update` and the `date` of a sale are UTC. The `date` of an event is the local date at the venue and is returned unchanged.

Date filters follow the field they apply to: `updatedSince` (on `last_update`) and `dateFrom`/`dateTo` on `/event/{id}/sales` take UTC, while `dateFrom`/`dateTo` on `/events` refer to the local event date. Both accept `Y-m-d` or `Y-m-d H:i:s`; a plain date in `dateTo` includes the whole day.
