Wiktionary · JSON Structure

Rest Api Language Entry Structure

One language's worth of definitions for the term.

Type: object Properties: 3 Required: 3
DictionariesOpen SourceWikimediaMediaWikiLinguisticsOpen DataPublic APIs

LanguageEntry is a JSON Structure definition published by Wiktionary, describing 3 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

partOfSpeech language definitions

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-language-entry-structure.json",
  "description": "One language's worth of definitions for the term.",
  "type": "object",
  "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": {
        "type": "object",
        "required": [
          "definition"
        ],
        "properties": {
          "definition": {
            "type": "string",
            "description": "HTML/wikitext definition body for one sense.",
            "example": "A standard greeting."
          },
          "examples": {
            "type": "array",
            "description": "Raw usage example strings.",
            "items": {
              "type": "string"
            },
            "example": [
              "Hello, world!"
            ]
          },
          "parsedExamples": {
            "type": "array",
            "description": "Structured usage examples (HTML or translation pairs).",
            "items": {
              "type": "object",
              "additionalProperties": true
            }
          }
        },
        "name": "DefinitionEntry"
      }
    }
  },
  "required": [
    "partOfSpeech",
    "language",
    "definitions"
  ],
  "name": "LanguageEntry"
}