wajik45 / wajik-anime-api

REST API streaming dan download Anime subtitle Indonesia | sub Indo
https://wajik-anime-api.vercel.app
MIT License
19 stars 20 forks source link
anime anime-api anime-downloader anime-scraper anime-sub-indo express otakudesu rest-api scraper scraping

wajik-anime-api

REST API streaming dan download Anime subtitle Indonesia dari berbagai sumber

Sumber:

API ini unofficial jadi kaga ada kaitan dengan sumber yang tersedia... MOHON IZIN ABANG SUMBER, sumber bisa bertambah, req/dm rekomendasi situs yang bagus

  1. otakudesu: https://otakudesu.cloud
  2. samehadaku: https://samehadaku.email

Installasi

# clone repo
git clone https://github.com/wajik45/wajik-anime-api.git

# masuk folder
cd wajik-anime-api

# install dependensi
npm install

# build
npm run build

# menjalankan server
npm start

# development
npm run dev

Routes

Endpoint Description
/{sumber} Deskripsi ada di response sesuai dengan sumber, patengin bae tuh response

Contoh request

(async () => {
  const response = await fetch("http://localhost:3001/otakudesu/ongoing?page=1");
  const result = await response.json();

  console.log(result);
})();

Contoh response

{
  "statusCode": 200,
  "statusMessage": "OK",
  "message": "",
  "ok": true,
  "data": {
    "animeList": [
      {
        "title": "Dr. Stone Season 3 Part 2",
        "poster": "https://otakudesu.cloud/wp-content/uploads/2024/01/Dr.-Stone-Season-3-Part-2-Sub-Indo.jpg",
        "episodes": 11,
        "releaseDay": "Jum'at",
        "latestReleaseDate": "05 Jan",
        "animeId": "drstn-s3-p2-sub-indo",
        "href": "/otakudesu/anime/drstn-s3-p2-sub-indo/",
        "otakudesuUrl": "https://otakudesu.cloud/anime/drstn-s3-p2-sub-indo/"
      },
      {"..."}
    ]
  },
  "pagination": {
    "currentPage": 1,
    "hasPrevPage": false,
    "prevPage": null,
    "hasNextPage": true,
    "nextPage": 2,
    "totalPages": 4
  },
}

CONTOH UI

Nyusul kalo sempet..