-
-
Notifications
You must be signed in to change notification settings - Fork 75
API end‐points
Kelson edited this page Apr 7, 2024
·
4 revisions
MWoffliner supports the following API end-points to retrieve HTML:
-
Wikimedia only:
-
WikimediaDesktop
- Description: Standard Wikimedia API to retrieve article HTML
- Screen: Desktop
- URL: for example https://en.wikipedia.org/api/rest_v1/page/html/Foobar
-
WikimediaMobile
- Description: Wikimedia API to retrieve article HTML for Wikipedia mobile apps
- Screen: Mobile
- URL: for example https://en.wikipedia.org/api/rest_v1/page/mobile-html/Foobar
-
-
MediaWiki:
-
VisualEditor
- Description: Mediawiki API to provide HTML for the Visual Editor (extension)
- Screen: Desktop
- URL: for example https://en.wikipedia.org/w/api.php?action=visualeditor&mobileformat=html&format=json&paction=parse&formatversion=2&page=Foobar
-
RestApi
- Description: "New" API to retrieve HTML, providing HTML generated by PHP Parsoid
- Screen: Desktop
- URL: for example https://en.wikipedia.org/w/rest.php/v1/page/Foobar/html
-
ActionParse
- Desription: Old API to retrieve HTML, newly providing HTML generated by PHP Parsoid
- Screen: Desktop
- URL: for example https://en.wikipedia.org/w/api.php?action=parse&format=json&prop=text|modules|jsconfigvars|headhtml&parsoid=1&formatversion=2&page=Foobar
-