A simple wrapper to interact with the Wikia API.
This package is outdated and used the /api/v1 rest api which is deprecated use the new MediaWiki api.php endpoint, there may be other wrappers for it.
npm install wikia
const Wikia = require("wikia");
// for http://miraculousladybug.wikia.com
const wikia = new Wikia({ wiki: "miraculousladybug" });
// Leave wiki empty for cross-wiki actions however some methods requires a wiki
// All methods returns a Promise
// you can eiher use it with .then(callback)
// or use async/await
// for this example we will create an annonymous async function to use await.
(async() => {
const articles = await wikia.getTopArticles();
console.log(articles);
console.log(await wikia.getWikiData());
})();
- Documentation for full documentation.
- Discord Server best way to contact me.
- Wikia API Documentation to see response body schemas, etc.
MIT