Characters of an anime or manga, main first: role, name (and native), image, link and their voice actors in the chosen language. Pass next_page back as page.
Every response includes credits_used: the credits this call cost.
Parameters
name
type
description
id
string
AniList id (from an anilist.co link), e.g. 154587 (Frieren). Example: 154587
mal_id
string
Or the MyAnimeList id, with type (ANIME or MANGA).
type
ANIME | MANGA
With mal_id: ANIME (default) or MANGA.
language
JAPANESE | ENGLISH | KOREAN | ITALIAN | SPANISH | PORTUGUESE | FRENCH | GERMAN | HEBREW | HUNGARIAN | CHINESE
Voice actor language (default JAPANESE).
per_page
integer
Characters per page (default and max 50).
page
integer
Page number (default 1). Pass next_page back; null on the last page.
import os, requests
res = requests.get(
"https://api.api.sh/anilist/v1/characters",
params={"id": "154587"},
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/characters");
url.searchParams.set("id", "154587");
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).
The fastest way to see the full response is the playground: it runs this endpoint with your account and shows the exact JSON.