DocumentationErrors and limits
Errors and limits
Handle problem JSON, look up data and account error codes, respect plan limits, and retry temporary failures with backoff.
Read a problem
Errors use RFC 9457 problem JSON:
type Problem = {
ok: false;
type: string;
title: string;
status: number;
detail: string;
code: string;
request_id: string;
resets_at?: string;
upgrade_url?: string;
};
Branch on code; show detail and retain request_id. monthly_quota_exceeded also carries resets_at, the UTC time your requests renew, and upgrade_url, where you can move to a bigger plan. Pro has no bigger plan, so it has no upgrade_url.
Look up a code
These tables cover data, account, sign-in and billing codes. Suspended accounts can return 401 for invalidated sessions or 403 for data requests.
| Code | Status | Meaning | Action |
|---|---|---|---|
monthly_quota_exceeded |
429 | All requests in your plan’s month are used | Wait until resets_at or change plan |
unauthenticated |
401 | Invalid key/session | Replace key/sign in |
account_suspended |
403 | Account restricted | Contact support |
invalid_request |
400 | Invalid input | Fix request |
not_found |
404 | Unknown route or item | Check path and identifier |
plan_upgrade_required |
403 | Not on your plan, for example history older than your plan allows | Change plan |
rate_limit_exceeded |
429 | Over your plan’s requests a minute | Respect Retry-After |
area_unavailable |
503 | Data area paused | Retry later |
invalid_email |
400 | Invalid email | Correct address |
email_not_allowed |
400 | Disposable email | Use another address |
invalid_code |
400 | Wrong sign-in code | Correct code |
code_expired |
400 | Code unusable | Request another |
invalid_cursor |
400 | Invalid cursor | Restart pagination |
client_header_required |
403 | Missing client header | Send X-Dino-Client: web |
payment_failed |
402 | Card charge declined | Read detail and update your card |
key_not_found |
404 | Unknown key | Check identifier |
key_limit_reached |
409 | Ten-key cap | Revoke unused key |
too_many_codes |
429 | Code-send limit | Respect Retry-After |
too_many_attempts |
429 | Sign-in limit | Respect Retry-After |
email_unavailable |
503 | Email service unavailable | Retry later |
payments_unavailable |
503 | Payments unavailable | Retry later |
Sign-in redirects
These arrive as /signin?error=... after a 302 redirect, rather than problem JSON.
| Code | Status | Meaning | Action |
|---|---|---|---|
oauth_denied |
302 | Sign-in cancelled | Restart sign-in |
oauth_failed |
302 | Sign-in failed | Restart sign-in |
email_unverified |
302 | Unverified email | Verify address |
email_not_allowed |
302 | Disposable email | Use another address |
identity_conflict |
302 | Different identity linked | Use linked identity/email code |
account_suspended |
302 | Account restricted | Contact support |
Respect limits and retry safely
Only successful requests count against your plan. Failed requests do not. Your plan sets two limits: requests a month and requests a minute. See billing for the numbers on each plan.
When the minute limit is passed you get 429 rate_limit_exceeded. Wait for Retry-After seconds and send the request again. When the month’s requests are all used you get 429 monthly_quota_exceeded. resets_at is the time they renew, Retry-After is the seconds until then, and upgrade_url leads to a bigger plan. Retrying does not help before then, and nothing is counted for the refused request.
Every data response carries X-Dino-Plan, X-Dino-Requests-Limit, X-Dino-Requests-Remaining and X-Dino-Requests-Reset, so you can see how much of the month is left without a second request.
A request for history older than your plan allows, or for something your plan does not include, gets 403 plan_upgrade_required. The detail says what the plan covers. Change plan to get it.
Retry temporary GET failures with bounded exponential backoff and jitter. Respect Retry-After. Fix authentication and input errors first. A successful retry counts as a request. If a response was lost, the first request may already have succeeded and counted.
For plan changes and payments, check the dashboard before repeating one.
Start with a free key
3,000 requests a month, no card needed.