Using the MediaWiki API: Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 13: | Line 13: | ||
http://pzwiki.wdka.nl/mw-mediadesign/api.php?action=parse&page=Entreprecariat_reader_synopses_and_abstracts&format=json | http://pzwiki.wdka.nl/mw-mediadesign/api.php?action=parse&page=Entreprecariat_reader_synopses_and_abstracts&format=json | ||
== Getting the MediaWiki content of a wiki page == | |||
?action=raw | |||
at the end of a url can be useful like [[Wiki2Presentation | for making wiki pages into slidy presentations with pandoc]] | |||
==See also== | |||
* [[MediaWiki]] | |||
* [[Mediawiki API]] | |||
* [[Install Mediawiki]] | |||
[[Category:MediaWiki]] |
Latest revision as of 12:13, 20 September 2024
A great feature of a wiki based on the mediawiki software is the built-in API.
https://www.mediawiki.org/wiki/API:Main_page
This allows you to write programs that access data from any wiki that uses mediawiki, like wikipedia, or this one!
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:
Getting the MediaWiki content of a wiki page
?action=raw
at the end of a url can be useful like for making wiki pages into slidy presentations with pandoc