Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

anilist-node

1.5.0 • Public • Published

Anilist-Node

NPM Page Support Server

A simple, lightweight Node.js wrapper for the AniList API.

Using Anilist-node

To install: npm install anilist-node

You may need a token for some features (ie checking favourites). A token only needs to be generated once in order to use. To start, head to Anilist's Developer Page and click "Create New Client". Note the client id. Then, copy paste this URL https://anilist.co/api/v2/oauth/authorize?client_id={clientID}&response_type=token, replacing the {clientID} with your client ID. It will ask you to log in and then provide you with the token to use.

NOTE: Please store your token securely and privately! This gives access to your AniList account. It is your responsibility to maintain your token.

Example

General lookup search (no login):

const anilist = require('anilist-node');
const Anilist = new anilist();
 
Anilist.media.anime(21708).then(data => {
    console.log(data);
});

Lookup search (login):

const settings = require('./settings.json'); //Or wherever your store your token.
const anilist = require('anilist-node');
const Anilist = new anilist(settings.token /* This being your token */);
 
Anilist.media.anime(21708).then(data => {
    console.log(data);
});

Documentation

Please see documentation.md file for more information

License and Contact

AniList-Node is licensed under the MIT License.

For issues and bugs, please use the issue tracker on this repository. For other needs, either contact me by email katsurinstudios@protonmail.ch or in my Discord server in the #anilist-node channel.

Install

npm i anilist-node

DownloadsWeekly Downloads

149

Version

1.5.0

License

MIT

Unpacked Size

47.7 kB

Total Files

18

Last publish

Collaborators

  • avatar