Interested in joining a scientific study?Learn more

Errors & rate limits

Handle errors as structured JSON.

Non-2xx responses return a JSON error body where possible. Usage-aware endpoints may include X-Usage-Count, X-Quota-Limit and X-Quota-Reset headers.

Errors & rate limits

Error body

Use the error code and message for user-safe handling, retries and integration diagnostics.

{
  "error": {
    "code": "missing_decode_food_id",
    "message": "Query parameter decode_food_id is required"
  }
}