Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@justalk/anime-api

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@justalk/anime-api

An api for searching download links, streaming links, pages for your favorite animes

  • 2.1.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
increased by28.57%
Maintainers
1
Weekly downloads
 
Created
Source

ANIME-API

Last version npm Last version Node version Travis Coverage Status Dependency status Last version XO code style

Star the project

Api for searching page link, download link, streaming link of an anime and a precise episode on many website simultaneously.

npm install @justalk/anime-api

Short Example

If you want to search for a streaming link of the episode 387 of naruto shippuden

const animeapi = require('@justalk/anime-api');
const stream = await animeapi.stream('naruto shippuden', 387);

Features

  • Get page links: Get the page links of the anime on many website by searching an anime by name

  • Get streaming links: Get the streaming link of an episode of an anime by anime name

  • Get download links: Get the direct download link of an episode of an anime by anime name (incomming)

API

async links(search, options)
nametypedescription
searchStringname of the anime searched
optionsObject(optionnal) List of the options
name of keyreturn typedescription
limit_per_websiteNumberLimit the number of result per website
limitNumberLimit the number of total result
websiteStringWebsite that you wanna target, see under for the complete list
nametypedescription
searchStringname of the anime searched
episodeNumbernumber of the episode searched
optionsObject(optionnal) List of the options

List of website available

The list below show the website scraped by the API and the website available for the option website

website variablewebsite url
ANIMELANDhttps://www.animeland.us/
CHIA-ANIMEhttp://www.chia-anime.me/
ANIMEOUThttps://www.animeout.xyz/
GOGOANIMEhttps://www3.gogoanime.pro/
ANIMEFREAKhttps://www.animefreak.tv/

The list is increasing slowly. I am working on it.

Examples

const animeapi = require('@latsuj/anime-api');
const results = await animeapi.links('Naruto shippuden');
results = [{
    source: 'ANIMELAND',
    title: 'Naruto Shippuden',
    link: 'https://www.animeland.us/dub/naruto-shippuden',
    levenshtein: 2
  },
  {
    source: 'CHIA-ANIME',
    title: 'Naruto Shippuden (TV)',
    link: 'http://www.chia-anime.me/episode/naruto%e3%83%8a%e3%83%ab%e3%83%88%e7%96%be%e9%a2%a8%e4%bc%9danime/',
    levenshtein: 7
  },
  {
    source: 'ANIMEOUT',
    title: 'Naruto Shippuden Movie 7 The Last',
    link: 'https://www.animeland.us/dub/naruto-shippuden-movie-7-the-last',
    levenshtein: 19
}]
const animeapi = require('@justalk/anime-api');
const stream = await animeapi.stream('naruto shippuden', 387);
results = [{
    source: 'ANIMELAND',
    link: 'https://www.animeland.us/naruto-shippuden-episode-500-english-dubbed'
  },
  {
    source: 'CHIA-ANIME',
    link: 'http://www.chia-anime.me/naruto-shippuden-episode-500-english-subbed/'
}]

How to contribute/test

For testing, install the node project and run the test command.

node install
npm test

Also, you can use the command under for running the test without the linter

npm run test-no

The API has two kind of tests.

  1. dynamic : Perform query on the real Website.
  2. static : Run the API through website mock, allowing the tests to be more precise.

I am also using winston for filling up logs.

License

MIT - Copyright © JUSTAL Kevin

Keywords

FAQs

Package last updated on 11 Sep 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc