The Trivia API Meta API

The Meta API from The Trivia API — 5 operation(s) for meta.

GitHub OpenAPI

Operations 5

GET /tags Get all tags #
GET /totals-per-tag Get the total number of questions per tag #
GET /metadata Get metadata on the questions that match a given query #
GET /metadata/content-filter Get content filter metadata #
GET /languages Get all languages that are supported by the API #

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/the-trivia-api-com:the-trivia-api-com-meta-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

the-trivia-api-com-meta-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Trivia Meta API
  version: 1.0.0
  description: '# Introduction #


    The Trivia API is a REST API used to request multiple choice trivia questions. No API key is required to request questions, but an API key can be used to gain access to further functionality, such as searching, quizzes, and sessions.


    An API key is also required if you would like to use data from the API commercially.'
servers:
- url: https://the-trivia-api.com/v2
tags:
- name: Meta
paths:
  /tags:
    get:
      operationId: getTags
      summary: Get all tags
      description: Returns an array of all tags set on questions
      tags:
      - Meta
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
                example:
                - world_war_2
                - france
                - physics
                - architecture
  /totals-per-tag:
    get:
      operationId: getTotalsPerTag
      summary: Get the total number of questions per tag
      description: Takes the same input parameters as the `/questions` endpoint and returns a dictionary where each key is a tag and each value is the number of questions that have that tag for the given query parameters.
      tags:
      - Meta
      parameters:
      - $ref: '#/components/parameters/categoriesQueryParam'
      - $ref: '#/components/parameters/difficultiesQueryParam'
      - $ref: '#/components/parameters/regionQueryParam'
      - $ref: '#/components/parameters/tagsQueryParam'
      - $ref: '#/components/parameters/typesQueryParam'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: integer
                example:
                  world_war_2: 10
                  france: 5
                  physics: 3
                  architecture: 2
  /metadata:
    get:
      operationId: getMetadata
      summary: Get metadata on the questions that match a given query
      description: 'Will return metadata on the questions that match the given query parameters.

        Including breakdowns by category, difficulty, status (approved/rejected/pending), and timestamps marking when the last questions matching the search were submitted and reviewed.'
      tags:
      - Meta
      parameters:
      - $ref: '#/components/parameters/categoriesQueryParam'
      - $ref: '#/components/parameters/difficultiesQueryParam'
      - $ref: '#/components/parameters/regionQueryParam'
      - $ref: '#/components/parameters/tagsQueryParam'
      - $ref: '#/components/parameters/typesQueryParam'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MetadataResponse'
  /metadata/content-filter:
    get:
      operationId: getContentFilterMetadata
      summary: Get content filter metadata
      description: 'Returns counts of approved questions by content-filter classification for the questions that match the given query parameters.


        - `family`: questions with `adultContent: false` (included when `contentFilter=family`)

        - `adult`: questions with `adultContent: true`

        - `unclassified`: questions with no `adultContent` field yet'
      tags:
      - Meta
      parameters:
      - $ref: '#/components/parameters/categoriesQueryParam'
      - $ref: '#/components/parameters/difficultiesQueryParam'
      - $ref: '#/components/parameters/regionQueryParam'
      - $ref: '#/components/parameters/tagsQueryParam'
      - $ref: '#/components/parameters/typesQueryParam'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContentFilterMetadata'
  /languages:
    get:
      operationId: getAllLanguages
      summary: Get all languages that are supported by the API
      description: Returns an array of all languages that are supported by the API
      tags:
      - Meta
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
components:
  parameters:
    tagsQueryParam:
      in: query
      name: tags
      schema:
        type: string
      description: Comma separated list of tags to return questions from. If not provided, all tags will be used.
      example: science,film_and_tv
    difficultiesQueryParam:
      in: query
      name: difficulties
      description: Comma separated list of difficulties of questions to return. If not provided, all difficulties will be used.
      schema:
        type: string
        default: easy,medium,hard
      example: medium,hard
    regionQueryParam:
      in: query
      name: region
      schema:
        type: string
      description: 'Some questions are regional, i.e. only reasonable to ask people from a particular set of countries.


        If not provided, all questions will be suitable to ask to people from anywhere in the world. If provided, you could also receive questions that are only suitable to ask to ask to people from the specified region, but not to people from all regions.


        The region should be provided as an ISO 3166-1 alpha-2 country code.'
      example: GB
    categoriesQueryParam:
      in: query
      name: categories
      description: Comma separated list of categories to return questions from. If not provided, all categories will be used. An unrecognised category returns a 400.
      schema:
        type: string
      example: science,film_and_tv
    typesQueryParam:
      in: query
      name: types
      schema:
        type: string
        default: text_choice
      description: 'Comma separated list of the types of questions to return. If not provided, only text choice questions will be used.

        A Complete subscription is required to receive image questions.'
      example: text_choice,image_choice
  schemas:
    MetadataResponse:
      type: object
      description: Metadata on the questions that match a given query
      properties:
        byCategory:
          description: Number of matching questions per category
          type: object
          additionalProperties:
            type: integer
          example:
            history: 10
            geography: 5
            science: 3
            food_and_drink: 2
        byDifficulty:
          description: Number of matching questions per difficulty
          type: object
          additionalProperties:
            type: integer
          example:
            easy: 10
            medium: 5
            hard: 3
        byState:
          description: Number of matching questions per state
          type: object
          additionalProperties:
            type: integer
          example:
            approved: 10
            rejected: 5
            pending: 3
        byType:
          description: Number of matching questions per question type
          type: object
          additionalProperties:
            type: integer
          example:
            text_choice: 10
            image_choice: 5
        lastCreated:
          description: Timestamp of the most recently submitted matching question
          type: string
          format: date-time
          example: '2020-01-01T00:00:00.000Z'
        lastReviewed:
          description: Timestamp of the most recently reviewed matching question, null if none have been reviewed
          type:
          - string
          - 'null'
          format: date-time
          example: '2020-01-01T00:00:00.000Z'
      required:
      - byCategory
      - byDifficulty
      - byState
      - byType
      - lastCreated
      - lastReviewed
    ContentFilterMetadata:
      type: object
      description: Counts of approved questions by content-filter classification
      properties:
        family:
          description: 'Questions with `adultContent: false`'
          type: integer
          example: 12000
        adult:
          description: 'Questions with `adultContent: true`'
          type: integer
          example: 800
        unclassified:
          description: Questions with no `adultContent` field yet
          type: integer
          example: 150
      required:
      - family
      - adult
      - unclassified
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key