MyAnimeList-Module (NPM)

2026年8月25日2 次浏览来源:Dev.to阅读原文

MyAnimeList Module This module is neither affiliated with nor endorsed by MyAnimeList.

All data returned by this module is provided by MyAnimeList.

Version 1.0.5 Installation Install myanimelist-module with npm Usage/Examples All functions new MyAnimeList() Parameter Type Description Required.

Your MAL Client ID getAnimeInfo() Parameter Type Description Required.

Optional.

More information in the "Available fields" section.

Optional.

Number of items in the response. (Maximum of 100) Optional.

Default : Optional.

Default: getAnimeInfoByURL() Parameter Type Description Required.

You must use any valid MyAnimeList API link.

It also works with older responses via and . getSpecificAnimeInfo() Parameter Type Description Required.

Optional.

More information in the "Available fields" section.

Optional.

Default: getAnimeInfoByID() Parameter Type Description Required.

Optional.

More information in the "Available fields" section.

Optional.

Default: getAnimeRanking() Parameter Type Description Optional.

More information in the "Available ranking types" section.

Optional.

More information in the "Available fields" section.

Optional.

Number of items in the response. (Maximum of 500) Optional.

Default : Optional.

Default: getSeasonalAnime() Parameter Type Description Optional.

Default: Optional.

More information in the "Available fields" section.

Optional.

Number of items in the response. (Maximum of 100) Optional.

Default : Optional.

Default: getMangaInfo() Parameter Type Description Required.

Optional.

More information in the "Available fields" section.

Optional.

Number of items in the response. (Maximum of 100) Optional.

Default : Optional.

Default: getMangaInfoByURL() Parameter Type Description Required.

You must use any valid MyAnimeList API link.

It also works with older responses via and . getSpecificMangaInfo() Parameter Type Description Required.

Optional.

More information in the "Available fields" section.

Optional.

Default: getMangaInfoByID() Parameter Type Description Required.

Optional.

More information in the "Available fields" section.

Optional.

Default: getMangaRanking() Parameter Type Description Optional.

More information in the "Available ranking types" section.

Optional.

More information in the "Available fields" section.

Optional.

Number of items in the response. (Maximum of 500) Optional.

Default : Optional.

Default: Available fields Global : object or null : string or null : string or null : string or null : number or null : integer or null : integer or null : integer : integer : string or null Value Description white This work is safe for work gray This work may be not safe for work black This work is not safe for work : Array of objects : string : string Anime only : string unknown tv ova movie special ona music : string finished_airing currently_airing not_yet_aired : integer : object or null : object of null : string or null other original manga 4_koma_manga web_manga digital_manga novel light_novel visual_novel game card_game book picture_book radio music : integer or null : string or null Value Description g All ages pg Children pg_13 Teens 13 and Older r 17+ (violence & profanity) r+ Profanity & Mild Nudity rx Hentai : Array of objects Manga only : string unknown manga novel one_shot doujinshi manhwa manhua oel : string finished currently_publishing not_yet_published : integer : integer : Array of objects Available ranking types Global Anime only Manga only Additional information My Discord: https://discord.gg/2x9juZp9VX NPM Module: https://www.npmjs.com/package/myanimelist-module

分享