DataRivo APIDataRivo APIDataRivo API

Errors

The error format, status codes and how to handle them.

Every error response has the same shape:

{
  "error": {
    "code": "not_entitled",
    "message": "Your plan doesn't include Rental Data. Add it to your plan.",
    "details": { "missing": "mls:rental" },
    "requestId": "9f2c1e7a4b3d4e8f9a0b1c2d3e4f5a6b"
  }
}
FieldTypeDescription
error.codestringA stable, machine-readable code. Branch on this, not on the message.
error.messagestringA human-readable explanation.
error.detailsanyExtra context when there is some, such as what your plan is missing or the invalid fields of a validation error. Often null.
error.requestIdstringThe ID of this request, also returned in the X-Request-ID header of every response. Include it when you contact support.

A request that returns an error uses no credits.

Error codes

StatusCodeWhat to do
400bad_requestFix the request; for details.field: "cursor", start again without the cursor
400search_too_broadThe search matches too many listings to answer quickly; add more of the address or a county or zipCode filter
401unauthorizedSend a valid, active API key; see Authentication
402out_of_creditsNo credits left this cycle; details has creditsRequired, creditsRemaining and resetDate. Buy a top-up or wait for the reset; see Running out
403subscription_requiredNo active plan: choose one in the portal. With details.reason: "payment_overdue", your plan is paused until the overdue invoice is paid; see Overdue payments
403not_entitledYour plan doesn't include this dataset, state, county or listing service; details.missing says what to add
403product_blockedThis endpoint is switched off, for everyone or for your workspace; details.product names it. Contact support
403forbiddenThe key's team member has a role without access to property data
403workspace_deactivatedYour workspace is deactivated; contact support
404not_foundNo record has this ID
422validation_errorFix the parameters listed in details, such as an unknown state
429too_many_requestsToo many requests at once or too fast; wait the number of seconds in the Retry-After header, then retry. See Rate limits
429product_limit_reachedYour workspace reached its monthly request limit for this endpoint; details has product, monthlyLimit, used and resetDate (when the limit resets)
500internal_errorRetry later; contact support with the requestId if it persists

Rate limits

Data requests are limited so one client can't slow the API for everyone:

LimitDefaultApplies to
Requests per second20 per second, with short bursts of up to 40Each API key
Requests running at once10Your whole workspace, all keys together

A request over a limit is refused with 429 too_many_requests before anything is read, and uses no credits. The response has a Retry-After header with the number of seconds to wait, and details says which limit you hit:

FieldDescription
scoperate (too many requests per second for this key) or concurrency (too many of your workspace's requests running at once).
limitThe limit: requests per second for rate, requests at once for concurrency.
retryAfterSecondsSeconds to wait before retrying; the same as the Retry-After header.
{
  "error": {
    "code": "too_many_requests",
    "message": "Too many requests. Slow down and retry after the Retry-After delay.",
    "details": { "scope": "rate", "limit": 20, "retryAfterSeconds": 1 },
    "requestId": "5e1b7c9d2a4f4b6e8c0d1e2f3a4b5c6d"
  }
}

To stay under the limits:

  • Wait at least Retry-After seconds before retrying a 429, and add some random jitter so parallel workers don't retry together. If the retry is refused again, double the wait each time.
  • Run at most a few requests in parallel across all your keys, and page through a feed one page at a time with cursor.
  • Spread large syncs over time instead of sending them in a burst. Using more keys doesn't raise the workspace's limit on requests at once.

What your plan is missing

not_entitled errors name what to add to your plan in details.missing:

missingAdd to your plan
state:VAThat state
county:VA:Fairfax CountyThat county: you filtered by a county your plan doesn't include. If its state isn't in your plan either, the message says so
mls:listing, mls:rentalListing Data or Rental Data
mls:listing:property_list, mls:rental:tax_history, ...That option or detail of the category; see Options
mls:Bright MLSThat listing service

A county filter outside your plan is refused rather than returning an empty list, so you can tell "not in my plan" from "no matching records". For example, with Virginia bought by county:

{
  "error": {
    "code": "not_entitled",
    "message": "Your plan doesn't include Fairfax County (VA). In Virginia it includes: Arlington County, Loudoun County.",
    "details": { "missing": "county:VA:Fairfax County" },
    "requestId": "8f14e45fceea167a5a36dedd4bea2543"
  }
}

A county name with no data anywhere isn't an error: the list is empty. A refused request uses no credits.

Validation errors

Invalid parameters return 422 with one entry per problem in details:

{
  "error": {
    "code": "validation_error",
    "message": "Invalid request",
    "details": [
      {
        "field": "query.state",
        "message": "Value error, Unknown US state: 'Floridaa'. Use its code or name, such as FL or Florida",
        "type": "value_error"
      }
    ],
    "requestId": "c41d2e0b8a7f4f61b2e9d3a5c6f70812"
  }
}

Retries

Retry 500 responses with exponential backoff. Retry 429 too_many_requests after the Retry-After delay (see Rate limits). Don't retry other 4xx errors without changing the request; a 402 or a 429 product_limit_reached succeeds again once credits are added or the cycle resets, and a 403 with payment_overdue once the invoice is paid.

Send your own X-Request-ID header to correlate DataRivo requests with your logs. It's echoed back in the response and used as requestId in errors.

On this page