Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

nirewen/popcorn-api

Repository files navigation

Popcorn API

Easy way to get data from the Popcorn Time API

Documentation is available at https://popcorn-api.js.org/

Installation

Via NPM:

$ npm install popcorn-api

Usage

Popcorn-API comes with 3 routes you can use: anime, shows and movies.
To access a route, you use it as a property of PopCorn: PopCorn.[route].

Examples

{ await anime.fetch(); console.log(anime); // -> Anime }); // * Search for TV Shows using query 'flash' PopCorn.shows.search({query: 'flash'}) .then(([show]) => show.fetch()) .then(console.log); // -> Show">const PopCorn = require('popcorn-api');

// * Search for Animes using query 'kill'
PopCorn.animes.search({query: 'kill'})
.then(async ([anime]) => {
await anime.fetch();

console.log(anime); // -> Anime
});

// * Search for TV Shows using query 'flash'
PopCorn.shows.search({query: 'flash'})
.then(([show]) => show.fetch())
.then(console.log); // -> Show

Find more examples in Examples

About

A library to access the PopcornTime API

Topics

Resources

Readme

License

MIT license

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors