DataRivo APIDataRivo APIDataRivo API

Authentication

Authenticate every request with an API key in the x-api-key header.

Every request is authenticated with an API key. Send it in the x-api-key header:

curl "https://api.datarivo.io/api/v1/data/listings/sale?state=VA&address=winchester" \
  -H "x-api-key: dr_live_..."

Getting a key

Create and revoke keys in the customer portal under API Keys. A key starts with dr_live_ and is shown in full only once, when you create it. A workspace can have up to 10 active keys.

A key belongs to your workspace: requests made with it use your workspace's credits and appear in its usage log in the portal, with the key's last four characters. A key acts as the team member who created it, so it can reach the data that member's role allows.

Keeping keys safe

Anyone with a key can spend your credits.

  • Store keys in a secret manager or environment variables, never in source control.
  • Call the API from your servers only. Never put a key in browser or mobile code.
  • Use a separate key for each app, so you can revoke one without affecting the others. Each key has its own rate limit of requests per second; the limit on requests running at once is shared by the whole workspace.
  • If a key leaks, revoke it in the portal. It stops working immediately.

Authentication errors

StatusCodeMeaning
401unauthorizedThe key is missing, invalid or revoked
403forbiddenThe key's team member has a role without access to property data
403subscription_requiredThe workspace needs an active plan

On this page