Skip to content
This repository has been archived by the owner on Sep 1, 2024. It is now read-only.
/ animu-desu Public archive

Unofficial API for gogoanime. Fetch anime data and get links for the episodes of the shows you want to watch.

License

Notifications You must be signed in to change notification settings

wiredmatt/animu-desu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

animu-desu

Unofficial API for gogoanime. Fetch anime data and get links for the episodes of the shows you want to watch.

npm version Maintenance

Install

npm i animu-desu

or

yarn add animu-desu

Usage

You can import only the function(s) you need, or the whole package.

With ES Module syntax

import { getPopular } from "animu-desu";

getPopular(1)...

or

import AnimuGetter from "animu-desu";

AnimuGetter.getPopular(1)...

With CommonJS syntax

const AnimuGetter = require("animu-desu");

AnimuGetter.getPopular(1)...

Get the popular animes

import { getPopular } from "animu-desu";

//getting the popular animes from page 1.
getPopular(1)
  .then((data) => console.log(data))
  .catch((err) => console.log(err));

Get the list of genres

import { getGenreList } from "animu-desu";

getGenreList()
  .then((data) => console.log(data))
  .catch((err) => console.log(err));

Search anime by genre

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));

Search anime by query

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));

Search recently added anime episodes

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));

Get details of an anime

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));

Get links for an episode of an anime

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));

NOTE

This package will only work in a node environment, as it uses cheerio to do web scraping.

License

MIT

About

Unofficial API for gogoanime. Fetch anime data and get links for the episodes of the shows you want to watch.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published