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

MediaWiki JS
 /*	iwbacklinks.js

MediaWiki API Demos Demo of `Iwbacklinks` module: Get pages that link to a given interwiki link.

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 ); } );