• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Kou

Kou

Api

Public
Like
Api
Home
Code
3
allanime
1
README.md
H
main.ts
Environment variables
Branches
1
Pull requests
Remixes
History
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
Code
/
Search
README.md

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
Code
allanimeREADME.md
H
main.ts
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
AboutAlternativesPricingBlogNewsletterCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.