RunRiva Questions API

Quiz content — list, random, by id.

GitHub OpenAPI

Operations 3

GET /api/v1/questions Browse questions (cursor pagination) #
GET /api/v1/questions/random Random questions sample #
GET /api/v1/questions/{id} Single question by id #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/runriva-com:runriva-com-questions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

runriva-com-questions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: QuizBase Questions API
  version: 1.0.0
  description: Multilingual trivia API. 1M+ blended, deduped questions from 11 open datasets (CC, MIT), EN+PL at launch. Per-record license, author, source on every response. Stable UUID v7 ids. See info.license below for API-vs-content licensing.
  contact:
    name: QuizBase
    email: maciej.dzierzek@gmail.com
  license:
    name: 'API: proprietary; Content: per-record (CC-BY, CC-BY-SA, MIT)'
servers:
- url: https://quizbase.runriva.com
  description: Production
security:
- ApiKey: []
- BearerKey: []
tags:
- name: Questions
  description: Quiz content — list, random, by id.
paths:
  /api/v1/questions:
    get:
      summary: Browse questions (cursor pagination)
      description: 'Paginated browse with filters and delta-sync via `updated_since`. **Batch by `ids`** (up to 250, comma-separated UUIDs) fetches those exact records in a single call — anti-repeat, deep-links. Add **`content_language`** to map a set across the translation chain (e.g. an English set to Polish): for each id the sibling record in that language is returned, matched by canonical root. `ids` is a terminal selector (browse filters and cursor are ignored). Unresolved ids are reported in `meta.missing`, never dropped silently.'
      tags:
      - Questions
      security:
      - ApiKey: []
      - BearerKey: []
      x-performance:
        p50: 57
        p95: 67
        p99: 88
        sustainedRps: 50
        lastMeasured: '2026-11-10'
        methodology: https://quizbase.runriva.com/docs/performance
        notes: Cursor pagination scales to any catalog size. Default count=none (page via nextCursor); opt-in count=exact for precise meta.total (COUNT(*), index-only ~25-90ms).
      parameters:
      - schema:
          type: string
          format: uuid
        required: false
        name: cursor
        in: query
      - schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
        required: false
        name: limit
        in: query
      - schema:
          type: string
          enum:
          - en
          - pl
          default: en
          description: Display language for category names + slug labels (subcategories/tags)
        required: false
        description: Display language for category names + slug labels (subcategories/tags)
        name: lang
        in: query
      - schema:
          type: string
          format: date-time
          example: '2026-04-01T00:00:00.000Z'
          description: ISO 8601 datetime — only questions modified after this point.
        required: false
        description: ISO 8601 datetime — only questions modified after this point.
        name: updated_since
        in: query
      - schema:
          type: string
          pattern: ^(?:[1-9]\d*|[a-z][a-z0-9]*(?:-[a-z0-9]+)*)$
        required: false
        name: category
        in: query
      - schema:
          type: string
          enum:
          - trivial
          - easy
          - medium
          - hard
          - expert
        required: false
        name: difficulty
        in: query
      - schema:
          type: string
          enum:
          - multiple
          - boolean
          - text_input
        required: false
        name: type
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*(?:,[a-z0-9]+(?:-[a-z0-9]+)*){0,9}$
        required: false
        name: tags
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*(?:,[a-z0-9]+(?:-[a-z0-9]+)*){0,9}$
        required: false
        name: tags_any
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
        required: false
        name: topic
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*(?:,[a-z0-9]+(?:-[a-z0-9]+)*){0,9}$
        required: false
        name: topics_any
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
        required: false
        name: subcategory
        in: query
      - schema:
          type: string
          enum:
          - high
          - standard
          - all
          default: high
          description: 'Quality preset: "high" (default) = cleanest, most broadly-useful questions; "standard" = broader pool incl. niche; "all" = everything incl. flagged-for-review'
        required: false
        description: 'Quality preset: "high" (default) = cleanest, most broadly-useful questions; "standard" = broader pool incl. niche; "all" = everything incl. flagged-for-review'
        name: quality
        in: query
      - schema:
          type: string
          pattern: ^(?:[A-Za-z]{2}|jewish|christian-catholic|islam)(?:,(?:[A-Za-z]{2}|jewish|christian-catholic|islam)){0,9}$
          description: Cultural affinity codes. A question is tagged with a region if residents of that country, or members of that cultural/religious group, are statistically more likely to know the answer (NOT geography of the subject). Lowercase ISO 3166-1 alpha-2 (e.g. `us`, `pl`, `gb`) plus cultural codes (`jewish`, `christian-catholic`, `islam`). AND-logic. Empty array on a question = universally accessible (no cultural advantage). Discover via `GET /api/v1/regions`. Uppercase tolerated on input (normalized to lowercase).
          example: pl,jewish
        required: false
        description: Cultural affinity codes. A question is tagged with a region if residents of that country, or members of that cultural/religious group, are statistically more likely to know the answer (NOT geography of the subject). Lowercase ISO 3166-1 alpha-2 (e.g. `us`, `pl`, `gb`) plus cultural codes (`jewish`, `christian-catholic`, `islam`). AND-logic. Empty array on a question = universally accessible (no cultural advantage). Discover via `GET /api/v1/regions`. Uppercase tolerated on input (normalized to lowercase).
        name: regions
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*(?:,[a-z0-9]+(?:-[a-z0-9]+)*){0,11}$
          description: 'Filter by source database — one or more of: arc, creak, entityq, kqa-pro, mintaka, mkqa, nq-open, opentdb, opentriviaqa, qasc, quizbase, webq. Comma-separated for multiple (include / OR). Matches `attribution.source` per question.'
          example: mintaka,opentdb
        required: false
        description: 'Filter by source database — one or more of: arc, creak, entityq, kqa-pro, mintaka, mkqa, nq-open, opentdb, opentriviaqa, qasc, quizbase, webq. Comma-separated for multiple (include / OR). Matches `attribution.source` per question.'
        name: source
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*(?:,[a-z0-9]+(?:-[a-z0-9]+)*){0,11}$
          description: Exclude one or more source databases (comma-separated). Use to drop noisy auto-generated sources, e.g. `exclude_source=entityq`. Applied after `source` if both are present.
          example: entityq
        required: false
        description: Exclude one or more source databases (comma-separated). Use to drop noisy auto-generated sources, e.g. `exclude_source=entityq`. Applied after `source` if both are present.
        name: exclude_source
        in: query
      - schema:
          type: string
          enum:
          - CC-BY-SA-4.0
          - CC-BY-SA-3.0
          - CC-BY-4.0
          - MIT
          - proprietary
        required: false
        name: license
        in: query
      - schema:
          type: string
          enum:
          - exact
          - none
        required: false
        name: count
        in: query
      - schema:
          type: string
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}(?:,[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})*$
        required: false
        name: ids
        in: query
      - schema:
          type: string
          enum:
          - en
          - pl
          description: Content language of returned records (translation mapping when combined with `ids`)
        required: false
        description: Content language of returned records (translation mapping when combined with `ids`)
        name: content_language
        in: query
      responses:
        '200':
          description: Questions page.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuestionsListResponse'
        '400':
          description: Invalid query parameters.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Missing, malformed, invalid, or revoked API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: IP not allowed (per-key allowlist).
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Rate limit exceeded. See `Retry-After` header.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Server error.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      operationId: getApiV1Questions
      x-operation-id-source: derived
  /api/v1/questions/random:
    get:
      summary: Random questions sample
      description: Up to 50 random questions in the requested language. Filter set identical to `/questions`.
      tags:
      - Questions
      security:
      - ApiKey: []
      - BearerKey: []
      x-performance:
        p50: 97
        p95: 119
        p99: 155
        sustainedRps: 50
        lastMeasured: '2026-11-10'
        methodology: https://quizbase.runriva.com/docs/performance
        notes: Randomized sampling — heaviest endpoint. Broad and narrow filters (tags/topic/subcategory) both within budget under sustained 50 RPS.
      parameters:
      - schema:
          type: integer
          minimum: 1
          maximum: 50
          default: 10
        required: false
        name: amount
        in: query
      - schema:
          type: string
          enum:
          - en
          - pl
          default: en
          description: Display language for category names + slug labels (subcategories/tags)
        required: false
        description: Display language for category names + slug labels (subcategories/tags)
        name: lang
        in: query
      - schema:
          type: string
          pattern: ^(?:[1-9]\d*|[a-z][a-z0-9]*(?:-[a-z0-9]+)*)$
        required: false
        name: category
        in: query
      - schema:
          type: string
          enum:
          - trivial
          - easy
          - medium
          - hard
          - expert
        required: false
        name: difficulty
        in: query
      - schema:
          type: string
          enum:
          - multiple
          - boolean
          - text_input
        required: false
        name: type
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*(?:,[a-z0-9]+(?:-[a-z0-9]+)*){0,9}$
        required: false
        name: tags
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*(?:,[a-z0-9]+(?:-[a-z0-9]+)*){0,9}$
        required: false
        name: tags_any
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
        required: false
        name: topic
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*(?:,[a-z0-9]+(?:-[a-z0-9]+)*){0,9}$
        required: false
        name: topics_any
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(-[a-z0-9]+)*$
        required: false
        name: subcategory
        in: query
      - schema:
          type: string
          enum:
          - high
          - standard
          - all
          default: high
          description: 'Quality preset: "high" (default) = cleanest, most broadly-useful questions; "standard" = broader pool incl. niche; "all" = everything incl. flagged-for-review'
        required: false
        description: 'Quality preset: "high" (default) = cleanest, most broadly-useful questions; "standard" = broader pool incl. niche; "all" = everything incl. flagged-for-review'
        name: quality
        in: query
      - schema:
          type: string
          pattern: ^(?:[A-Za-z]{2}|jewish|christian-catholic|islam)(?:,(?:[A-Za-z]{2}|jewish|christian-catholic|islam)){0,9}$
          description: Cultural affinity codes. A question is tagged with a region if residents of that country, or members of that cultural/religious group, are statistically more likely to know the answer (NOT geography of the subject). Lowercase ISO 3166-1 alpha-2 (e.g. `us`, `pl`, `gb`) plus cultural codes (`jewish`, `christian-catholic`, `islam`). AND-logic. Empty array on a question = universally accessible (no cultural advantage). Discover via `GET /api/v1/regions`. Uppercase tolerated on input (normalized to lowercase).
          example: pl,jewish
        required: false
        description: Cultural affinity codes. A question is tagged with a region if residents of that country, or members of that cultural/religious group, are statistically more likely to know the answer (NOT geography of the subject). Lowercase ISO 3166-1 alpha-2 (e.g. `us`, `pl`, `gb`) plus cultural codes (`jewish`, `christian-catholic`, `islam`). AND-logic. Empty array on a question = universally accessible (no cultural advantage). Discover via `GET /api/v1/regions`. Uppercase tolerated on input (normalized to lowercase).
        name: regions
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*(?:,[a-z0-9]+(?:-[a-z0-9]+)*){0,11}$
          description: 'Filter by source database — one or more of: arc, creak, entityq, kqa-pro, mintaka, mkqa, nq-open, opentdb, opentriviaqa, qasc, quizbase, webq. Comma-separated for multiple (include / OR). Matches `attribution.source` per question.'
          example: mintaka,opentdb
        required: false
        description: 'Filter by source database — one or more of: arc, creak, entityq, kqa-pro, mintaka, mkqa, nq-open, opentdb, opentriviaqa, qasc, quizbase, webq. Comma-separated for multiple (include / OR). Matches `attribution.source` per question.'
        name: source
        in: query
      - schema:
          type: string
          pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*(?:,[a-z0-9]+(?:-[a-z0-9]+)*){0,11}$
          description: Exclude one or more source databases (comma-separated). Use to drop noisy auto-generated sources, e.g. `exclude_source=entityq`. Applied after `source` if both are present.
          example: entityq
        required: false
        description: Exclude one or more source databases (comma-separated). Use to drop noisy auto-generated sources, e.g. `exclude_source=entityq`. Applied after `source` if both are present.
        name: exclude_source
        in: query
      - schema:
          type: string
          enum:
          - CC-BY-SA-4.0
          - CC-BY-SA-3.0
          - CC-BY-4.0
          - MIT
          - proprietary
        required: false
        name: license
        in: query
      - schema:
          type: string
          pattern: ^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}(?:,[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12})*$
        required: false
        name: exclude
        in: query
      responses:
        '200':
          description: Random sample.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuestionsRandomResponse'
        '400':
          description: Invalid query parameters.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '401':
          description: Missing, malformed, invalid, or revoked API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: IP not allowed (per-key allowlist).
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Rate limit exceeded. See `Retry-After` header.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Server error.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      operationId: getApiV1QuestionsRandom
      x-operation-id-source: derived
  /api/v1/questions/{id}:
    get:
      summary: Single question by id
      description: Deep link / shareable URL / moderation review.
      tags:
      - Questions
      security:
      - ApiKey: []
      - BearerKey: []
      x-performance:
        p50: 54
        p95: 63
        p99: 82
        sustainedRps: 50
        lastMeasured: '2026-11-10'
        methodology: https://quizbase.runriva.com/docs/performance
        notes: Direct id lookup by primary key.
      parameters:
      - schema:
          type: string
          format: uuid
          description: UUID v7 of the question.
          example: 019dd2af-1e86-7991-ae22-3dc3dc5e9b2c
        required: true
        description: UUID v7 of the question.
        name: id
        in: path
      - schema:
          type: string
          enum:
          - en
          - pl
          default: en
          description: Display language for category names + slug labels (subcategories/tags)
        required: false
        description: Display language for category names + slug labels (subcategories/tags)
        name: lang
        in: query
      responses:
        '200':
          description: Question.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/QuestionByIdResponse'
        '401':
          description: Missing, malformed, invalid, or revoked API key.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '403':
          description: IP not allowed (per-key allowlist).
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '404':
          description: Question not found, moderated, de-duplicated, or removed upstream.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '429':
          description: Rate limit exceeded. See `Retry-After` header.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
        '500':
          description: Server error.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/ProblemDetails'
      operationId: getApiV1QuestionsById
      x-operation-id-source: derived
