Socket
Socket
Sign inDemoInstall

malapi

Package Overview
Dependencies
106
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    malapi

Node MyAnimeList API


Version published
Weekly downloads
123
decreased by-30.51%
Maintainers
1
Install size
9.63 MB
Created
Weekly downloads
 

Readme

Source

Node MyAnimeList API

This module wraps the official MyAnimeList.net API and also makes use of scraping to retrieve additional information not generally available through the (limited!) official API.

Install

npm install malapi

Examples

Retrieve anime information by MAL Id

var Anime = require('malapi').Anime;

Anime.fromId(28891).then(anime => {
  console.log(anime);
});

Retrieve anime information by Url

var Anime = require('malapi').Anime;

Anime.fromUrl('http://myanimelist.net/anime/28891/Haikyuu_Second_Season')
.then(anime => {
  console.log(anime);
});

Retrieve anime information by Name

var Anime = require('malapi').Anime;

Anime.fromName('Haikyuu!! Second Season').then(anime => {
  console.log(anime);
});

Get episode list of anime

let haikyuu = ...

haikyuu.getEpisodes().then(episodes => {
  console.log(episodes);
});

Get episode information (includes synopsis)

let firstEp = episodes[0];

firstEp.getInformation().then(episode => {
  console.log(episode.synopsis);
});

Keywords

FAQs

Last updated on 02 Nov 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc