{
  "opencollection": "1.0.0",
  "info": {
    "name": "Open Trivia Database Categories Questions API",
    "version": "1.0"
  },
  "items": [
    {
      "info": {
        "name": "Questions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Open Trivia Get Trivia Questions",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://opentdb.com/api.php",
            "params": [
              {
                "name": "amount",
                "value": "",
                "type": "query",
                "description": "Number of questions to return. Must be between 1 and 50 inclusive."
              },
              {
                "name": "category",
                "value": "",
                "type": "query",
                "description": "Numeric category identifier. Use /api_category.php to discover valid category IDs (range 9-32). Omit to draw from any category."
              },
              {
                "name": "difficulty",
                "value": "",
                "type": "query",
                "description": "Restrict questions to a single difficulty level."
              },
              {
                "name": "type",
                "value": "",
                "type": "query",
                "description": "Restrict questions to a single answer format. `multiple` returns four-option multiple-choice questions; `boolean` returns true/false questions."
              },
              {
                "name": "encode",
                "value": "",
                "type": "query",
                "description": "Response encoding for textual fields. Defaults to HTML-entity encoded plain text. `urlLegacy` applies legacy URL encoding, `url3986` applies RFC 3986 percent encoding, and `base64` applies Base64 encoding."
              },
              {
                "name": "token",
                "value": "",
                "type": "query",
                "description": "Session token returned by /api_token.php. When provided, the API tracks which questions have been served and avoids returning duplicates until the token is reset or expires."
              }
            ]
          },
          "docs": "Retrieve a batch of trivia questions from the Open Trivia Database. Questions can be filtered by category, difficulty, and type. A session token may be supplied to prevent the same question from being returned twice within a six-hour window."
        }
      ]
    }
  ],
  "bundled": true
}