Skip to main content

Rate limits, quotas and usage charges

Per-minute rate limits, monthly quotas, the read-unit formula, response headers and download limits.

Each developer account has a plan. The plan sets a per-minute request rate, how many requests and jobs may run at once, and monthly allowances for read units, analysis units and delivered bytes. All keys, OAuth clients and interfaces of the account draw on the same allowance. There is no automatic charge for going over: a request that does not fit the remaining allowance is refused.

Your plan's current numbers are on the Usage page of your developer account and in GET /api/v1/account/usage. The plan fields are: readUnitsPerMonth, requestsPerMinute, concurrentRequests, analysisUnitsPerMonth, concurrentJobs, exportBytesPerMonth, activeKeys, members.

Rate limits

Requests are counted in one-minute buckets per account, measured on the database clock. Concurrent requests and concurrent jobs have their own caps. When a bucket or a cap is full, the API answers 429 rate_limited with a Retry-After header in whole seconds. Wait that long before retrying, and reuse the same X-Request-Id for the retry.

Read units

Reads are charged in read units, based on the rows returned and the size of the response body:

readUnits = max(1, ceil(rows / 1000), ceil(bytesDelivered / 65536))
  • bytesDelivered is the byte length of the response body as published, including its usage member.
  • Every read costs at least one unit. Read operations charge no analysis units.
  • Read units settle when the operation finishes. Delivered bytes are charged at delivery. Replaying a retained response for the same request is not charged again.
  • At admission, the operation's ceiling is held and the difference is released at settlement.
  • Polling jobs.get and reading account.usage cost no read units.
  • A list page is cut short when the next row would exceed your remaining read units, so a page can hold fewer rows than limit.
Read unit examples
Rows Response bytes Read units
1 2,048 1
2,500 40,000 3
100 300,000 5
1,000 65,536 1
1,001 65,537 2

List pages and the results of account.usage carry a usage object with the readUnits, analysisUnits and bytesDelivered charged for that call. Other success bodies have none; their charge shows in the quota headers and on the Usage page.

Response size

A JSON response is at most 2 MiB, or 10 MiB for entity geometry. Entity geometry is returned inline up to 1.9375 MiB; a larger boundary comes back with geometry: null and a reference to its downloadable boundary file. List pages hold at most 1,000 rows within that size. Larger files come through downloads. A download is charged its delivered bytes against the monthly byte allowance and also read units by the same formula, one for every 64 KiB of the file.

Geometry downloads

Boundary geometry is licensed under the ODbL (see Data licences). Accounts on the included allowance can download 20 boundary files (the sourceArtifacts.download operation) per UTC day, counted per account; the count resets at 00:00 UTC. Further downloads that day return 429 rate_limited with Retry-After set to the next UTC day. Paid plans have no daily download limit. On every plan, download starts are also limited per account to bursts of 6, refilled at 12 a minute, with 429 rate_limited and Retry-After when the burst is used up. A refused or replayed request does not use up a download.

Downloads under that limit carry X-Download-Limit, X-Download-Remaining and X-Download-Reset. Every download also carries the licence obligations of the data: Link (rel="license"), X-Data-Attribution, X-Data-Notices (a JSON array of the required notices, including the ODbL share-alike notice) and X-Data-Share-Alike.

Usage headers

Successful responses and 429 responses carry these headers. Quota values are decimal strings and can exceed the safe integer range of JavaScript numbers.

Rate limit and quota headers
Header Meaning
X-Request-Id Accepted logical request identity.
RateLimit-Limit Configured requests per one-minute bucket.
RateLimit-Remaining Nonnegative remaining request tokens.
RateLimit-Reset Integer seconds until DB-time bucket reset.
X-Quota-Read-Remaining Available read units after holds.
X-Quota-Analysis-Remaining Available analysis units after holds.
X-Quota-Bytes-Remaining Available delivery bytes after holds.
X-Quota-Reset Exact UTC monthly period end.
Retry-After Integer seconds to rate/period/lease boundary; maximum 2678400; executing lease 1–30.