REST · JSON · HLS
One catalogue.
One contract.
Search, details, episodes, servers and playback links for an anime catalogue, wrapped in a single JSON envelope. Three first-party clients read this API: a web app, a manga reader and an Obsidian plugin.
https://animeapi.cjhauser.me
- Responses:
{ "success": true, "results": … } - 600 requests / minute
- ETag + Cache-Control
- 18+ opt-in
Quick start
curl -s 'https://animeapi.cjhauser.me/api/search?keyword=frieren' | jq '.results.data[0].title'
curl -s 'https://animeapi.cjhauser.me/api/info?id=sousou-no-frieren-74575' | jq '.results.data'
curl -s 'https://animeapi.cjhauser.me/api/episodes/sousou-no-frieren-74575' | jq '.results.totalEpisodes'
Endpoints the eight that carry a client
-
GET
/api/Home feed: spotlights, trending, top ten, airing, popular and most-favourite rows, plus the genre list.
-
GET
/api/search?keyword=Search the catalogue (
qis an alias). Native results are indata; every other source is grouped undersources. -
GET
/api/info?id=Full detail for one title, with seasons and a preview block. Accepts the slug id or the bare numeric one.
-
GET
/api/episodes/:idtotalEpisodesand the episode list. An empty list is a valid answer, not an error. -
GET
/api/servers/:idEvery server for an episode, from every provider. Stays a plain array.
-
GET
/api/stream?id=Resolved playback: an HLS master link or an embed, with subtitle tracks. Optional
serverandtype=sub|dub. -
GET
/api/top-tenTop ten lists by day, week and month.
-
GET
/api/schedule?date=Airing schedule.
dateis optional;tzOffsetdefaults to-330.
Also available: /api/filter,
/api/search/suggest, /api/search/all,
/api/random, /api/producer/:id,
/api/providers, /api/stream/batch,
/api/segments and the opt-in /api/adult
surface.
Notes that will bite
- Envelope, always
-
Success is
{ "success": true, "results": … }; failure is{ "success": false, "message": … }. Readresults, never the top level. - 18+ is opt-in
-
Every listing excludes
R_PLUSunless you sendrated=R_PLUSorincludeAdult=1, which also makes the responseprivate. - Ids are per host
- The same show has a different id on every source. Resolve the slug on the host you will read ids from; an id is not portable.
- Playback needs a Referer
-
/api/streamreturns CDN playlist URLs. Those CDNs answer403without theReferertheir own player sends, so send it from your player, not from the server. - Two rate limits
-
600 requests a minute overall, 60 on fan-out routes such as
/api/stream,/api/serversand/api/search/all. - Cache what you may
-
Catalogue responses publish
ETagandCache-Control; sendIf-None-Matchback for a304. Streams and random picks are never shared.