The Trivia API · JSON-LD Context

The Trivia Api Com Context

JSON-LD context defining the semantic vocabulary for The Trivia Api Com from The Trivia API.

11 Classes 47 Properties 4 Namespaces
View Context View on GitHub

Namespaces

schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#
dcterms: http://purl.org/dc/terms/
the: https://the-trivia-api.com/schema#

Classes

SearchQuestionsBody SearchQuestionsResponse QuestionCountResponse BaseQuestion Category ImageOption Quiz Session ReportQuestionBody MetadataResponse ContentFilterMetadata

Properties

Property Type Container
categories list
order string
pageNumber integer
perPage integer
freetext string
ids list
tags list
difficulties list
types list
region string
contentFilter string
mode string
query string
language string
questions list
totalHits decimal
totalPages decimal
count integer
appliedFilters
category reference
id string
difficulty string
regions list
isNiche boolean
url string
height decimal
width decimal
size decimal
author
source
description string
license
title string
totalQuestions decimal
remainingQuestions decimal
createdAt dateTime
updatedAt dateTime
reason string
byCategory
byDifficulty
byState
byType
lastCreated dateTime
lastReviewed dateTime
family integer
adult integer
unclassified integer

JSON-LD Document

Raw ↑
{
  "@context": {
    "@vocab": "https://the-trivia-api.com/schema#",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "dcterms": "http://purl.org/dc/terms/",
    "the": "https://the-trivia-api.com/schema#",
    "SearchQuestionsBody": "the:SearchQuestionsBody",
    "categories": {
      "@id": "the:categories",
      "@container": "@list"
    },
    "order": {
      "@id": "the:order",
      "@type": "xsd:string"
    },
    "pageNumber": {
      "@id": "the:pageNumber",
      "@type": "xsd:integer"
    },
    "perPage": {
      "@id": "the:perPage",
      "@type": "xsd:integer"
    },
    "freetext": {
      "@id": "the:freetext",
      "@type": "xsd:string"
    },
    "ids": {
      "@id": "the:ids",
      "@container": "@list"
    },
    "tags": {
      "@id": "the:tags",
      "@container": "@list"
    },
    "difficulties": {
      "@id": "the:difficulties",
      "@container": "@list"
    },
    "types": {
      "@id": "the:types",
      "@container": "@list"
    },
    "region": {
      "@id": "the:region",
      "@type": "xsd:string"
    },
    "contentFilter": {
      "@id": "the:contentFilter",
      "@type": "xsd:string"
    },
    "mode": {
      "@id": "the:mode",
      "@type": "xsd:string"
    },
    "query": {
      "@id": "the:query",
      "@type": "xsd:string"
    },
    "language": {
      "@id": "the:language",
      "@type": "xsd:string"
    },
    "SearchQuestionsResponse": "the:SearchQuestionsResponse",
    "questions": {
      "@id": "the:questions",
      "@container": "@list"
    },
    "totalHits": {
      "@id": "the:totalHits",
      "@type": "xsd:decimal"
    },
    "totalPages": {
      "@id": "the:totalPages",
      "@type": "xsd:decimal"
    },
    "QuestionCountResponse": "the:QuestionCountResponse",
    "count": {
      "@id": "the:count",
      "@type": "xsd:integer"
    },
    "appliedFilters": {
      "@id": "the:appliedFilters"
    },
    "BaseQuestion": "the:BaseQuestion",
    "category": {
      "@id": "the:category",
      "@type": "@id"
    },
    "id": {
      "@id": "the:id",
      "@type": "xsd:string"
    },
    "difficulty": {
      "@id": "the:difficulty",
      "@type": "xsd:string"
    },
    "regions": {
      "@id": "the:regions",
      "@container": "@list"
    },
    "isNiche": {
      "@id": "the:isNiche",
      "@type": "xsd:boolean"
    },
    "Category": "the:Category",
    "ImageOption": "the:ImageOption",
    "url": {
      "@id": "the:url",
      "@type": "xsd:string"
    },
    "height": {
      "@id": "the:height",
      "@type": "xsd:decimal"
    },
    "width": {
      "@id": "the:width",
      "@type": "xsd:decimal"
    },
    "size": {
      "@id": "the:size",
      "@type": "xsd:decimal"
    },
    "author": {
      "@id": "the:author"
    },
    "source": {
      "@id": "the:source"
    },
    "description": {
      "@id": "the:description",
      "@type": "xsd:string"
    },
    "license": {
      "@id": "the:license"
    },
    "Quiz": "the:Quiz",
    "title": {
      "@id": "the:title",
      "@type": "xsd:string"
    },
    "Session": "the:Session",
    "totalQuestions": {
      "@id": "the:totalQuestions",
      "@type": "xsd:decimal"
    },
    "remainingQuestions": {
      "@id": "the:remainingQuestions",
      "@type": "xsd:decimal"
    },
    "createdAt": {
      "@id": "the:createdAt",
      "@type": "xsd:dateTime"
    },
    "updatedAt": {
      "@id": "the:updatedAt",
      "@type": "xsd:dateTime"
    },
    "ReportQuestionBody": "the:ReportQuestionBody",
    "reason": {
      "@id": "the:reason",
      "@type": "xsd:string"
    },
    "MetadataResponse": "the:MetadataResponse",
    "byCategory": {
      "@id": "the:byCategory"
    },
    "byDifficulty": {
      "@id": "the:byDifficulty"
    },
    "byState": {
      "@id": "the:byState"
    },
    "byType": {
      "@id": "the:byType"
    },
    "lastCreated": {
      "@id": "the:lastCreated",
      "@type": "xsd:dateTime"
    },
    "lastReviewed": {
      "@id": "the:lastReviewed",
      "@type": "xsd:dateTime"
    },
    "ContentFilterMetadata": "the:ContentFilterMetadata",
    "family": {
      "@id": "the:family",
      "@type": "xsd:integer"
    },
    "adult": {
      "@id": "the:adult",
      "@type": "xsd:integer"
    },
    "unclassified": {
      "@id": "the:unclassified",
      "@type": "xsd:integer"
    }
  },
  "@type": "schema:Dataset",
  "schema:name": "The Trivia API API JSON-LD context",
  "schema:description": "A JSON-LD @context for the objects The Trivia API's own API contract declares: one class per component schema, one property per declared field, typed from the contract. Derived by script (derive-json-ld.py, 2026-11-13) from openapi/the-trivia-api-com-openapi.yml.",
  "dcterms:created": "2026-11-13",
  "dcterms:source": [
    "openapi/the-trivia-api-com-openapi.yml"
  ]
}