download the app
§ Errors

Errors

Every error response has the same JSON shape and an HTTP status that matches its severity. Code yourself against the error.code field, not the message.

Shape

jsonjson
{
  "error": {
    "code": "invalid_request",
    "message": "Date must be in YYYY-MM-DD format.",
    "docsUrl": "/developers/docs/authentication"
  }
}

Codes

HTTPCodeMeaning
400invalid_requestParameters were malformed or missing.
401missing_api_keyNo key in Authorization, X-API-Key, or ?api_key=
401invalid_api_keyKey is not recognized.
401revoked_api_keyKey was revoked by its owner.
404not_foundNo resource with that slug or date.
429rate_limitedPer-minute limit exceeded.
429monthly_quota_exceededMonthly quota exhausted for this tier.
500server_errorSomething went wrong on our side.

For 429 responses, a Retry-After header gives the number of seconds until the relevant window resets.