Skip to Content
CoworkingView Docs
Public API

Limits

How the CoworkingView API rate limit works, which headers tell you where you stand and what to do on a 429.

The API is open and needs no key, so it protects itself with a rate limit. Reads are free and unauthenticated; the limit exists so that one busy client cannot slow everyone else down.

How it works

  • Requests are limited per client IP address.
  • Reads (GET) and writes (POST) have separate budgets: heavy reading never uses up the budget for sending an enquiry.
  • The numbers are not fixed in this documentation. Don't hard-code them: read them from the response headers, which always describe the budget that applies to you.

Headers on every response

HeaderMeaning
RateLimit-LimitHow many requests your current budget allows.
RateLimit-RemainingHow many requests you have left in the current window.
RateLimit-ResetSeconds until the budget resets.
RateLimit-PolicyThe budget and window in the format of the IETF rate limit headers draft.
X-RateLimit-RemainingThe older name for RateLimit-Remaining, kept for existing clients.

When you go over: 429

A request over budget is answered with HTTP 429, a Retry-After header (seconds to wait) and a problem document with code: "RATE_LIMITED":

429 response
HTTP/1.1 429 Too Many Requests
Content-Type: application/problem+json
Retry-After: 12
RateLimit-Remaining: 0
{
  "type": "https://coworkingview.com/problems/rate-limited",
  "title": "Too many requests",
  "status": 429,
  "code": "RATE_LIMITED",
  "detail": "Retry in 12s."
}

Wait for Retry-After

Don't retry before that many seconds have passed. Retrying immediately only delays the moment the budget comes back.

Back off if it happens again

Wait longer each time (for example double the wait, up to a ceiling) and add a little randomness so that many workers don't all return at once.

Show a calm message to people

If a person is waiting, say that the service is busy and that you will try again, rather than showing a raw error.

Staying well under the limit

  • Read the headers and slow down when RateLimit-Remaining gets low, instead of waiting for a 429.
  • Cache. Most responses can be reused for minutes or hours; see Caching. Revalidating with If-None-Match costs far less than a full download.
  • Ask for less. Use filters and pageSize instead of downloading everything and filtering yourself. Use /v1/properties/map when you only need coordinates.
  • Don't poll. The catalogue changes slowly; there is no need to re-read it every few seconds.
  • Call from your backend. One server with a cache serves many users with few requests.

Calling from a browser

Calls made by JavaScript running in a browser on another website are not supported: the API doesn't allow other origins. Call it from your backend or a server-side function and pass the result to your page. This also keeps your cache in one place.

Need more room for a real project, or something looks wrong? Write to us through coworkingview.com and quote the traceId of an error if you have one.

On this page