kuronekony4n / api-amvstrm

Open source anime streaming provider API with Gogoanime + Anilist for amvstrm

Home Page:https://api.amvstr.ml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

amvstrm API

amvstrm's API V1/V2 is still in developements.

⚠️ Since V2 use Anilist API, there will be a rate limit (90 per min). Please do not requests too much on route v2 (except : /stream, /download and /episode)

Usage

Please read the usage of our API on the documentation page. Usages

List of features

This is the comparison list of V1 and V2...

  • V2 (In Development)

    • Using ModuleJS
    • Anilist Info Based
    • 2 Fast Server and better cache system to save loading times (Redis/Memory)
      • api.amvstr.ml
      • s2-api.amvstr.ml (api-server-2 wont be updated)
    • More Route and Feature
    • Faster than V1 (fetch from official Anilist API / Consumet for fetching video/info backup source)
    • Compatible with amvstrm V2 (SOON)
    • Swagger Documentation
  • V1 (✔)

    • Using CommonJS
    • Gogoanime Info Based (Low Info)
    • 2 Normal Server (Vercel)
      • api.amvstr.ml
      • api-server-2.amvstr.ml
    • Slower (Web Scraping)
    • Compatible with amvstrm V1

Deployment

Vercel

For normal API with memory caching, please click here...

If you want to cache the API with Redis :

  1. Create your own free account on upstash to create your own redis : UPSTASH

  2. After you done click here :

  1. When you done creating your own account on Upstash :
  • Create a database
    image Choose any server location near you but for this ill go with global.

  • After you done copy your redis URL, PORT and PASSWORD credential.
    image

  • Come back and paste all of the credential in the box image

  1. When you done deploying, go to your github repo and modify the routes/api.js and routes/apiv2.js code and uncomment the redisClient const
const cache = apicache.middleware;

// IF YOU HAVE REDIS DB YOU CAN USE IT TO CACHE THE DATA
// const redisClient = createClient({
//   host: process.env.REDIS_URL,
//   port: process.env.REDIS_PORT,
//   password: process.env.REDIS_PASSWORD,
//   legacyMode: true
// });
// const cache = apicache.options({
//   redisClient,
// }).middleware;

Comment back the const cache and it should look like this

// const cache = apicache.middleware;

// IF YOU HAVE REDIS DB YOU CAN USE IT TO CACHE THE DATA
const redisClient = createClient({
  host: process.env.REDIS_URL,
  port: process.env.REDIS_PORT,
  password: process.env.REDIS_PASSWORD,
  legacyMode: true
});
const cache = apicache.options({
  redisClient,
}).middleware;

And Then you are done...

License

Our API source code is distributed under the terms of the GPL v3.0 license. See LICENSE for details. You are free to use our API source code in any way you want.

About

Open source anime streaming provider API with Gogoanime + Anilist for amvstrm

https://api.amvstr.ml

License:GNU General Public License v3.0


Languages

Language:JavaScript 99.8%Language:Shell 0.2%