quizbase
Skip to content
Command Palette
Search for a command to run...
QuizBase · Docs

GET /v1/categories#

GET /api/v1/categories API key required

Returns the full list of categories with localized name. Requires X-API-Key (or Authorization: Bearer …). Cached aggressively (Cache-Control: public, s-maxage=3600, stale-while-revalidate=300).

Use this for dropdowns, filter UIs, and landing page counts. Categories change rarely — fetch once, cache for hours.

Parameters#

ParameterTypeDefaultDescription
lang enumenSupported: `en`, `pl`. Sets the language of `name`. Falls back to English where a category translation is missing. Any other value returns `400`.

Examples#

Response#

Performance#

  • p50 (warm): ~22ms
  • p95: ~43ms (sustained 50 RPS, 5-min baseline). Single-request warm: ~30ms.
  • Last measured: 2026-05-30
  • SLO: p95 < 500ms, error rate < 1%
  • CDN cache: s-maxage=3600, stale-while-revalidate=300 — most requests served by CDN edge.

See also#