Wiktionary · JSON Structure

Rest Api Definition Response Structure

Multilingual structured definitions keyed by ISO language code. Each value is a list of language-grouped entries describing the term in that language.

Type: object Properties: 0
DictionariesOpen SourceWikimediaMediaWikiLinguisticsOpen DataPublic APIs

DefinitionResponse is a JSON Structure definition published by Wiktionary. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wiktionary/refs/heads/main/json-structure/rest-api-definition-response-structure.json",
  "description": "Multilingual structured definitions keyed by ISO language code. Each value is a list of language-grouped entries describing the term in that language.",
  "type": "object",
  "additionalProperties": {
    "type": "array",
    "items": {
      "description": "One language's worth of definitions for the term.",
      "type": "object",
      "required": [
        "partOfSpeech",
        "language",
        "definitions"
      ],
      "properties": {
        "partOfSpeech": {
          "type": "string",
          "description": "Grammatical part of speech for this entry.",
          "example": "Interjection"
        },
        "language": {
          "type": "string",
          "description": "Human-readable language name.",
          "example": "English"
        },
        "definitions": {
          "type": "array",
          "items": {
            "$ref": "#/components/schemas/DefinitionEntry"
          }
        }
      },
      "name": "LanguageEntry"
    }
  },
  "example": {
    "en": [
      {
        "partOfSpeech": "Interjection",
        "language": "English",
        "definitions": [
          {
            "definition": "A standard greeting.",
            "examples": [
              "Hello, world!"
            ],
            "parsedExamples": []
          }
        ]
      }
    ]
  },
  "name": "DefinitionResponse"
}