Unofficial API for gogoanime. Fetch anime data and get links for the episodes of the shows you want to watch.
npm i animu-desu
or
yarn add animu-desu
You can import only the function(s) you need, or the whole package.
import { getPopular } from "animu-desu";
getPopular(1)...
or
import AnimuGetter from "animu-desu";
AnimuGetter.getPopular(1)...
const AnimuGetter = require("animu-desu");
AnimuGetter.getPopular(1)...
import { getPopular } from "animu-desu";
//getting the popular animes from page 1.
getPopular(1)
.then((data) => console.log(data))
.catch((err) => console.log(err));
import { getGenreList } from "animu-desu";
getGenreList()
.then((data) => console.log(data))
.catch((err) => console.log(err));
import { searchByGenre } from "animu-desu";
//getting the action animes from page 1.
searchByGenre("action", 1)
.then((data) => console.log(data))
.catch((err) => console.log(err));
import AnimuGetter from "animu-desu";
//getting the animes that match with "One piece" from page 1.
import { search } from "animu-desu"
search("One piece", 1)
.then((data) => console.log(data))
.catch((err) => console.log(err));
import { getRecentlyAdded } from "animu-desu";
//getting the recently added animes from page 1.
getRecentlyAdded(1)
.then((data) => console.log(data))
.catch((err) => console.log(err));
import { getAnimeDetails } from "animu-desu";
//getting the details of the anime with the ID "one-piece".
getAnimeDetails("one-piece")
.then((data) => console.log(data))
.catch((err) => console.log(err));
import { getEpisodeLinks } from "animu-desu";
//getting the links for the episode 959 of the anime with the ID "one-piece".
getEpisodeLinks("one-piece", 959)
.then((data) => console.log(data))
.catch((err) => console.log(err));
This package will only work in a node environment, as it uses cheerio to do web scraping.