0.0.10 β€’ Published 2 years ago

asa-api v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

asa GitHub package.json version npm NPM GitHub commit activity GitHub last commit GitHub issues GitHub Hits

ASA (Anime Scraper API) is an API to scrap information from anime websites. This was made for another project, but now is entirely separated. However, is not meant to use in production. It was made just for fun.

THIS IS UNDER HEAVY DEVELOPMENT, DON'T USE THIS IN PRODUCTION

This means that breaking changes will be made, and you'll probably need to change stuff.


Features

  • Retrieve any relevant information, like anime name, episodes, and streaming services.
  • Support for multiple sites.
  • Fast responses thanks to cheerio.

Installation

npm install asa-api --save

Examples

List all available sources and functions

const asa = require('asa-api');
console.log(asa.availableSources());

Search for anime and get results

const asa = require('asa-api');
asa.getAnime("animeflv", "86")
    .then(res => console.log(res));

/*
[
  {
    title: '86 - Eighty Six',
    url: 'https://ww3.animeflv.cc/anime/86-eighty-six',
    img: 'https://img.animeflv.cc/cover/86-eighty-six.jpg'
  },
  {
    title: '86 2nd Season',
    url: 'https://ww3.animeflv.cc/anime/86-2nd-season',
    img: 'https://img.animeflv.cc/cover/86-2nd-season.jpg'
  }
]
*/

Get anime episodes

const asa = require('asa-api');
asa.getAnime("monoschinos2", "serial experiments").then(res => {
    asa.getEpisodes("monoschinos2", res[0].url).then(res => {
        console.log(res)
    });
});

/*
  {
    url: 'https://monoschinos2.com/ver/serial-experiments-lain-latino-episodio-1'
  },
  {
    url: 'https://monoschinos2.com/ver/serial-experiments-lain-latino-episodio-2'
  }, ...
*/

Get streaming services from episode

const asa = require('asa-api');
asa.getAnime("animeflv", "serial experiments").then(res => {
    asa.getEpisodes("animeflv", res[0].url).then(res => {
        asa.getStreaming("animeflv", res[0].url).then(res => {
            console.log(res)
        });
    });
});
/*
  {
    servicename: 'Streamsb',
    url: 'https://sbplay2.xyz/e/yp7u8ih6k9fn'
  },
  {
    servicename: 'Xstreamcdn',
    url: 'https://fembed-hd.com/v/mzvk6w8k1oq'
  }, ...
*/

Sites supported

EspaΓ±ol πŸ‡ͺπŸ‡Έ

NameURLStatusNotes
MonosChinoshttps://monoschinos2.com/βœ” WorkingLimited to 31 results per request. You can't retrieve streaming services (at least not right now).
AnimeFLVhttps://ww3.animeflv.cc/βœ” WorkingThere's another URL for this site: https://www3.animeflv.net/. I'm not sure if the one used right now is official, but it's the only one I got working.
JKAnimehttps://jkanime.net/πŸ”˜ Planned
VerAnime.orghttps://www.veranime.org/πŸ”˜ Planned

English πŸ‡¬πŸ‡§

NameURLStatusNotes
Animebee.tohttps://animebee.to/πŸ”˜ Planned
Zoro.tohttps://zoro.to/πŸ”˜ Planned

If you would like to request me to add a new language, feel free to open an issue.

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago