KontextNews

Errors

JSON error bodies with a detail field.

401Missing or invalid API key.
403The key lacks the scope required by the endpoint (for example a key without read).
404Resource not found.
422Invalid parameters: a limit out of range, an unknown filter value, an unknown sort, or malformed ids. The body lists the accepted values.
429Rate limit exceeded. See Rate limits.
500Server error.

Body

{"detail": "article not found"}

Check the HTTP status first, then read detail for a human-readable reason.

Invalid filter

HTTP/1.1 422 Unprocessable Entity
{"detail":{"error":"invalid_filter","filter":"category","value":"atlantis",
           "allowed":["ai","business","climate","..."]}}