A single API that aggregates anime episode lists and streaming links from multiple providers. Give it an AniList ID, get back everything — episodes, sources, and stream URLs — all in one place.
This API intentionally uses AniList as its catalog and identity layer. When AniList is unavailable, the API may be partially unavailable or unstable as well. If you do not want an AniList-backed catalog, this simply is not the API for your use case!. So dont bother using it.
Fifteen providers are wired into the API. Coverage and stream availability vary by title and upstream site conditions.
| Provider | Highlights |
|---|---|
| AniHQ | Sub/dub catalogs; title and installment matching |
| Reanime | Broad catalog |
| AniKoto | Broad catalog |
| AnimeGG | Fuzzy title matching |
| AnimeNoSub | Sub and dub episodes |
| AniZone | Sub, HLS, and subtitles |
| AniWaves | HLS, MP4, and embed fallbacks |
| Pahenime | AniList-ID-verified catalog; decoded HLS and player embed |
| AnimeSalt | Season-aware matching; Ravok HLS and language-specific server embeds |
| Kickassanime | Fuzzy title matching |
| AnimeDunya | MAL-backed; sub, HLS, and subtitles |
| AnimeOnsen | AniList/MAL matching; sub, DASH, and subtitles |
| Ani.pm | Soft-sub and hard-sub variants |
| AnimeHeaven | Sub episodes; direct MP4 streams with per-episode download links |
| MMani | Sub-only uncensored BD catalogue; HLS |
| Provider | API route name |
|---|---|
| AniHQ | anihq |
| Reanime | reanime |
| AniKoto | anikoto |
| AnimeGG | animegg |
| AnimeNoSub | animenosub |
| AniZone | anizone |
| AniWaves | aniwaves |
| Pahenime | pahenime |
| AnimeSalt | animesalt |
| Kickassanime | kaa |
| AnimeDunya | animedunya |
| AnimeOnsen | animeonsen |
| Ani.pm | anipm |
| AnimeHeaven | animeheaven |
| MMani | mmani |
| Extractor | Coverage |
|---|---|
| Byse | Challenge flow and AES-GCM playback payload |
| DataSV | Embed URL matcher |
| FlixCloud | WASM-derived playlist key and AES-CBC stream payload |
| MegaPlay | Embed matcher and AES-CBC source payload |
| Nova | AES-128-CBC source payload |
| Vidmoly | Embed URL matcher |
| Vidplay | Embed URL matcher |
| VOE | Obfuscated source payload |
GET /map/:anilistId
Returns cross-platform ID mappings — MAL, TVDB, TMDB, Kitsu, AniDB, and more.
GET /episodes/:anilistId
GET /episodes/:provider[/:provider...]/:anilistId
Returns episode lists in a single response with smart background refresh. Pass one or more provider names in the path to filter results — e.g. /episodes/anizone/anihq/16498 returns only those two. Omit providers to get all of them.
GET /watch/:provider/:anilistId/sub|dub/:provider-:ep
Returns stream URLs for a specific episode from a specific provider.
GET /stream/reanime/:id/sub|dub/:ep
302 redirect directly to the HLS stream.
Click to see playback/decryption guide
ReAnime uses FlixCloud for some streams. The returned url can be a signed HLS master URL, but FlixCloud may return the manifest as a Base64 + XOR payload instead of plaintext #EXTM3U.
For those streams, use the returned playlist_key or key field to decode the master playlist and any child playlists before handing them to an HLS player.
function decryptFlixManifest(bodyBuffer, playlistKey) {
const raw = Buffer.isBuffer(bodyBuffer) ? bodyBuffer : Buffer.from(bodyBuffer);
const trimmed = raw.toString("utf8").trim();
if (trimmed.startsWith("#EXTM3U")) return trimmed;
const key = Buffer.from(playlistKey, "base64");
let payload = Buffer.from(trimmed, "base64");
const out = Buffer.alloc(payload.length);
for (let i = 0; i < payload.length; i++) {
out[i] = payload[i] ^ key[i % key.length];
}
const text = out.toString("utf8").trim();
if (!text.startsWith("#EXTM3U")) throw new Error("FlixCloud manifest decrypt failed");
return text;
}
function getManifestUrls(m3u8Text) {
return m3u8Text
.split(/\r?\n/)
.map((line) => line.trim())
.filter((line) => line && !line.startsWith("#"));
}
async function fetchAndDecryptFlixManifest(manifestUrl, playlistKey) {
const res = await fetch(manifestUrl, {
headers: {
"User-Agent": "Mozilla/5.0",
"Referer": "https://flixcloud.cc/",
"Origin": "https://flixcloud.cc"
}
});
if (!res.ok) throw new Error(`manifest HTTP ${res.status}`);
const body = Buffer.from(await res.arrayBuffer());
return decryptFlixManifest(body, playlistKey);
}HD-1 commonly uses AES-keyed HLS playlists. HD-2 commonly uses image-wrapped .png/.webp segment URLs, so a custom proxy/player may need to unwrap those segment bytes before playback.
For HD-2 style image-wrapped segments, fetch the segment through your proxy, unwrap it, and return it as video/mp2t.
const flixImageSegmentXorKey = Uint8Array.from([
157, 42, 241, 71, 179, 142, 92, 112,
166, 25, 228, 59, 216, 98, 15, 197
]);
function unwrapFlixImageSegment(bodyBuffer) {
const body = Buffer.isBuffer(bodyBuffer) ? bodyBuffer : Buffer.from(bodyBuffer);
let offset = 0;
let needsXor = false;
const isWebp =
body.length > 12 &&
body[0] === 0x52 &&
body[1] === 0x49 &&
body[2] === 0x46 &&
body[3] === 0x46 &&
body[8] === 0x57 &&
body[9] === 0x45 &&
body[10] === 0x42 &&
body[11] === 0x50;
const isPng =
body.length > 8 &&
body[0] === 0x89 &&
body[1] === 0x50 &&
body[2] === 0x4e &&
body[3] === 0x47 &&
body[4] === 0x0d &&
body[5] === 0x0a &&
body[6] === 0x1a &&
body[7] === 0x0a;
if (isWebp) {
offset = 12;
needsXor = body[offset] !== 0x47;
} else if (isPng) {
offset = 8;
needsXor = body[offset] !== 0x47;
}
if (!offset) return { body, unwrapped: false };
const out = Buffer.from(body.subarray(offset));
if (needsXor) {
for (let i = 0; i < out.length; i++) {
out[i] ^= flixImageSegmentXorKey[i % flixImageSegmentXorKey.length];
}
}
return { body: out, unwrapped: true };
}The API does not expose a public ReAnime /proxy route. If you need direct custom-player playback, use the returned embed URL or implement the manifest decode/proxy flow above.
Removed the ReAnime /proxy endpoint since it was unnecessary and did not handle the Flixcloud playback flow anyway.
git clone https://github.com/walterwhite-69/Anivexa-API
cd Anivexa-API
npm install
cp .env.example .env
node server.jsRuns on Node.js. No build step needed.
Copy .env.example to .env and fill in the values.
| Variable | Default | Notes |
|---|---|---|
CACHE_ENABLED |
false |
Set to true to enable caching (memory + disk + Redis). |
UPSTASH_REDIS_REST_URL |
— | From upstash.com. Only used when CACHE_ENABLED=true. |
UPSTASH_REDIS_REST_TOKEN |
— | From upstash.com. Only used when CACHE_ENABLED=true. |
DEFAULT_REDIS_TTL |
900 |
Seconds. Fallback expiry for Redis writes when a per-item TTL isn't computed. Most cache entries use their own smart TTLs based on anime status (finished/airing/etc.) — this is just the safety-net default. |
PORT |
4000 |
Local dev server port (server.js only — ignored on Vercel/serverless). Change it if 4000 is already in use, then hit http://localhost:PORT. |
COMPRESSION_ENABLED |
true |
Compresses JSON/HTML/CSS/SVG responses with Brotli (falling back to gzip) when the client sends Accept-Encoding. Set to false if a reverse proxy or CDN already compresses, to avoid compressing twice. server.js only — Vercel compresses at the edge. |
COMPRESSION_THRESHOLD_BYTES |
1024 |
Responses smaller than this are sent as-is. Only used when COMPRESSION_ENABLED=true. |
CORS_ENABLED |
true |
Set to false to turn off the central CORS layer in server.js / api/index.js. |
CORS_ORIGIN |
* |
Allowed origin(s). * allows any site. Or a comma-separated allow-list, e.g. https://anivexa.app,http://localhost:3000; only a matching Origin is echoed back, anything else gets no CORS headers. |
PROXY_URL |
(empty) | Optional proxy URL: socks5://[user:pass@]host:port, http://[user:pass@]host:port or https://host:port. When set, every request the API makes to upstream providers goes through it, so providers see the proxy's IP instead of your server's. Leave empty to connect directly. ur.io proxy URLs use a token in the hostname. |
COMPRESSION_QUALITY |
6 |
Compression level. Clamped to 0–11 for Brotli and 1–9 for gzip. Only used when COMPRESSION_ENABLED=true. |
On Vercel (or Railway/Render), set these as regular project environment variables instead of committing .env. |
- Covers both HTTP stacks in the project: regular
fetchcalls and thewreq-jssessions used by some providers. - ur.io proxy URLs look like
https://<token>.crisp.bringyours.com:7131, with the access token inside the hostname. - Supported types: SOCKS5 (
socks5://;socks5h://is treated the same), HTTP (http://) and HTTPS (https://). SOCKS4/4a are not supported, and the server refuses to start with one. - SOCKS5 example:
PROXY_URL=socks5://myuser:mypass@203.0.113.45:1080. Hostnames are resolved by the proxy, so DNS lookups don't leak your IP. Leave outuser:pass@if the proxy needs no login, and percent-encode special characters in the username or password (@→%40,:→%3A,/→%2F). - Many providers list separate HTTP and SOCKS5 ports for the same IP. Use the port that matches the scheme in your URL.
- Results depend on the proxy: some providers may fail through certain proxies — datacenter IPs are often blocked, some sites are region-locked, rotating/shared IPs can be rate-limited, and slow proxies cause timeouts. If a provider only breaks with the proxy on, try a different proxy or region (residential IPs usually fare better), or leave
PROXY_URLempty. - Fails closed: an invalid
PROXY_URLstops the server at startup, and if the proxy is unreachable, requests fail instead of falling back to your real IP. - Local addresses and your Upstash Redis host always bypass the proxy.
- Treat the URL as a secret: many proxy services put an access token in the hostname or
user:pass. It is never logged, so set it in.envor your host's environment variables, not in code. - It only covers requests the API server makes. Stream URLs returned to your app are played by the viewer's device, which connects to those hosts directly.
- Supported in
server.jsand Vercel's Node serverless entry (api/index.js). The edge entry (api/handler.js) can't use a proxy.
⚠️ Not recommended. Vercel runs on shared datacenter IPs that are widely blocked by anime streaming sites. Most providers will fail silently or return errors — the API will technically run but you'll get little to no data back. Use a self-hosted VPS or use railway, render etc etc.
Only request providers that self-host their content. No scrapers of third-party sites.
See CONTRIBUTION.md for contribution guidelines.
Got a provider you'd like added? Open an issue.
This project is community-kept-alive — if it helps you, please:
- ⭐ Star the repo so others can find it
- 🛠️ Open a PR if you want to add or fix something
hope it helped :3