AllAnime REST API

REST API wrapping the AllAnime GraphQL API — search anime, get info, episode lists, and streaming/m3u8 source links. All JSON output.

Endpoints

MethodPathDescription
GET/API docs (JSON)
GET/api/search?q=narutoSearch anime
GET/api/search?q=naruto&type=sub&page=1&limit=20Search with filters
GET/api/info/:idAnime details by AllAnime ID
GET/api/episodes/:idSorted episode list (sub/dub/raw)
GET/api/sources/:id/:episodeStreaming sources (m3u8, mp4, embed)
GET/api/sources/:id/:episode?type=dubDubbed sources
GET/sourceView source code

Usage Flow

1. Search  →  GET /api/search?q=boruto
2. Info    →  GET /api/info/vkD8H5e7HsG2jctw9
3. Episodes → GET /api/episodes/vkD8H5e7HsG2jctw9
4. Sources →  GET /api/sources/vkD8H5e7HsG2jctw9/1

Architecture

Rendering mermaid diagram...

Response Format

{ "success": true, "data": { "id": "vkD8H5e7HsG2jctw9", "episode": "1", "translationType": "sub", "sources": [ { "name": "Default", "url": "https://...master.m3u8", "type": "hls" }, { "name": "S-mp4", "url": "https://...", "type": "embed" } ] } }

Optional Environment Variables

KeyDescription
ALLANIME_IFRAME_HEADOverride the episodeIframeHead URL for internal clock.json sources