Library

Type at least 2 characters to search.

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.

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

Request
curl /api/anime/52991
Response
{
  "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

Request
curl -I /api/anime/52991/cover
Response
HTTP/2 302
location: https://…/media/ANIME_52991/cover-….webp
cache-control: public, max-age=3600

Steam

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

Request
curl '/api/steam?ids=367520,999999999'
Response
{
  "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

ListAnimeMangaGame
trendingTrending right now.Trending right now.Most visited right now.
seasonThis 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.
topHighest rated of all time.Highest rated of all time.Highest rated of all time, from games with at least 300 ratings.
upcomingNot yet released, most popular first.Not yet released, most popular first.Not yet released, most anticipated first.

Example

Request
curl /api/lists/anime/top
Response
{
  "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

TypeTitles
animeAnime of that season, most popular first.
mangaManga that start publishing during the season, most popular first. Titles with only a start year are left out.
gameGames released during the season, most anticipated first. Games with only a release year, or no date yet, are left out.

Fields

FieldTypeDescription
type"ANIME" | "MANGA" | "GAME"Media type of the season.
season"winter" | "spring" | "summer" | "fall"The season.
yearnumberThe year of the season.
startsAtstringISO date the season starts, the first of its first month at 00:00 UTC.
endsAtstringISO date the season ends, the first day of the next season at 00:00 UTC.
itemsobject[]Up to 20 titles, in the same shape as list items.
updatedAtstringISO date the current copy was made.

Example

Request
curl /api/seasons/anime/2027-winter
Response
{
  "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

TypeRanking
animeTrending titles that are currently airing.
mangaTrending titles that are currently publishing.
gameThe most visited games, as in the trending list.

Fields

FieldTypeDescription
type"ANIME" | "MANGA" | "GAME"Media type of the chart.
weekstringThe ISO week of the chart, e.g. 2026-W46.
startsAtstringISO date the week starts, Monday 00:00 UTC.
endsAtstringISO date the week ends, the next Monday 00:00 UTC.
previousWeekstring | nullThe nearest earlier week with a saved chart, or null.
nextWeekstring | nullThe nearest later week with a saved chart, or null.
entries[].ranknumberPosition on the chart, starting at 1.
entries[].previousRanknumber | nullPosition 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[].weeksOnChartnumberSaved charts in a row the title has been on, counting this one.
entries[].peaknumberThe title's best position on any saved chart.
entries[].mediaobjectThe title, in the same shape as list items.
updatedAtstringISO date the chart was built.

Example

Request
curl '/api/charts/anime?week=2026-W46'
Response
{
  "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

FieldTypeDescription
monthstringThe requested month, e.g. 2026-11.
startsAtstringISO date the window starts: the day before the month starts, 00:00 UTC.
endsAtstringISO date the window ends: the day after the month ends, 00:00 UTC.
episodesEpisode[]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

Request
curl '/api/schedule?month=2026-11&ids=52991,21'
Response
{
  "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.

FieldTypeDescription
idstringType and source id joined, e.g. ANIME_52991. Also the Firestore document id.
type"ANIME" | "MANGA" | "GAME"Media type.
sourceIdstringMyAnimeList id for anime and manga, IGDB id for games.
titlestringPrimary title.
altTitlesstring[]Other known titles.
synopsisstring | nullPlot summary or description.
coverImagestring | nullCover art URL.
bannerImagestring | nullWide banner or artwork URL.
yearnumber | nullYear of first release.
statusstring | nullRelease status as reported by the provider.
genresstring[]Genres and themes.
scorenumber | nullRating normalized to 0–10.
isAdultbooleanWhether 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.
detailsobjectType-specific fields, listed below.
createdAtstringProfile only. ISO date the item was first saved.
updatedAtstringProfile 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.

TypeFields
ANIMEformat, episodes, duration, season, studios, airedFrom, airedFromPrecision, airedTo
MANGAformat, chapters, volumes, authors, publishedFrom, publishedFromPrecision, publishedTo
GAMEplatforms, 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=Naruto and q=naruto share 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": "…" }.

StatusWhen
400Search was called without q, q is longer than 100 characters, or Steam was called without valid ids.
403An 18+ title was requested without adult=true. The body is { "error": "Adult content" }.
404Unknown 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.
429More than 60 requests in a minute from the same address, or 300 for images. The Retry-After header says how many seconds to wait.
502The provider or database failed and no saved copy could be returned.