Board Thread:General Coding Help/@comment-24473195-20150113124005/@comment-11733175-20150116142545

// make sure you check it's loaded first // not an issue for users, but it will cause an error for anons mw.loader.using( 'mediawiki.api', function {    ( new mw.Api )        // an object of key-value pairs that correspond to the relevent API module        // @link         .get( { action: 'query', list: 'recentchanges' } )       .done( function ( data ) { // do something with the result here console.log( data ); } ); } ); That's a very basic usage, there's much more that you can do with it :)