Discovery

Topic detail with facets

Single topic + facets (byCategory, byDifficulty, byLanguage, coOccurringTags, coOccurringSubcategories) + 3 sample questions.

get/api/v1/topics/{slug}

Request

  • Base URL: https://quizbase.runriva.com
  • URL: https://quizbase.runriva.com/api/v1/topics/{slug}
  • Auth: one of:
    • API key in header X-API-Key
    • HTTP bearer

Path parameters

slugstring required

Curated topic slug or alias.

Example:star-wars

Query parameters

lang'en' | 'pl'

Display language for category names + slug labels (subcategories/tags)

Response

Topic detail.

Example response

{
  "topic": {
    "slug": "biography",
    "kind": "subcategory",
    "label": "Biography",
    "aliases": [
      "biography",
      "biographies"
    ],
    "count": 64977
  },
  "facets": {
    "coOccurringTags": [
      {
        "slug": "united-states",
        "label": "United States",
        "count": 15281
      }
    ],
    "coOccurringSubcategories": [
      {
        "slug": "united-states",
        "label": "United States",
        "count": 15281
      }
    ]
  },
  "meta": {
    "language": "en",
    "requestId": "127fc6d1-d6fb-4771-b2a7-211a08749e5b"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.