Reference
Library API
Search anime, manga and games from one endpoint, then fetch any result as a profile that follows the same schema.
The API is public and read-only. All endpoints accept GET only and return JSON, except images, which redirect to the image file. Each address can make 60 requests a minute, plus 300 a minute for images.
Search
GET/api/search?q={text}&limit={n}
Searches every media type at once and returns a separate list for each. Anime and manga without a MyAnimeList id are left out. Searching does not save anything.
Query parameters
qstringrequired- Search text, 1–100 characters. Leading and trailing whitespace is trimmed.
limitinteger- Results per type. Defaults to 5, clamped between 1 and 10.
adultboolean- Set to true to include 18+ titles. They are excluded by default.
Example
curl '/api/search?q=frieren&limit=3'{
"query": "frieren",
"results": {
"anime": [
{
"id": "ANIME_52991",
"type": "ANIME",
"sourceId": "52991",
"title": "Sousou no Frieren",
"altTitles": ["Frieren: Beyond Journey's End"],
"coverImage": "https://…/cover.jpg",
"bannerImage": "https://…/banner.jpg",
"year": 2023,
"score": 9.1,
"isAdult": false,
"source": { "provider": "myanimelist", "url": "https://myanimelist.net/anime/52991" },
"details": { "format": "TV", "episodes": 28, … }
}
],
"manga": [ … ],
"game": [ … ]
}
}Partial results
Each provider is searched independently. If one fails, the other lists are still returned, the failed list is empty, and an errors object names the type that failed. Partial responses are only cached for a minute.
{
"query": "frieren",
"results": { "anime": [ … ], "manga": [ … ], "game": [] },
"errors": { "game": "Search failed" }
}Profile
GET/api/{type}/{id}
Returns a single item. The first request for an item fetches it from the provider and saves it to Firestore. Later requests are served from the saved copy, which is refreshed once it is older than 30 days.
Path parameters
typestringrequired- One of anime, manga or game.
idintegerrequired- The sourceId of a search result: the MyAnimeList id for anime and manga, the IGDB id for games.
Query parameters
adultboolean- Set to true to allow 18+ titles. Without it, they return 403 and are not saved.
Example
curl /api/anime/52991{
"id": "ANIME_52991",
"type": "ANIME",
"title": "Sousou no Frieren",
…
"createdAt": "2026-10-10T08:00:00.000Z",
"updatedAt": "2026-10-10T08:00:00.000Z"
}Use the type and sourceId of a search result to build the profile URL, e.g. ANIME and 52991 become /api/anime/52991.
Images
GET/api/{type}/{id}/{image}
Redirects to the current cover or banner of a single item. Image files get a new address whenever they change, and the old file is deleted, so save this URL instead of the coverImage or bannerImage of a profile. The item is loaded the same way as its profile.
Path parameters
typestringrequired- One of anime, manga or game.
idintegerrequired- The sourceId of a search result: the MyAnimeList id for anime and manga, the IGDB id for games.
imagestringrequired- cover or banner.
Query parameters
adultboolean- Set to true to allow 18+ titles. Without it, they return 403 and are not saved.
Example
curl -I /api/anime/52991/coverHTTP/2 302
location: https://…/media/ANIME_52991/cover-….webp
cache-control: public, max-age=3600Steam
GET/api/steam?ids={appids}
Matches Steam app ids to games. Each match has the type and sourceId to load the full game from the profile endpoint. When a Steam id belongs to several games, the main game wins over editions, bundles and DLC. Ids with no match are left out. Matching does not save anything.
Query parameters
idsstringrequired- 1 to 200 comma-separated Steam app ids.
Example
curl '/api/steam?ids=367520,999999999'{
"results": {
"367520": {
"id": "GAME_14593",
"type": "GAME",
"sourceId": "14593",
"title": "Hollow Knight",
"coverImage": "https://images.igdb.com/…/co93cr.jpg",
"year": 2017,
"isAdult": false
}
}
}18+ games are matched like any other. Loading one still needs adult=true.
Lists
GET/api/lists/{type}/{list}
Returns up to 20 titles for a ready-made list, such as what's trending or the highest rated. Items follow the media schema, so any of them can be opened with the profile endpoint. Anime and manga without a MyAnimeList id are left out, so a list can have fewer than 20 titles or none. Every title in a list is saved as a profile, and its covers and banners point at the library's own copies.
Path parameters
typestringrequired- One of anime, manga or game.
liststringrequired- One of trending, season, top or upcoming.
Query parameters
adultboolean- Set to true to include 18+ titles. They are excluded by default, and each version is cached separately.
What each list contains
| List | Anime | Manga | Game |
|---|---|---|---|
trending | Trending right now. | Trending right now. | Most visited right now. |
season | This season's anime, most popular first. | Series that started in the last 6 months and are still running, most popular first. | Released in the last 90 days, most anticipated first. |
top | Highest rated of all time. | Highest rated of all time. | Highest rated of all time, from games with at least 300 ratings. |
upcoming | Not yet released, most popular first. | Not yet released, most popular first. | Not yet released, most anticipated first. |
Example
curl /api/lists/anime/top{
"type": "ANIME",
"list": "top",
"items": [
{
"id": "ANIME_52991",
"type": "ANIME",
"sourceId": "52991",
"title": "Sousou no Frieren",
"score": 9.1,
…
},
…
],
"updatedAt": "2026-10-31T08:00:00.000Z"
}Lists are rebuilt from the provider once a day. updatedAt says when the current copy was made.
Seasons
GET/api/seasons/{type}/{season}
Returns up to 20 titles that start in a season, for this season's lineup or a look at what's coming next. Items follow the media schema, so any of them can be opened with the profile endpoint. Every title is saved as a profile, and its covers and banners point at the library's own copies.
Path parameters
typestringrequired- One of anime, manga or game.
seasonstringrequired- A year and season such as 2027-winter. Seasons follow the calendar in UTC: winter is January to March, spring April to June, summer July to September and fall October to December. Only the previous, current and next season are available; any other returns 404.
Query parameters
adultboolean- Set to true to include 18+ titles. They are excluded by default, and each version is cached separately.
What each season contains
| Type | Titles |
|---|---|
anime | Anime of that season, most popular first. |
manga | Manga that start publishing during the season, most popular first. Titles with only a start year are left out. |
game | Games released during the season, most anticipated first. Games with only a release year, or no date yet, are left out. |
Fields
| Field | Type | Description |
|---|---|---|
type | "ANIME" | "MANGA" | "GAME" | Media type of the season. |
season | "winter" | "spring" | "summer" | "fall" | The season. |
year | number | The year of the season. |
startsAt | string | ISO date the season starts, the first of its first month at 00:00 UTC. |
endsAt | string | ISO date the season ends, the first day of the next season at 00:00 UTC. |
items | object[] | Up to 20 titles, in the same shape as list items. |
updatedAt | string | ISO date the current copy was made. |
Example
curl /api/seasons/anime/2027-winter{
"type": "ANIME",
"season": "winter",
"year": 2027,
"startsAt": "2027-01-01T00:00:00.000Z",
"endsAt": "2027-04-01T00:00:00.000Z",
"items": [
{
"id": "ANIME_61338",
"type": "ANIME",
"sourceId": "61338",
"title": "Shangri-La Frontier 3rd Season",
…
},
…
],
"updatedAt": "2026-11-11T08:00:00.000Z"
}Seasons are rebuilt from the provider once a day, like lists. updatedAt says when the current copy was made.
Charts
GET/api/charts/{type}?week={week}
Returns the weekly chart for a type: up to 20 titles ranked by what's trending that week, with how each one moved since the previous chart. Items follow the media schema, so any of them can be opened with the profile endpoint.
The first request of a week builds that week's chart and saves it, and the saved chart never changes after that. Movement compares against the most recent earlier saved chart, which can be more than a week old if no chart was requested in between. Past weeks that were never saved are not built afterwards. Every title on a chart is saved as a profile when the chart is built, and its covers and banners point at the library's own copies, so they keep working for past weeks.
Path parameters
typestringrequired- One of anime, manga or game.
Query parameters
weekstring- An ISO week such as 2026-W46. Weeks start on Monday at 00:00 UTC. Defaults to the current week.
adultboolean- Set to true to include 18+ titles. They are excluded by default, and each version is a separate chart.
How each chart is ranked
| Type | Ranking |
|---|---|
anime | Trending titles that are currently airing. |
manga | Trending titles that are currently publishing. |
game | The most visited games, as in the trending list. |
Fields
| Field | Type | Description |
|---|---|---|
type | "ANIME" | "MANGA" | "GAME" | Media type of the chart. |
week | string | The ISO week of the chart, e.g. 2026-W46. |
startsAt | string | ISO date the week starts, Monday 00:00 UTC. |
endsAt | string | ISO date the week ends, the next Monday 00:00 UTC. |
previousWeek | string | null | The nearest earlier week with a saved chart, or null. |
nextWeek | string | null | The nearest later week with a saved chart, or null. |
entries[].rank | number | Position on the chart, starting at 1. |
entries[].previousRank | number | null | Position on the previous saved chart, or null if the title wasn't on it. |
entries[].movement | "up" | "down" | "same" | "new" | How the title moved since the previous saved chart. |
entries[].weeksOnChart | number | Saved charts in a row the title has been on, counting this one. |
entries[].peak | number | The title's best position on any saved chart. |
entries[].media | object | The title, in the same shape as list items. |
updatedAt | string | ISO date the chart was built. |
Example
curl '/api/charts/anime?week=2026-W46'{
"type": "ANIME",
"week": "2026-W46",
"startsAt": "2026-11-09T00:00:00.000Z",
"endsAt": "2026-11-16T00:00:00.000Z",
"previousWeek": "2026-W45",
"nextWeek": null,
"entries": [
{
"rank": 1,
"previousRank": 3,
"movement": "up",
"weeksOnChart": 6,
"peak": 1,
"media": {
"id": "ANIME_52991",
"type": "ANIME",
"sourceId": "52991",
"title": "Sousou no Frieren",
…
}
},
…
],
"updatedAt": "2026-11-09T08:00:00.000Z"
}Schedule
GET/api/schedule?month={month}&ids={ids}
Returns when episodes of the given anime air during a month. The window starts a day early and ends a day late, so a calendar in any time zone can show the whole month. Titles that aren't airing, or that the provider doesn't have, have no episodes. Manga and games have no schedule.
Query parameters
monthstringrequired- A month such as 2026-11, from one month before the current month to two months after it.
idsstringrequired- 1 to 50 comma-separated anime ids, the same ids the profile endpoint uses.
adultboolean- Set to true to include 18+ titles. They are excluded by default.
Fields
| Field | Type | Description |
|---|---|---|
month | string | The requested month, e.g. 2026-11. |
startsAt | string | ISO date the window starts: the day before the month starts, 00:00 UTC. |
endsAt | string | ISO date the window ends: the day after the month ends, 00:00 UTC. |
episodes | Episode[] | Every episode airing in the window, earliest first. Each has the anime id, the episode number and airsAt, the ISO date and time it airs. |
Example
curl '/api/schedule?month=2026-11&ids=52991,21'{
"month": "2026-11",
"startsAt": "2026-10-31T00:00:00.000Z",
"endsAt": "2026-12-02T00:00:00.000Z",
"episodes": [
{ "id": "52991", "episode": 6, "airsAt": "2026-11-14T14:30:00.000Z" },
{ "id": "21", "episode": 1150, "airsAt": "2026-11-15T00:30:00.000Z" },
…
]
}Media schema
Search results and profiles share the same shape for every type.
| Field | Type | Description |
|---|---|---|
id | string | Type and source id joined, e.g. ANIME_52991. Also the Firestore document id. |
type | "ANIME" | "MANGA" | "GAME" | Media type. |
sourceId | string | MyAnimeList id for anime and manga, IGDB id for games. |
title | string | Primary title. |
altTitles | string[] | Other known titles. |
synopsis | string | null | Plot summary or description. |
coverImage | string | null | Cover art URL. |
bannerImage | string | null | Wide banner or artwork URL. |
year | number | null | Year of first release. |
status | string | null | Release status as reported by the provider. |
genres | string[] | Genres and themes. |
score | number | null | Rating normalized to 0–10. |
isAdult | boolean | Whether the title is 18+. Only true when adult=true was passed. |
source | { provider, url } | myanimelist for anime and manga or igdb for games, with a link to the title's page there. |
details | object | Type-specific fields, listed below. |
createdAt | string | Profile only. ISO date the item was first saved. |
updatedAt | string | Profile only. ISO date the item was last refreshed. |
Details by type
Each start or release date comes with a precision: day, month, quarter (games only) or year, or null when there's no date or it hasn't been decided. A date known only to the month or year is saved as its first day, or as the provider's placeholder for games, so check the precision before showing the day.
| Type | Fields |
|---|---|
ANIME | format, episodes, duration, season, studios, airedFrom, airedFromPrecision, airedTo |
MANGA | format, chapters, volumes, authors, publishedFrom, publishedFromPrecision, publishedTo |
GAME | platforms, developers, publishers, releaseDate, releaseDatePrecision, steamUrl (the Steam store page, or null when the game isn't on Steam) |
Caching
- Search and Steam, 7 days. Results are cached in Redis. Search ignores letter case, so
q=Narutoandq=narutoshare a result. Each type is cached on its own, so a type whose provider failed is not cached while the others are. Steam app ids are cached one by one, including ids with no match. - Profiles, 30 days. Profiles are saved to Firestore. Once the saved copy is older than 30 days, it is still returned right away and a fresh copy is fetched from the provider in the background for the next request. An id the provider doesn't have, or an 18+ title requested without
adult=true, is remembered in Redis for a day, so the 404 or 403 is returned without asking the provider again. - Lists and seasons, 1 day. Each list and season is saved to Firestore and rebuilt from the provider once the saved copy is a day old. Only one rebuild runs at a time, and other requests get the older copy meanwhile. If the provider is unavailable, the older copy is returned.
- Charts, until the week ends. Each week's chart is saved to Firestore on the first request of the week and is never rebuilt. The current week is cached until it ends. A past week is cached for 7 days once a later chart exists, and until the current week ends before that. If the provider is unavailable, nothing is saved or cached, so a later request tries again.
- Schedules, 12 hours. Each anime's episodes for a month are cached in Redis on their own, so a request only asks the provider for the ids that aren't cached yet. If the provider is unavailable, nothing is cached.
- Images, 1 hour. Browsers keep each redirect for an hour, then ask again in case the image has changed.
Requests that arrive at once for the same title, list, season, schedule or search share one provider call, and the IGDB access token is kept in Redis until it expires.
Every response also sends a Cache-Control header, so browsers and any CDN in front of the API can keep it for the same time.
Errors
Errors return a JSON body of the form { "error": "…" }.
| Status | When |
|---|---|
400 | Search was called without q, q is longer than 100 characters, or Steam was called without valid ids. |
403 | An 18+ title was requested without adult=true. The body is { "error": "Adult content" }. |
404 | Unknown type, list or image, non-numeric id, no item with that id, an item without that image, or a chart week that is malformed, in the future or was never saved. |
429 | More than 60 requests in a minute from the same address, or 300 for images. The Retry-After header says how many seconds to wait. |
502 | The provider or database failed and no saved copy could be returned. |