Using the MediaWiki API
Getting the HTML of a wiki page
The documentation for the "PARSE" action of the API is here: https://www.mediawiki.org/wiki/API:Parsing_wikitext#GET_Request
Example link to get the HTML output of a page on THIS wiki in JSON format: