AniList top anime and manga
Ranked lists: highest score, most popular, trending now, most favourited, upcoming or currently airing, optionally narrowed with the search filters. Each entry: rank and id, MyAnimeList id, type, format, status, titles (romaji, English, native), synonyms, description, start and end dates, season, episodes, duration, chapters, volumes, country, source, cover and banner, genres, average and mean score, popularity, favourites, trending, next airing episode, studios and link.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
ranking | score | popularity | trending | favourites | upcoming | airing | Which list (default score). Example: score |
type | ANIME | MANGA | ANIME (default) or MANGA. |
format | string | Comma-separated: TV, TV_SHORT, MOVIE, SPECIAL, OVA, ONA, MUSIC, MANGA, NOVEL, ONE_SHOT. |
status | FINISHED | RELEASING | NOT_YET_RELEASED | CANCELLED | HIATUS | Release status. |
genres | string | Comma-separated genres that must all match, e.g. Action,Fantasy. |
exclude_genres | string | Comma-separated genres to leave out. |
tags | string | Comma-separated tags, e.g. Isekai,Time Skip. |
season | WINTER | SPRING | SUMMER | FALL | Broadcast season (anime). |
year | integer | Season year with season, else the start year. |
source | string | Source material: ORIGINAL, MANGA, LIGHT_NOVEL, VISUAL_NOVEL, VIDEO_GAME, NOVEL, WEB_NOVEL, ... |
country | JP | KR | CN | TW | Country of origin. |
min_score | integer | Lowest average score (0-100). |
max_score | integer | Highest average score (0-100). |
min_episodes | integer | More than this many episodes. |
max_episodes | integer | Fewer than this many episodes. |
licensed | string | 1 = only titles licensed in English. |
adult | string | 1 = adult titles only (default: none). |
per_page | integer | Results per page (default 25, max 50). |
page | integer | Page number (default 1). Pass next_page back; null on the last page. |
Every endpoint also takes fresh, raw, fields (see lean responses and caching).
Example
curl "https://api.api.sh/anilist/v1/top?ranking=score" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/anilist/v1/top",
params={"ranking": "score"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/anilist/v1/top");
url.searchParams.set("ranking", "score");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); Response
A JSON object with the fields described above, plus raw (the source's own data), cached, fetched_at and credits_used. Errors return {"success": false, "error": "…"} with the HTTP status (see errors). A lookup that ran but found nothing (404) costs the price above; refused calls and errors on our side are free (what's charged).