Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
const wikiEndPoint = "http://appropedia.org/w/api.php"

function fetchWikiExtract(catGrab){
    let wikiParams = '/action=query'
    + '&generator=categorymembers'
    + '&gcmlimit=100'
    + '&gcmtitle=Category:'
    + catGrab
    + '&prop=id'
    return wikiEndPoint + wikiParams;
}

let apiLink = fetchWikiExtract("Tolocar");

var wikiConfig = {
    timeout: 6500
}

async function getJsonResponse(url, config){
    const res = await axios.get(url, config)
    return res.data;
}

getJsonResponse(apiLink, wikiConfig).then(result => {
    console.log(result);
}).catch(error => {
    console.log("error: " + error);
    return;
});
Cookies help us deliver our services. By using our services, you agree to our use of cookies.