Wiktionary · JSON Structure

Rest Api Wikitext Transform Request Structure

WikitextTransformRequest schema from Wiktionary Wikimedia REST API

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

WikitextTransformRequest 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

wikitext body_only stash

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-wikitext-transform-request-structure.json",
  "description": "WikitextTransformRequest schema from Wiktionary Wikimedia REST API",
  "type": "object",
  "properties": {
    "wikitext": {
      "type": "string",
      "description": "Wikitext content to transform.",
      "example": "==English==\n===Interjection===\n# A standard greeting."
    },
    "body_only": {
      "type": "boolean",
      "description": "If true, only return the body fragment instead of a full HTML document.",
      "example": true
    },
    "stash": {
      "type": "boolean",
      "description": "If true, server-side stash for later /transform calls.",
      "example": false
    }
  },
  "required": [
    "wikitext"
  ],
  "name": "WikitextTransformRequest"
}