Wiktionary · JSON Structure

Rest Api Html Transform Request Structure

HtmlTransformRequest schema from Wiktionary Wikimedia REST API

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

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

Properties

html scrub_wikitext

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-html-transform-request-structure.json",
  "description": "HtmlTransformRequest schema from Wiktionary Wikimedia REST API",
  "type": "object",
  "properties": {
    "html": {
      "type": "string",
      "description": "Parsoid HTML to convert back to wikitext.",
      "example": "<section><h2>English</h2><p>A standard greeting.</p></section>"
    },
    "scrub_wikitext": {
      "type": "boolean",
      "description": "Whether to clean up the resulting wikitext.",
      "example": true
    }
  },
  "required": [
    "html"
  ],
  "name": "HtmlTransformRequest"
}