|This extension is obsolete!
It has been replaced by core functionality in the MediaWiki software (which was added in version 1.27).
This extension has been merged into MediaWiki core as of gerrit:209570. Wikis running or upgrading to 1.27 should uninstall this extension.
Release status: stable
|Description||MediaWiki API playground|
|Author(s)||Max Semenik (MaxSemtalk)|
|MediaWiki||1.18.x - 1.26.x|
Translate the ApiSandbox extension if it is available at translatewiki.net
|Check usage and version matrix.|
|Open tasks · Report a bug|
On a wiki with ApiSandbox installed, go to Special:ApiSandbox. Choose action, format and other parameters. The sandbox displays interactive help for every request parameter. Then click the "Make request" button. ApiSandbox makes the request to api.php on your behalf and displays the result below in the format you chose. You can copy the request URL (and POST data, if needed) for reuse.
You can preload ApiSandbox form parameters by putting the query string to api.php in the URL fragment, for example the query /w/api.php?action=languagesearch&search=Maratih&typos=1 becomes Special:ApiSandbox#action=languagesearch&format=json&search=Maratih&typos=1.
Note that, despite it being called a sandbox, any write requests performed with this extension will modify the wiki.
- Download and place the file(s) in a directory called
- Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'ApiSandbox' );
- Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.