Search code examples
wikipedia-apimediawiki-api

Is there any possibility to get the plain (MediaWiki-markup) source instead of HTML source of Wikipedia-pages via API?


As I asked above, I want to get the plain Wikipedia/Mediawiki-markup via the API instead of the HTML source code.

If I try this I get the HTML source of the section and of course I've already read the documentation of the Mediawiki API but didn't find anything.


Solution

  • The documentation for action=parse says you can use prop=wikitext to get the markup.