nodewikiaapi

Tutorial: Getting started

Getting started

Installation

npm install nodewikiaapi

Import

Import the module using ESM. See more information here.

import WikiaAPI from 'nodewikiaapi'

Your first request

Create an instance of WikiaAPI and use any of the documented methods.

import WikiaAPI from 'nodewikiaapi'

const devApi = new WikiaAPI('dev')
console.log(await devApi.getTopArticles())

You can also see the test file containing some usage of the methods: api.test.js.