Wiktionary · Schema

DefinitionEntry

DefinitionEntry schema from Wiktionary Wikimedia REST API

DictionariesOpen SourceWikimediaMediaWikiLinguisticsOpen DataPublic APIs

Properties

Name Type Description
definition string HTML/wikitext definition body for one sense.
examples array Raw usage example strings.
parsedExamples array Structured usage examples (HTML or translation pairs).
View JSON Schema on GitHub

JSON Schema

rest-api-definition-entry-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wiktionary/refs/heads/main/json-schema/rest-api-definition-entry-schema.json",
  "title": "DefinitionEntry",
  "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"
  ]
}