Board Thread:General Coding Help/@comment-4347751-20170816195755/@comment-27958705-20170816210604

Original Authority:I'm aware that you cannot store API calls as a variable sure u can. usen jquery it will like: var api = new mw.Uri({path: '/api.php'}); var request api.clone.extend({action: 'query', list: 'recentchanges',  rcnamespace: '0', rcprop: 'user|timestamp|title|sizes|parsedcomment',  rcshow: '!patrolled', format: 'json'}); $.getJSON(request).done(function(data){ //now response in the data object  //do what u want with data  console.log(data); });