About the project
REST API that aggregates anime data from AniWatch, GoGoAnime, and KickAssAnime with caching.
Provide fast, scrape-backed endpoints for discovering shows, episodes, and streaming servers.
Express + TypeScript backend, cached responses, ready to self-host (Docker/Vercel).
How to use the API
Example: /aniwatch/search?keyword=one+piece&page=1
curl https://api-anime-rouge.vercel.app/aniwatch/search?keyword=one+piece&page=1
You get titles, ids, episode counts, images, and pagination helpers.
Live demo playground
Run a quick query directly against the hosted API. Results stream below so you can copy/paste into your app.
Ready-made examples
Fetch AniWatch home feed.
fetch("https://api-anime-rouge.vercel.app/aniwatch/")
.then(r => r.json())
.then(data => console.log(data.spotlightAnimes));
Get streaming hosts for episode ids.
curl "https://api-anime-rouge.vercel.app/aniwatch/servers?id=one-piece-100&ep=84802"
Lightweight listing with pagination.
fetch("https://api-anime-rouge.vercel.app/kickassanime/search?keyword=naruto&page=1")
.then(r => r.json())
.then(({ animes }) => console.log(animes[0]));
Helpful notes
Key routes are cached (30 min to 1 month) to stay speedy and reduce scrape load.
Use sensible intervals; add your own proxy or cache when self-hosting.
Fork → set environment if needed → npm run build → host on Vercel/Docker.