Parsoid/API/v1

The  in these examples refers to the configured wiki id as available in the siteinfo API request. Examples: 'enwiki', 'frwiki', 'dewiki' etc. refers to the canonical page name with spaces replaced with underscores; page should also be URL-encoded with a function like PHP's urlencode. Examples: 'Main_Page', 'Barack_Obama' etc.


 * : Get HTML for a given page revision. Example: /enwiki/Main_Page?oldid=598252063.
 * Convert passed-in wikitext or html
 * The {page} path component should be provided if available. Both it and the  parameter are needed for clean round-tripping of HTML retrieved earlier with.
 * HTML to Wikitext
 * oldid
 * the revision id this is based on (if any)
 * html
 * HTML to serialize to wikitext
 * Wikitext to HTML
 * wt
 * Wikitext to parse to HTML
 * body (optional) : boolean flag, only return the HTML body.innerHTML instead of a full document
 * For example, using the cURL command-line tool $ curl localhost:8000/localhost/Main_Page -d wt="Hello world" -d body=1
 * For example, using the cURL command-line tool $ curl localhost:8000/localhost/Main_Page -d wt="Hello world" -d body=1

Convenience method:
 * : Get HTML for the latest page revision, redirects to the full  form. This redirect preserves any URL query params that had been passed in.