Catapult Developer Platform

Rate limiting

Every request is charged against three limits, and all three must pass:

Limit What it bounds
Per user One user's traffic, so a single script cannot starve their colleagues
Per vendor One vendor's traffic against a given customer's data
Per customer Total throughput across every user and vendor — the figure the customer's plan sets

A vendor app acting on a customer's behalf draws on that customer's budget, not a separate one of its own. The values come from the customer's Catapult Developer Platform licence; they are not configurable through this API.

Responses carry X-RateLimit-Limit, -Remaining, -Reset, -Cost and -Scope, on success as well as on 429. They describe one dimension at a time — the one named by X-RateLimit-Scope, which is whichever limit is closest to binding (or, on a 429, the one that refused). X-RateLimit-Limit is that dimension's burst capacity, meaning the most a single request may consume, rather than a per-second rate. A 429 always carries Retry-After; wait at least that long before sending the request again.

What a request costs

Most requests cost one unit. A request costs more when it makes the API do more work on your behalf:

Request Cost
Any request 1
GET /labels, which is not paginated 2
POST /labels and DELETE /labels, which write to the largest store 2
GET /clips/label-value-counts, which aggregates over every matching clip 3
Each distinct value in expand +1
Each ten items in a batch request, or ids in GET /labels and GET /lists/{id}/items/flags, beyond the first ten +1
A read or write whose response carries asset objects: sports, providers, leagues, teams, persons, categories, preferences, clips, list items and source angles +1
GET /clips, which resolves media for every angle of every clip on the page +2

The last two rows apply only when your licence covers media assets, since the assets are only looked up for those callers; see Feature gating. X-RateLimit-Cost shows the total, so a call with three expansions consumes four units of the burst, and a batch of 100 clips costs 1 + 9 = 10 units, or 11 with media assets. On POST /labels every value counts as an item, since each value is stored as its own row: 10 labels with 5 values each are charged as 50 items.

Batch requests take at most 100 items, GET /labels takes at most 100 reference ids, and no request body may exceed 1 MiB. A body over 1 MiB is refused with 413 and not charged; a batch over 100 items is charged as a full batch and refused with 400.

A request whose cost is more than the smallest of your three burst capacities can never succeed, however long you wait, so it is refused with 400 and the code REQUEST_COST_EXCEEDED rather than 429. The response carries X-RateLimit-Limit, X-RateLimit-Cost and X-RateLimit-Scope so you can see by how much; send fewer items, or fewer expand values.

A 503 on any endpoint can mean the caller's limits could not be resolved: the gateway refuses the request rather than serving it without a limit.