Anime API

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.

Base URL 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

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": … }. Read results, never the top level.
18+ is opt-in
Every listing excludes R_PLUS unless you send rated=R_PLUS or includeAdult=1, which also makes the response private.
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/stream returns CDN playlist URLs. Those CDNs answer 403 without the Referer their 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/servers and /api/search/all.
Cache what you may
Catalogue responses publish ETag and Cache-Control; send If-None-Match back for a 304. Streams and random picks are never shared.