Anusic serves anime opening, ending, and insert themes, with links to their videos and audio, over a simple JSON API. It also groups anime into franchises, and serves song lyrics.
The catalog comes from AnimeThemes. Anusic syncs it once a day, keeps it in memory, and persists it to a volume, so it answers instantly and keeps working when AnimeThemes is unreachable.
| Tag | Description |
|---|---|
latest, 0.2.0 | The current release, built on AnimeThemes. |
0.0.1 to 0.0.3 | The original anusic-api, which scraped the r/AnimeThemes wiki. The wiki is gone, so these are no longer maintained. |
docker run -d --name anusic \
-p 8000:8000 \
-v anusic-data:/data \
--restart unless-stopped \
eoussama/anusic-api:latest
The same command works with Podman, using docker.io/eoussama/anusic-api:latest as the image. In production, pin a version tag such as 0.2.0 instead of latest.
On its first start, Anusic syncs the whole catalog, which takes about a minute and a half. Until then, the catalog routes answer with 503 CatalogNotReady. Later starts serve the catalog persisted in the volume right away.
Then try:
curl "http://localhost:8000/api/v1/anime?name=titan"
services:
anusic:
image: docker.io/eoussama/anusic-api:latest
restart: unless-stopped
ports:
- "8000:8000"
volumes:
- anusic-data:/data
volumes:
anusic-data:
All settings are optional environment variables.
| Variable | Default | Description |
|---|---|---|
ANUSIC_SYNC_INTERVAL | 24h | How often the catalog is refreshed, such as 6h. 0 only syncs when nothing is persisted yet, or once after an upgrade that fetches more data. |
ANUSIC_STALE_AFTER | Twice the sync interval | Age after which /healthz reports the catalog as stale. 0 disables it. |
ANUSIC_USER_AGENT | anusic/<version> (+https://github.com/eoussama/anusic) | User agent sent to AnimeThemes and LRCLIB. |
ANUSIC_UPSTREAM_URL | https://rs.animethemes.moe/graphql | AnimeThemes GraphQL endpoint. |
The API listens on port 8000, and the catalog and the lyrics cache are stored in /data. Keep /data on a volume, so restarts do not have to sync again.
| Route | Description |
|---|---|
GET /api/v1/anime | All anime, filtered with ?name= and ?year=. |
GET /api/v1/anime/:id | An anime and its themes, by MyAnimeList ID. |
GET /api/v1/franchises | All franchises, filtered with ?name=. |
GET /api/v1/franchises/:slug | A franchise and its anime. |
GET /api/v1/songs/:id/lyrics | The lyrics of a song, by the songId of its themes. |
GET /api/openapi.json | The OpenAPI 3.1 document of the API. |
GET /healthz | Health check, with the size, age, and staleness of the catalog. |
See the API reference for every field, with an interactive console.
GET /healthz answers outside of the usual envelope:
{ "status": "ok", "ready": true, "stale": false, "anime": 5021, "syncedAt": "2026-11-30T14:00:00Z" }
It always answers 200 while the service runs, since a stale catalog is still served and a restart would not fix it. To be alerted, point an uptime monitor at it with a keyword check on "stale":false.
The image has no shell or curl, so a HEALTHCHECK cannot run inside it. Check /healthz from outside instead.
static-debian13, which ships CA certificates and nothing else.65532, which owns /data.The theme catalog, videos, and audio are provided by AnimeThemes and subject to its terms of service. Lyrics are provided by LRCLIB, and remain the property of their respective authors.
MIT. See LICENSE.
docker pull eoussama/anusic-api:latest