Transforms

Transform HTML to Wikitext

Transform Parsoid HTML to Wikitext.

When converting pre-existing (possibly modified) content, you should pass in the title, revision, and If-Match header. This lets Parsoid preserve small syntactic variations in wikitext, which ensures that diffs are readable.

  • Stability: stable
  • Rate limit: 25 req/s
post/transform/html/to/wikitext/{title}/{revision}

Request

  • Base URL: https://en.wikipedia.org/api/rest_v1
  • URL: https://en.wikipedia.org/api/rest_v1/transform/html/to/wikitext/{title}/{revision}
  • Auth: none declared

Path parameters

titlestring required

Page title. Use underscores instead of spaces. Use percent-encoding. Example: Main_Page.

revisioninteger required

The page revision

Headers

if-matchstring

The ETag header of the original render indicating it's revision and timeuuid. Required if both title and revision parameters are present.

Response

MediaWiki Wikitext.

Changes

No recorded changes to this operation across all 1 revision of this API.