MyAnimeList API: Anime and Manga Data as JSON
To get MyAnimeList data as JSON, call one of six Perceptlayer endpoints: GET /v1/myanimelist/anime or /manga with an id, /search with q, /season with a year and season, or /top with a type. Each successful call costs 1 credit. The recorded anime response for id=20 returned score 8.03, rank 726, popularity 9 and members 3,178,399, alongside episodes, air dates, studios and genres. This guide covers the requests, the parameters, real responses, a Python script and the cost per title tracked.
What does the MyAnimeList API on Perceptlayer cover?
The MyAnimeList API on Perceptlayer has six GET endpoints that return public anime and manga data as JSON: detail lookups by id, a keyword search, seasonal lists, ranked top lists and a user profile lookup. Every one costs 1 credit per successful call, and a failed call costs nothing. The data is collected from publicly available sources and returned as found at the time of the call.
| Method | Path | Returns | Credits | Required | Optional |
|---|---|---|---|---|---|
GET |
/v1/myanimelist/anime |
One anime | 1 | id |
none |
GET |
/v1/myanimelist/manga |
One manga | 1 | id |
none |
GET |
/v1/myanimelist/search |
Search results | 1 | q |
type |
GET |
/v1/myanimelist/season |
A season's titles | 1 | year, season |
none |
GET |
/v1/myanimelist/top |
A ranked list | 1 | type |
limit, media |
GET |
/v1/myanimelist/user |
A user profile | 1 | username |
none |
These are Perceptlayer endpoints, not MyAnimeList's own developer API. If you're weighing the two, compare that API's access rules and fields with the responses below yourself. The MyAnimeList API page lists all six endpoints and has a playground to run each one with your key.
How do you request one anime as JSON?
Send a GET request to https://api.perceptlayer.com/v1/myanimelist/anime with the numeric id and your key in the X-API-Key header. This is the request behind the recorded response in this guide; id=20 returned Naruto. The manga endpoint works the same way, with id=2 returning Berserk in its recording.
curl "https://api.perceptlayer.com/v1/myanimelist/anime?id=20" \
-H "X-API-Key: $API_KEY"
Keys start with sk_live_. Where you can't set a header, pass the key in the api_key query parameter instead; the authentication docs cover both. Every successful response carries X-Credits-Used and X-Credits-Remaining, so you can see the cost of each call without a separate balance check.
Which parameters do the endpoints take?
The six endpoints take eight parameters between them. The table lists each with the type and the constraints the API documents. Nothing else about them is documented, including defaults and page sizes, so test any assumption in the playground first.
| Endpoint | Parameter | Type | Required | Documented values |
|---|---|---|---|---|
anime |
id |
integer | yes | none |
manga |
id |
integer | yes | none |
search |
q |
string | yes | Up to 200 characters |
search |
type |
string | no | anime, manga |
season |
year |
integer | yes | none |
season |
season |
string | yes | winter, spring, summer, fall |
top |
type |
string | yes | airing, bypopularity, upcoming, favorite, tv, movie, ova, special, ona, manga, novels, oneshots, doujin, manhwa, manhua, byfavorite |
top |
limit |
integer | no | none |
top |
media |
string | no | anime, manga |
user |
username |
string | yes | Up to 100 characters |
What does an anime detail response contain?
The anime response is a flat data object: identity, alternative titles, format, episode count, status, the score and its vote count, rank, popularity, member count, a truncated synopsis, air dates, rating, duration, broadcast slot, studios, genres, an image and a URL. This is the recorded response for id=20, trimmed:
{
"success": true,
"data": {
"id": 20,
"title": "Naruto",
"alternative_titles": {
"synonyms": "NARUTO",
"en": "Naruto",
"ja": "ナルト"
},
"type": "TV",
"episodes": 220,
"status": "Finished Airing",
"score": 8.03,
"scored_by": 2180382,
"rank": 726,
"popularity": 9,
"members": 3178399,
…
"aired_from": "2002-10-03",
"aired_to": "2007-02-08",
…
"duration_minutes": 23,
…
"studios": [
"Studio Pierrot"
],
"genres": [
"Action",
"Adventure"
],
…
"url": "https://myanimelist.net/anime/20"
},
"meta": {
"endpoint_family": "anime_detail"
}
}
The manga response has the same shape with print fields in place of broadcast ones. The recording for id=2 has status "Publishing", score 9.46, rank 1, popularity 1, members 814,493, published_from "1989-08-25" and an authors array, and no episodes or aired_to.
| Field | What a tracking job does with it |
|---|---|
id, url |
The key you store per title |
score, scored_by |
The average score and how many votes it rests on |
rank, popularity |
Positions to chart over time |
members |
Member count, read at the time of the call |
status, episodes, aired_from, aired_to |
Lifecycle and length |
studios, genres, type |
Grouping and filtering |
Store score together with scored_by. A score resting on a few hundred votes and one resting on two million aren't equally settled, so keep both when you compare titles.
How do you get a season's anime and the top lists?
Use /v1/myanimelist/season for everything starting in one season, and /v1/myanimelist/top for a ranked list. Both return an items array, and both cost 1 credit per call regardless of how many items come back. The recorded season call asked for year=2026 and season=fall:
curl "https://api.perceptlayer.com/v1/myanimelist/season?year=2026&season=fall" \
-H "X-API-Key: $API_KEY"
{
"success": true,
"data": {
"year": 2026,
"season": "fall",
"items": [
{
"title": "Kusuriya no Hitorigoto 3rd Season",
"url": "https://myanimelist.net/anime/61987/Kusuriya_no_Hitorigoto_3rd_Season",
…
"type": "TV",
"episodes": 12,
"score": 8.61,
"members": 228025,
…
"start_season": {
"year": 2026,
"season": "fall"
}
},
{
"title": "Black Clover 2nd Season",
…
"type": "TV",
"score": 8.89,
"members": 176779,
…
}
]
},
…
}
The second item has no episodes field, so read every field as optional. Season items also carry no id; the url is the stable key they do have.
The recorded top call used type=airing. It returned media "anime", echoed limit as 0 when none was sent, ranked each item and set has_more to true. The first item was ranked 1 with score 9.03 and members 256,909. Black Clover 2nd Season appears in both recordings, with members 176,779 in one and 176,766 in the other, which is a reminder that these figures are read at call time. Keep the timestamp with every row.
How does search work?
/v1/myanimelist/search takes q and an optional type of anime or manga. The recorded q=naruto call returned type "anime" and a results array with title, url, image, type, episodes_or_chapters, score and synopsis per result. The first result's url was https://myanimelist.net/anime/20/Naruto, and the anime endpoint with id=20 returned the same title, so the number in the URL matched the id in these recordings. Confirm that in the playground on the search endpoint page before a job depends on it.
What about the user endpoint?
/v1/myanimelist/user takes a username and returns a public profile: join date, watch and read statistics, favourites, bio and image. That is data about a person, so this guide doesn't use it, and if you do, you need a lawful basis under the privacy rules that apply to you. Title-level data from the other five endpoints covers catalogue, trend and ranking work without it.
How do you track a season's scores in Python?
A season tracker calls /season once per run and appends one row per title: the time, the title, its URL, format, episodes, score and members. Run it daily through a season and you have a score and audience history for every new show. The script uses Python with requests and csv, and reads only fields that appear in the recorded season response.
import csv
import datetime
import os
import time
import requests
API_KEY = os.environ["API_KEY"]
URL = "https://api.perceptlayer.com/v1/myanimelist/season"
def get_season(year, season, attempts=3):
params = {"year": year, "season": season}
for _ in range(attempts):
r = requests.get(URL, params=params, headers={"X-API-Key": API_KEY}, timeout=60)
if r.status_code in (429, 503):
time.sleep(int(r.headers.get("Retry-After", "5")))
continue
r.raise_for_status()
return r.json()["data"]
raise RuntimeError("gave up on season request")
now = datetime.datetime.now(datetime.timezone.utc).isoformat()
data = get_season(2026, "fall")
with open("mal-season.csv", "a", newline="") as f:
out = csv.writer(f)
for item in data.get("items", []):
out.writerow([
now, item.get("title"), item.get("url"), item.get("type"),
item.get("episodes"), item.get("score"), item.get("members"),
])
To follow a fixed watchlist instead, call /v1/myanimelist/anime once per id you already hold and store score, scored_by, rank, popularity and members the same way. Pause a second between calls on a free account.
What should the job do with errors?
Every error returns an HTTP status and a JSON body with code, message and request_id, and costs nothing. Retry rate_limited (429) and temporarily_unavailable (503) after the seconds in Retry-After. Treat invalid_parameters (422) as a bug in your input, such as a misspelled season. Requests have no idempotency key, so a client timeout can hide a call that succeeded and was billed; keep timeouts generous. The errors docs list every code.
What does tracking MyAnimeList data cost?
Every successful call costs 1 credit, so cost follows the number of calls, not the number of titles in a response. A season or top list returns many titles for 1 credit; a watchlist of ids costs 1 credit per title per check. Pick the list endpoints for broad coverage and the detail endpoints when you need scored_by, rank or popularity per title.
| Plan | Arithmetic | Credits a month |
|---|---|---|
| One season list daily | 1 × 30 days × 1 credit | 30 |
| Five top lists daily | 5 × 30 days × 1 credit | 150 |
| 100 titles by id daily | 100 × 30 days × 1 credit | 3,000 |
| 500 titles by id daily | 500 × 30 days × 1 credit | 15,000 |
The first three fit the Starter pack's 10,000 credits; the last fits the Build pack's 50,000. The 100 free credits on signup cover 100 calls, enough to run the season list daily for three months or test a watchlist of a few dozen titles. Purchased credits last 12 months. See pricing for what credits cost and the credits docs for how calls are debited.
To try it, run id=20 in the playground on the anime endpoint page, then get a free API key. Similar sources sit under reviews APIs, and more guides like this one are in API guides, such as the Discogs API guide.
APIs in this post
Frequently asked questions
Is this MyAnimeList's official API?
No. These are Perceptlayer endpoints that return public MyAnimeList data, collected from publicly available sources and returned as found at the time of the call. They look up titles, search, and list seasons and rankings. To decide between them and the site's own API, compare its access rules and fields with the recorded responses in this guide, and read the site's terms.
How much does a MyAnimeList call cost?
Each successful call to any of the six endpoints costs 1 credit, and failed calls cost nothing and return X-Credits-Used: 0. A season or top list returns many titles for that 1 credit, while a detail lookup returns one. The 100 free credits on signup cover 100 calls; packs start at 10,000 credits.
How do I get manga instead of anime?
Call /v1/myanimelist/manga with an id, set type=manga on /search, or use /top with media=manga or a documented type value such as manga. The recorded manga response for id=2 carries published_from, published_text and authors where the anime response has air dates and studios.
Why are some fields missing from a response?
Fields are returned as found, and not every title has every field. In the recorded fall 2026 season list, one item had episodes and the next didn't. The manga detail had no episodes at all. Read every field with a default, such as item.get("episodes") in Python, and don't treat a missing field as zero.
How fast can I call the MyAnimeList endpoints?
Limits are per account, shared by all its keys, and counted per minute. A free account gets 1 request a second, 60 a minute, so a 100-title watchlist takes about two minutes. Paying accounts run at least 5 requests a second, 300 a minute, depending on the pack. The rate limits docs list each pack's rate.