A promise based API wrapper for the unofficial MyAnimeList API
Installation
npm i @shineiichijo/marika
yarn add @shineiichijo/marika
🚀
Importing
import{Anime,Character,Manga}from"@shineiichijo/marika";// const { Anime, Character, Manga } = require("@shineiichijo/marika")constanimeClient=newAnime();constcharaClient=newCharacter();constmangaClient=newManga();
💙
Anime Methods
awaitanimeClient.getRandomAnime();//will return random anime with infoawaitanimeClient.getAnimeById(id);//will return the info for the given anime idawaitanimeClient.getAnimeCharacters(id);//will return characters of the given anime idawaitanimeClient.getAnimeStaff(id);//will return staff list for the given anime idawaitanimeClient.getAnimeEpisodes(id);//will return episodes list of the given anime id. You can also query the page. Example: await animeClient.getAnimeEpisodes(id, { query: page_number })awaitanimeClient.getAnimeEpisodeById(id,{query: episode_number});//will return the info of the given anime id episodeawaitanimeClient.getAnimeNews(id);//will return the list of anime news for the given anime id. You can also query the page. Example: await animeClient.getAnimeNews(id, { query: page_number })awaitanimeClient.getAnimeForum(id);//will return the forum of the given anime id. You can also select the filter. Example: await animeClient.getAnimeForum(id, { filter: "episode" }). You can check the filters here - https://github.com/ShineiIchijo/Marika/blob/main/src/typings/searchOptions.ts#L85awaitanimeClient.getAnimeVideos(id);//will return the list of videos for the given anime idawaitanimeClient.getAnimePictures(id);//will return pictures of the given anime idawaitanimeClient.getAnimeStats(id);//will return the stats for the given anime idawaitanimeClient.getAnimeRecommendations(id);//will return recommendations of the given anime idawaitanimeClient.getAnimeMoreInfo(id);//will return more info for the given anime idawaitanimeClient.getAnimeUserUpdates(id);//will return user updates of the given anime id. You can also query the page. Example: await animeClient.getAnimeUserUpdates(id, { query: page_number })awaitanimeClient.getAnimeReviews(id);//will return reviews of the given anime id. You can also query the page. Example: await animeClient.getAnimeReviews(id, { query: page_number })awaitanimeClient.getAnimeRelations(id);//will return relations of the given anime idawaitanimeClient.getAnimeThemes(id);//will return themes of the given anime idawaitanimeClient.getAnimeExternals(id);//will return externals of the given anime idawaitanimeClient.searchAnime(query);//will search the given anime title. You can pass several options. You can check it out at here - https://github.com/ShineiIchijo/Marika/blob/main/src/typings/searchOptions.ts#L1awaitanimeClient.getTopAnime();//will return list for the ranking of anime in MyAnimeList. You can also query the page. Example - await animeClient.getTopAnime({ query: page_number })
💚
Manga Methods
awaitmangaClient.getRandomManga();//will return random manga with infoawaitmangaClient.getMangaById(id);//will return the info of the given manga idawaitmangaClient.getMangaCharacters(id);//will return characters of the given manga idawaitmangaClient.getMangaNews(id);//will return news of the given manga id. You can also query the page. Example: await mangaClient.getMangaNews(id, { query: page_number })awaitmangaClient.getMangaTopics(id);//will return topics of the given Manga IDawaitmangaClient.getMangaPictures(id);//will return pictures of the given manga idawaitmangaClient.getMangaStats(id);//will return the stats for the given manga idawaitmangaClient.getMangaMoreInfo(id);//will return more info for the given manga idawaitmangaClient.getMangaRecommendations(id);//will rerturn recommendations of the given manga idawaitmangaClient.getMangaUserUpdates(id);//will return user updates of the given manga id. You can also query the page. Example: await mangaClient.getMangaUserUpdates(id, { query: page_number })awaitmangaClient.getMangaReviews(id);//will return reviews of the given manga id. You can also query the page. Example: await mangaClient.getMangaReviews(id, { query: page_number })awaitmangaClient.getMangaRelations(id);//will return relations of the given manga idawaitmangaClient.getMangaExternal(id);//will return external of the given manga idawaitmangaClient.searchManga(query);//will search the given manga. You can pass several options. You can check it out at here - https://github.com/ShineiIchijo/Marika/blob/main/src/typings/searchOptions.ts#L27awaitmangaClient.getTopManga();//will return list for ranking of manga in MyAnimeList. You can also query the page. Example - await mangaClient.getTopManga({ query: page_number })
🤍
Character Methods
awaitcharaClient.getRandomCharacter();//will return random anime character with infoawaitcharaClient.getCharacterById(id);//will return the info for the given character idawaitcharaClient.getCharacterManga(id);//will return the manga for the given character idawaitcharaClient.getCharacterAnime(id);//will return the anime for the given character idawaitcharaClient.getCharacterVoiceActors(id);//will return the voice actors of the given character idawaitcharaClient.getCharacterPictures(id);//will return pictures of the given character idawaitcharaClient.searchCharacter(query);//will search the given character. You can also pass several options. You can check it out at here - https://github.com/ShineiIchijo/Marika/blob/main/src/typings/searchOptions.ts#L19awaitcharaClient.getTopCharacters();//will return ranking of characters in MyAnimeList. You can also query the page. Example - await charaClient.getTopCharacters({ query: page_number })
The resulting tarball only contains 3 files: LICENSE, README.md, and package.json. There are no .js or .d.ts files included, so the package is functionally empty.