For MediaWiki (recent comments | status changes | tags | authors | states | release notes | statistics)
in mediawiki.util there is shorcut for this: mw.util.wikiScript( 'api' )