components:
  schemas:
    QuestionByIdResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/Question'
        meta:
          $ref: '#/components/schemas/MetaBasic'
      required:
      - data
      - meta
    CategoryRef:
      type: object
      properties:
        id:
          type: integer
          example: 14
        slug:
          type: string
          example: geography
        name:
          type: string
          example: Geography
      required:
      - id
      - slug
      - name
    MetaPaginated:
      type: object
      properties:
        count:
          type: integer
          description: Items on this page.
          example: 50
        total:
          type: integer
          description: Exact count of matching questions. Present only when `count=exact`. Omitted by default — page via cursor + `_links.next`.
          example: 545379
        countMode:
          type: string
          enum:
          - exact
          - none
          description: Echo of the `count` query param.
          example: none
        missing:
          type: array
          items:
            type: string
            format: uuid
          description: Requested `ids` with no result — not found / not live, or (in translation mapping via `content_language`) no record in that language. Present only on `ids` batch requests, and only when something was missing.
          example: []
        language:
          type: string
          description: Language of the response content.
          example: en
        requestId:
          type: string
          format: uuid
          description: Unique request identifier (also in `X-Request-Id` response header).
          example: 127fc6d1-d6fb-4771-b2a7-211a08749e5b
      required:
      - count
      - language
      - requestId
    Attribution:
      type: object
      properties:
        author:
          type:
          - string
          - 'null'
          description: Upstream contributor or community.
          example: OpenTDB community
        source:
          type: string
          description: Source slug.
          example: opentdb
        license:
          type: string
          description: Effective applied license (SPDX).
          example: CC-BY-SA-4.0
        licenseVersion:
          type:
          - string
          - 'null'
          description: Original upstream license version.
          example: '4.0'
        licenseUrl:
          type:
          - string
          - 'null'
          example: https://creativecommons.org/licenses/by-sa/4.0/
        sourceId:
          type: string
          description: Original upstream id.
          example: opentdb:17243
        url:
          type:
          - string
          - 'null'
          description: Link to upstream record.
          example: https://opentdb.com/
        modifications:
          type: array
          items:
            type: string
          description: Our modifications per BY-SA § 3(a)(1)(B). e.g. `translated_pl`, `refined_text`, `quizified`.
          example:
          - translated_pl
        lastModified:
          type: string
          description: ISO timestamp of our last modification.
          example: '2026-05-01T09:16:41.496Z'
      required:
      - author
      - source
      - license
      - licenseVersion
      - licenseUrl
      - sourceId
      - url
      - modifications
      - lastModified
    SlugLabel:
      type: object
      properties:
        slug:
          type: string
          example: european-capitals
        label:
          type: string
          example: European Capitals
      required:
      - slug
      - label
    QuestionsListResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Question'
        meta:
          $ref: '#/components/schemas/MetaPaginated'
        _links:
          $ref: '#/components/schemas/Links'
      required:
      - data
      - meta
    MetaBasic:
      type: object
      properties:
        language:
          type: string
          description: Language of the response content.
          example: en
        requestId:
          type: string
          format: uuid
          description: Unique request identifier (also in `X-Request-Id` response header).
          example: 127fc6d1-d6fb-4771-b2a7-211a08749e5b
      required:
      - language
      - requestId
    ProblemDetails:
      type: object
      properties:
        type:
          type: string
          description: Absolute URL identifying the error class.
          example: https://quizbase.runriva.com/errors/invalid_query_param
        title:
          type: string
          example: Invalid query parameters
        status:
          type: integer
          example: 400
        detail:
          type: string
          example: 'lang: lang "xyz" is not supported. Supported: en, pl'
        instance:
          type: string
          example: /api/v1/categories?lang=xyz
        code:
          type: string
          example: invalid_query_param
        errors:
          type: array
          items:
            type: object
            properties:
              path:
                type: string
              message:
                type: string
            required:
            - path
            - message
          description: Per-field validation errors (400 only).
        retryAfter:
          type: integer
          description: Seconds to wait before retrying (429 only).
          example: 3600
        upgradeUrl:
          type: string
          description: URL to upgrade plan (429 only).
        limit:
          type: integer
          description: Rate limit ceiling that was exceeded (429 only).
          example: 5
        tier:
          type: string
          description: API tier whose limit was exceeded (429 only).
          example: free
        current:
          type: integer
          description: Number of requests in current window (429 only).
          example: 100
      required:
      - type
      - title
      - status
      - detail
      - instance
      - code
    Question:
      type: object
      properties:
        id:
          type: string
          format: uuid
          example: 019dd2af-1e86-7991-ae22-3dc3dc5e9b2c
        text:
          type: string
          example: Jaka jest stolica Polski?
        correctAnswer:
          type: string
          example: Warszawa
        incorrectAnswers:
          type: array
          items:
            type: string
          example:
          - Kraków
          - Gdańsk
          - Wrocław
        type:
          type: string
          enum:
          - multiple
          - boolean
          - text_input
          example: multiple
        difficulty:
          type:
          - string
          - 'null'
          enum:
          - trivial
          - easy
          - medium
          - hard
          - expert
          - null
          example: easy
        language:
          type: string
          example: pl
        category:
          $ref: '#/components/schemas/CategoryRef'
        subcategories:
          type: array
          items:
            $ref: '#/components/schemas/SlugLabel'
          description: Localized `{slug, label}` per `?lang=`.
        tags:
          type: array
          items:
            $ref: '#/components/schemas/SlugLabel'
          description: Localized `{slug, label}` per `?lang=`.
        regions:
          type: array
          items:
            type: string
          description: Cultural affinity codes — residents/members of these countries or cultural groups are statistically more likely to know the answer. Lowercase ISO 3166-1 alpha-2 (`us`, `pl`, `gb`) + cultural codes (`jewish`, `christian-catholic`, `islam`). Empty array = universally accessible. Discover the full catalog via `GET /api/v1/regions`.
          example:
          - pl
        attribution:
          $ref: '#/components/schemas/Attribution'
        quality:
          type: string
          enum:
          - high
          - needs_review
          description: 'Quality flag. Present only when the client requested non-default content via `?quality=all` (REST) or `quality: "all"` (MCP) — and always on `/api/v1/questions/{id}` deep-link responses. For default `?quality=high` all returned questions are by definition `high`, so the field is omitted to avoid redundancy. `needs_review` = flagged for moderation review (low-quality distractors, trivial answer-in-question patterns).'
          example: high
        translationOf:
          type:
          - string
          - 'null'
          format: uuid
          description: Direct parent (usually English source) when this is a translation.
        rootQuestionId:
          type:
          - string
          - 'null'
          format: uuid
          description: Canonical source across translation chains.
        translator:
          type:
          - string
          - 'null'
          enum:
          - machine
          - human
          - native
          - null
          description: Translation provenance. `null` for original-language records.
        explanation:
          type:
          - string
          - 'null'
          description: Optional explanation of the correct answer.
        extensions:
          type: object
          additionalProperties: {}
          description: 'Forward-compatible container for stable per-source extras. Today exposes `subcategories: string[]` (also surfaced as the typed top-level `subcategories` field). Future stable fields land here additively.'
        createdAt:
          type: string
          example: '2026-04-28T06:03:05.191Z'
        updatedAt:
          type: string
          example: '2026-05-01T09:16:41.496Z'
      required:
      - id
      - text
      - correctAnswer
      - incorrectAnswers
      - type
      - difficulty
      - language
      - category
      - subcategories
      - tags
      - regions
      - attribution
      - translationOf
      - rootQuestionId
      - translator
      - explanation
      - extensions
      - createdAt
      - updatedAt
    QuestionsRandomResponse:
      type: object
      properties:
        data:
          type: array
          items:
            $ref: '#/components/schemas/Question'
        meta:
          $ref: '#/components/schemas/MetaRandom'
      required:
      - data
      - meta
    MetaRandom:
      type: object
      properties:
        count:
          type: integer
          example: 5
        language:
          type: string
          description: Language of the response content.
          example: en
        requestId:
          type: string
          format: uuid
          description: Unique request identifier (also in `X-Request-Id` response header).
          example: 127fc6d1-d6fb-4771-b2a7-211a08749e5b
      required:
      - count
      - language
      - requestId
    Links:
      type: object
      properties:
        next:
          type: string
          description: URL to the next page.
        prev:
          type: string
          description: URL to the previous page.
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: 'API key (`qb_pk_*` publishable / `qb_sk_*` secret). Also accepted via `Authorization: Bearer <key>`.'
    BearerKey:
      type: http
      scheme: bearer
      description: Same key as `ApiKey`, passed via Authorization header.