API docs

Limits

This page states every limit of the API and what a request over a limit gets. The errors page lists every answer of the API.

Organisation limits

Each organisation has the limits below. The table shows their default values. The service's staff can change them for your organisation.

LimitDefaultWhat a request over it gets
Submit requests per minute150429 rate_limit_error
Read requests per minute600429 rate_limit_error
Unfinished jobs at one time1,000See Caps on jobs.
Jobs per 24 hours1,000See Caps on jobs.
Minutes of video per hour108See The queue window.
Download links per file per 24 hours20429 rate_limit_error

Requests per minute

Caps on jobs

The queue window

Your organisation may queue 72 hours of processing. At the default of 108 minutes of video per hour, that is 7,776 minutes of video.

So at the default limits, one batch can hold at most 259 inputs whose links passed the link rules. A batch of 260 such inputs gets 400 with the param inputs and the message The batch holds more video than the organisation may queue.

A batch that fits the window alone, but not together with your unfinished jobs, gets 429 capacity_exceeded. Its Retry-After header says when to try again.

Credits

Your organisation prepays credits. Each output has a price in credits for each minute of video. Prices are not published on these pages.

A batch that needs more credit than your organisation has gets 429 insufficient_quota with the message The organisation does not have enough credit for this batch. This answer has no Retry-After header: add credit before you send the batch again.

When an output that a batch asks for has no price, the batch gets 503 service_unavailable with a Retry-After of 300 seconds (5 minutes). pii_blur is part of every batch.

Processing limits

The API does not see the video when it accepts a batch. So a video outside these limits is accepted, and its job fails later.

Request limits

LimitValue
Inputs in one batch1 to 1,000
Body of POST /batches8 MiB
Body of cancel and of a result delete1,024 bytes
Idempotency-Key1 to 255 printable ASCII characters without spaces
JSON values in one body100,000
Length of one string65,536 UTF-16 code units
Nesting of arrays and objects32 levels
Length of a link1 to 4,096 characters
Length of a link's host253 characters
Items on a page of GET /batches1 to 100
Items on a page of a job list1 to 1,000

A body of POST /batches over 8 MiB gets 413 request_too_large. A body nested too deep gets 400 with the message The body nests arrays and objects deeper than 32 levels. The input contract lists every message of the JSON rules.

Failed authentications

The API counts failed authentications from each IP address. An IPv6 address counts as its /64 network. A failed authentication is a request with a missing, malformed, unknown or revoked key.

Admission limits

The service shares its capacity between organisations and between requests.

Retry-After

Every Retry-After header holds a whole number of seconds, at most 86,400 seconds (24 hours).

Downloads

The service downloads each video and each CSV IMU file from its link.

LimitValue
Size of a video file8 GiB
Size of an IMU file256 MiB
Name lookup5 seconds
Connection and TLS handshake, together10 seconds
First answer after the TLS handshake30 seconds
Response headers16,384 bytes
Whole download3,600 seconds (1 hour)
RateAt least 4 MiB per second, measured over each window of 30 seconds

Retention

The result of a job is kept for 30 days after the job finishes. The job's expires_at says when. After that time, the result route answers 410 result_expired. You can delete a result before that time.