Wiktionary · JSON Structure

Rest Api Definition Entry Structure

DefinitionEntry schema from Wiktionary Wikimedia REST API

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

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

Properties

definition examples parsedExamples

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-entry-structure.json",
  "description": "DefinitionEntry schema from Wiktionary Wikimedia REST API",
  "type": "object",
  "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
      }
    }
  },
  "required": [
    "definition"
  ],
  "name": "DefinitionEntry"
}