User:Zaycodes/Sandbox/API:Iwbacklinks/Sample code 1

MediaWiki JS
 /*	iwbacklinks.js

MediaWiki API Demos Demo of `Iwbacklinks` module: Get pages linking to wikibooks:Main_Page.

MIT License

var params = { action: 'query', list: 'iwbacklinks', iwblprefix: 'wikibooks', iwbltitle: 'Main_Page', format: 'json' },	api = new mw.Api;

api.get( params ).done( function ( data ) {	console.log( data ); } );