AniList anime and manga search
Search anime or manga with every AniList filter: format, status, genres (include/exclude), tags, season and year, source, country, score and episode ranges, licensed, adult, sort. Each result: 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. Pass next_page back as page.
Every response includes credits_used: the credits this call cost.
Parameters
| name | type | description |
|---|---|---|
q | string | Title words (optional when filters are given). Example: frieren |
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). |
sort | string | Comma-separated: POPULARITY_DESC, SCORE_DESC, TRENDING_DESC, FAVOURITES_DESC, START_DATE_DESC, START_DATE, TITLE_ROMAJI, TITLE_ENGLISH, EPISODES_DESC, UPDATED_AT_DESC, SEARCH_MATCH. |
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/search?q=frieren" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/anilist/v1/search",
params={"q": "frieren"},
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/search");
url.searchParams.set("q", "frieren");
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).