# AniList Scraper — Anime & Manga Scores and Trends (`haketa/anilist-scraper`) Actor

Scrape AniList anime and manga with average scores, popularity, favourites, episodes, chapters, genres and season data. Search by title or filter by genre, sort by popularity or score, and export clean JSON or CSV for tracking, trend analysis and media research. Ideal for fans and data teams.

- **URL**: https://apify.com/haketa/anilist-scraper.md
- **Developed by:** [Haketa](https://apify.com/haketa) (community)
- **Categories:** Social media, Business
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

<div align="center">

## AniList Scraper — Anime & Manga Scores, Popularity & Trends

**The fastest way to scrape AniList and turn [anilist.co](https://anilist.co) into clean, structured anime and manga data — average scores, popularity, favourites, genres, studios, episodes and release dates. No login, no coding.**

Export every record to **JSON, CSV, Excel, or API**.

![AniList](https://img.shields.io/badge/AniList-Anime%20%C2%B7%20Manga-02A9FF?style=for-the-badge)
![Apify Actor](https://img.shields.io/badge/Apify-Actor-97C93F?style=for-the-badge)
![Export](https://img.shields.io/badge/Export-JSON%20%C2%B7%20CSV%20%C2%B7%20Excel-blue?style=for-the-badge)
![No Code](https://img.shields.io/badge/No%20Code-Required-purple?style=for-the-badge)

</div>

> **Built for** anime & manga data analysts, recommendation and watchlist developers, content and community teams tracking seasonal trends, bot and dashboard builders, and researchers who need a citable snapshot of the AniList catalogue.

***

### 📑 Contents

- [At a glance](#-at-a-glance)
- [Why scrape AniList?](#-why-scrape-anilist)
- [What this AniList scraper does](#-what-this-anilist-scraper-does)
- [Use cases](#-use-cases)
- [Input](#-input)
- [Output](#-output)
- [Field coverage](#-field-coverage--reliability)
- [Pagination & scale](#-pagination--scale)
- [How to use](#️-how-to-use)
- [Tips](#-tips)
- [FAQ](#-faq)
- [Related scrapers](#-related-scrapers)
- [Changelog](#-changelog)

***

### ⚡ At a glance

| Parameter | Details |
|---|---|
| **Platform** | [AniList](https://anilist.co) (anilist.co) |
| **Media catalogues** | Anime (TV series, movies, OVAs, ONAs) & Manga (manga, light novels, one-shots) |
| **Search & filters** | Keyword search, 19 genres, season (Winter, Spring, Summer, Fall), year, format, status |
| **Sort options** | Most popular, highest score, trending now, most favourites, newest first, title A-Z |
| **Key metrics** | `averageScore`, `meanScore`, `popularity`, `favourites`, `trending`, `episodes`, `chapters` |
| **Rich metadata** | Romaji/English/Native titles, studio/publisher, genres, ranked tags, dates, cover art |
| **Speed & throughput** | 50 titles per batch, up to 1,000+ entries in 60–90 seconds |
| **Default run** | Returns 50 top-ranked anime entries out of the box |
| **Output formats** | JSON, CSV, Excel, XML, or direct REST API |
| **Authentication** | None required — direct public integration |

***

### 🔎 Why scrape AniList?

[AniList](https://anilist.co) is one of the largest public databases for anime and manga, tracking hundreds of thousands of titles with community **average scores**, **popularity** rankings, **favourites**, seasonal charts, studios, airing status and long-running publication data. It is the reference catalogue for anyone studying what the community is watching, reading and rating.

The problem is that all of this lives behind an interactive browse interface built for one title at a time. Copying scores, episode counts, genres and release dates into a spreadsheet by hand does not scale past a handful of titles — and it is out of date the moment you finish. A proper **AniList scraper** turns the whole catalogue into a dataset you can sort, filter, join and chart in seconds.

This actor does exactly that. It calls the official public **AniList API** and returns one clean, flattened record per title with every field that matters — ready for analysis, tracking, dashboards and machine learning — with automatic pagination and de-duplication so you never stitch pages together yourself.

**Common reasons people scrape AniList:**

- Build an **anime dataset** or **manga dataset** of scores, popularity and genres for analysis or ML.
- Track **seasonal and trending** titles week over week for content and community planning.
- Power a **recommendation**, **discovery** or **watchlist** feature on top of public catalogue data.
- Compare **average score vs. mean score**, popularity and favourites across formats and seasons.
- Map an entire **genre** (Action, Fantasy, Romance, Sci-Fi…) in ranked order for guides and quizzes.
- Shortlist **manga reading candidates** by chapters, volumes and release status.
- Feed a Discord bot, internal dashboard or newsletter with fresh **AniList data**.

***

### ✨ What this AniList scraper does

This **AniList scraper** collects anime or manga straight from the AniList API and returns a rich, analysis-ready record for every match.

- ✅ **Two catalogues in one actor** — switch between **Anime** and **Manga** with a single dropdown.
- ✅ **Keyword search that merges cleanly** — pass one title or a batch of keywords; each runs as its own search and results are combined into one **de-duplicated** set.
- ✅ **Powerful filters** — narrow any run by **genre** (19 AniList genres), **season** + **season year** (e.g. `WINTER 2024`), **format** (TV, Movie, OVA, ONA, Manga, Novel, One-shot…) and **release status** (finished, releasing, not yet released, cancelled, hiatus).
- ✅ **Six sort orders** — most popular, highest score, trending now, most favourites, newest first, or title A–Z, so the titles you care about surface first.
- ✅ **Automatic pagination** — collects page after page (50 titles per page) up to your `maxItems` cap, returning hundreds to thousands of records per run.
- ✅ **Rich field set** — **id** + **idMal** (MyAnimeList), three title forms (romaji, English, native), **averageScore**, **meanScore**, **popularity**, **favourites**, **trending**, **genres**, ranked **tags**, **episodes**, **chapters**, **volumes**, **duration**, **season**, **seasonYear**, **startDate**/**endDate**, **source**, **countryOfOrigin**, **isAdult**, **studios**, **coverImage**, **bannerImage** and the AniList **url**.
- ✅ **Clean, consistent records** — the same field names across anime and manga, descriptions converted to plain text, fuzzy AniList dates composed into readable values, and empty fields omitted instead of cluttering your export.
- ✅ **Export anywhere** — download **JSON, CSV, Excel**, HTML or XML, or pull results through the Apify **API** and integrations.
- ✅ **Fast & reliable** — a verification run collected **500 anime in under a minute**; requests are paced and rate-limit responses are retried automatically.

***

### 🎯 Use cases

- **Data analysts & scientists** — build anime/manga datasets of scores, popularity and favourites for distribution studies, correlation analysis and ML features.
- **App & bot developers** — power a recommendation engine, discovery feed, watchlist tracker or Discord bot with fresh **AniList data** and stable fields.
- **Content & community teams** — follow what is **trending** in a genre or season for articles, videos, tier lists and newsletters.
- **Market & industry researchers** — snapshot the catalogue by format, status, genre and season year to study release velocity and popularity trends over time.
- **Seasonal anime planners** — pull the current season sorted by score or trending to build a watch lineup with friends.
- **Manga readers & librarians** — triage reading candidates by chapters, volumes and status; separate `FINISHED` series from ongoing `RELEASING` ones.
- **Academics & students** — produce a reproducible, citable snapshot of the AniList catalogue at a point in time.
- **Media & licensing teams** — map studios, source material and country of origin across a genre or era.

***

### 📥 Input

Every field is optional — press **Start** with the defaults and you immediately get the most popular anime. Narrow down with the filters below.

| Field | Type | Description |
|---|---|---|
| `mediaType` | enum | What to collect: `ANIME` (series, films, OVAs) or `MANGA` (manga, light novels, one-shots). Default `ANIME`. |
| `search` | string | A single title or keyword, e.g. `"frieren"` or `"one piece"`. Leave empty to browse by filters. |
| `searchTerms` | array | Several titles/keywords at once. Each runs as its own search and results are merged without duplicates. Combined with `search`. |
| `genre` | enum | Restrict to one of 19 AniList genres (Action, Adventure, Comedy, Drama, Fantasy, Romance, Sci-Fi, Slice of Life, Sports, Supernatural, Thriller…). Empty = any genre. |
| `season` | enum | Airing season for anime: `WINTER`, `SPRING`, `SUMMER`, `FALL`. Pair with `seasonYear` for a specific cour. |
| `seasonYear` | integer | Year to filter by (with `season` for a cour, or on its own as a release-year filter). Range 1940–2100. |
| `format` | enum | Release format: `TV`, `TV_SHORT`, `MOVIE`, `SPECIAL`, `OVA`, `ONA`, `MUSIC`, `MANGA`, `NOVEL`, `ONE_SHOT`. |
| `status` | enum | Release status: `FINISHED`, `RELEASING`, `NOT_YET_RELEASED`, `CANCELLED`, `HIATUS`. |
| `sort` | enum | Order of results: `POPULARITY_DESC`, `SCORE_DESC`, `TRENDING_DESC`, `FAVOURITES_DESC`, `START_DATE_DESC`, `TITLE_ROMAJI`. Default `POPULARITY_DESC`. |
| `maxItems` | integer | Maximum entries to collect across all searches. `0` = no cap within the served slice. Default `50`. |
| `maxPages` | integer | Safety cap on pages (50 entries each) per search slice. Default `100` (a full ~5,000-entry slice). |
| `proxyConfiguration` | object | Apify Proxy settings. The AniList API is public, so **datacenter** is enabled by default and is all you need. |

#### Example input — top anime by popularity

```json
{
  "mediaType": "ANIME",
  "sort": "POPULARITY_DESC",
  "maxItems": 500,
  "proxyConfiguration": { "useApifyProxy": true }
}
```

#### Example input — highest scored Fantasy anime

```json
{
  "mediaType": "ANIME",
  "genre": "Fantasy",
  "sort": "SCORE_DESC",
  "maxItems": 200
}
```

#### Example input — batch title discovery

```json
{
  "mediaType": "ANIME",
  "searchTerms": ["frieren", "one piece", "jujutsu kaisen"],
  "sort": "POPULARITY_DESC",
  "maxItems": 300
}
```

#### Example input — trending manga right now

```json
{
  "mediaType": "MANGA",
  "sort": "TRENDING_DESC",
  "maxItems": 100
}
```

***

### 📤 Output

Each run produces **one record per anime or manga title**. Field names are identical across both catalogues, so exports combine and compare cleanly. Empty values are omitted — a manga record has no `episodes`, an anime record has no `chapters` — so you only ever see real data.

Below is a **real record from the latest verification run** (top anime by popularity):

```json
{
  "id": 16498,
  "idMal": 16498,
  "title": "Attack on Titan",
  "titleRomaji": "Shingeki no Kyojin",
  "titleEnglish": "Attack on Titan",
  "titleNative": "進撃の巨人",
  "type": "ANIME",
  "format": "TV",
  "status": "FINISHED",
  "description": "Several hundred years ago, humans were nearly exterminated by titans… Eren vows that he will murder every single titan and take revenge for all of mankind. (Source: MangaHelpers)",
  "averageScore": 85,
  "meanScore": 85,
  "popularity": 1073241,
  "favourites": 80769,
  "trending": 54,
  "genres": ["Action", "Drama", "Fantasy", "Mystery"],
  "tags": [
    { "name": "Kaiju", "rank": 93 },
    { "name": "Revenge", "rank": 93 },
    { "name": "Tragedy", "rank": 89 },
    { "name": "Military", "rank": 88 }
  ],
  "episodes": 25,
  "duration": 24,
  "season": "SPRING",
  "seasonYear": 2013,
  "startDate": "2013-04-07",
  "startYear": 2013,
  "endDate": "2013-09-28",
  "source": "MANGA",
  "countryOfOrigin": "JP",
  "isAdult": false,
  "studios": ["Production I.G", "Pony Canyon", "Kodansha", "Dentsu"],
  "coverImage": "https://s4.anilist.co/file/anilistcdn/media/anime/cover/large/bx16498-buvcRTBx4NSm.jpg",
  "coverImageColor": "#e4a15d",
  "bannerImage": "https://s4.anilist.co/file/anilistcdn/media/anime/banner/16498-73IhOXpJZiMF.jpg",
  "url": "https://anilist.co/anime/16498",
  "synonyms": ["AoT", "SnK", "進撃の巨人"],
  "scrapedAt": "2026-11-02T10:14:08.179Z"
}
```

#### Field reference

| Field | Description |
|---|---|
| `id` | AniList media ID (the natural key; records are de-duplicated on it). |
| `idMal` | Matching MyAnimeList ID, for cross-referencing other datasets. |
| `title` | Best available display title (English when present, else romaji). |
| `titleRomaji` / `titleEnglish` / `titleNative` | The three AniList title forms, as separate fields. `titleEnglish` present when AniList has one. |
| `type` | `ANIME` or `MANGA`. |
| `format` | `TV`, `TV_SHORT`, `MOVIE`, `SPECIAL`, `OVA`, `ONA`, `MUSIC`, `MANGA`, `NOVEL`, `ONE_SHOT`. |
| `status` | `FINISHED`, `RELEASING`, `NOT_YET_RELEASED`, `CANCELLED`, `HIATUS`. |
| `description` | Plain-text synopsis (HTML stripped, entities decoded, very long text trimmed). |
| `averageScore` | Weighted community average score (0–100). |
| `meanScore` | Mean community score (0–100). |
| `popularity` | Number of user lists the title appears on. |
| `favourites` | Number of users who favourited the title. |
| `trending` | Current AniList trending weight. |
| `genres` | Array of genres, e.g. `["Action", "Drama"]`. |
| `tags` | Array of descriptive tags with rank, e.g. `{ "name": "Revenge", "rank": 93 }`. |
| `episodes` | Episode count (anime; present when known). |
| `chapters` / `volumes` | Chapter and volume counts (manga; present when AniList has them). |
| `duration` | Minutes per episode (anime). |
| `season` / `seasonYear` | Airing season and year (anime). |
| `startDate` / `endDate` | Release dates composed from AniList's fuzzy parts (`YYYY-MM-DD`, or partial). `endDate` absent while releasing. |
| `startYear` | Release start year as its own number, for easy filtering. |
| `source` | Source material (`MANGA`, `ORIGINAL`, `LIGHT_NOVEL`…). |
| `countryOfOrigin` | Origin country code (`JP`, `KR`, `CN`). |
| `isAdult` | Adult-only content flag (boolean). |
| `studios` | Studio / publisher names. |
| `coverImage` / `coverImageColor` | Extra-large cover image URL and its dominant hex colour. |
| `bannerImage` | Banner image URL (present when AniList has one). |
| `url` | Direct link to the title's AniList page. |
| `synonyms` | Alternative / localised titles. |
| `scrapedAt` | ISO timestamp of when the record was collected. |

#### 📊 Field coverage & reliability

| Emoji | Field group | Coverage | Description & Notes |
|---|---|---|---|
| 🆔 | `id`, `idMal`, `url`, `scrapedAt` | 🟢 High (100%) | AniList unique ID, cross-referencing MyAnimeList ID, web link and timestamp |
| 🏷️ | `title`, `titleRomaji`, `type`, `format`, `status` | 🟢 High (100%) | Main display title, canonical romaji title, media type, format and airing status |
| 🇬🇧 | `titleEnglish`, `titleNative` | 🟢 High (~90-95%) | Official English and native Japanese/Korean/Chinese localized titles |
| 📊 | `averageScore`, `meanScore`, `popularity` | 🟢 High (100%) | Weighted community score (0-100), mean score, and total user list count |
| ⭐ | `favourites`, `trending` | 🟢 High (100%) | Total user favourites count and current trending momentum weight |
| 🎭 | `genres`, `tags` | 🟢 High (100%) | Broad genre classifications and granular ranked tag taxonomy |
| 📺 | `episodes`, `duration` | 🟢 High (~98% anime) | Episode counts and per-episode runtime in minutes for anime |
| 📖 | `chapters`, `volumes` | 🟢 High (~95% manga) | Chapter and volume publication milestones for manga and light novels |
| 🗓️ | `startDate`, `startYear`, `season`, `seasonYear` | 🟢 High (100%) | Premiere and publication start dates, airing cour, and year metrics |
| 🏁 | `endDate` | 🟡 Conditional (~75%) | Conclusion date (absent for currently ongoing / releasing works) |
| 🏢 | `studios`, `source`, `countryOfOrigin` | 🟢 High (100%) | Animation studio or publishing house, source material, and origin country |
| 🖼️ | `coverImage`, `coverImageColor` | 🟢 High (100%) | Extra-large cover artwork URL and dominant hex colour code |
| 🎨 | `bannerImage` | 🟡 Conditional (~60%) | Wide hero banner artwork link when provided by AniList |
| 🔤 | `synonyms` | 🟡 Conditional (~65%) | Alternative localized acronyms and fan titles |

> In verification testing across 500 anime records, core identity, score, and ranking fields reached **100% coverage with 0% duplicates**. Conditional fields reflect natural media lifecycles (e.g. ongoing works have no `endDate`).

***

### 🔁 Pagination & scale

The actor paginates the **AniList GraphQL API** automatically: it fetches `Page(page, perPage)` at the maximum **50 entries per page**, advancing page by page until it reaches your `maxItems` cap, the `maxPages` safety cap, or the end of the match set. Every record is de-duplicated on its AniList `id`, so merged keyword searches never produce duplicate rows (the latest run returned **500 unique records, 0 duplicates**).

AniList serves at most roughly **5,000 entries** for any single filter/sort slice (its `pageInfo.total` caps at ~5,000). To harvest beyond that, split the catalogue into narrower slices and run them together — for example iterate by **genre**, by **season + seasonYear**, or by **format** — and the de-duplication across runs keeps your combined dataset clean. Set `maxItems: 0` to pull a full slice, or cap it for a quick, predictable run.

Requests are paced (~750 ms between pages) to stay within AniList's public budget of about **90 requests per minute**, and a `429` response is retried honouring `Retry-After` rather than failing the run.

***

### ⚙️ How to use

1. **Open the actor** in the Apify Console and go to the **Input** tab.
2. Choose **Media type** — Anime or Manga.
3. *(Optional)* Add one or more **search keywords**, or pick a **genre / season / format / status** filter.
4. Choose a **sort order** (Most popular is a solid default) and set **Max results**.
5. Press **Start** and watch the live log and status counter.
6. When the run finishes, open the **Dataset** tab to preview, then **Export** to **JSON, CSV or Excel**.
7. **Automate it:** run on a **schedule** for a weekly time series, trigger it via the **Apify API**, or push results to **Make, Zapier, Google Sheets** or a **webhook** from the Integrations tab.

***

### 💡 Tips

- **Leave filters empty** for an instant, zero-setup sample of the most popular anime — a great way to see the output shape.
- **Sort by `TRENDING_DESC`** and schedule weekly runs, then diff exports to track momentum over time.
- **Combine `season` + `seasonYear`** (e.g. `FALL` + `2024`) to grab exactly one anime cour.
- **Iterate genres** (run Action, Fantasy, Romance… separately) to cover far more than a single ~5,000-entry slice — results de-duplicate across runs.
- **Use `searchTerms`** to batch many titles in one run instead of starting the actor repeatedly.
- **Switch to Manga** and lean on `chapters`, `volumes` and `status` to separate finished series from ongoing ones.

***

### ❓ FAQ

**Is scraping AniList legal?**
This actor collects **publicly available** catalogue data through AniList's official public API and outputs factual metadata (scores, counts, genres, dates). As with any scraping, use the data responsibly, respect AniList's terms, and avoid republishing copyrighted descriptions verbatim at scale. You are responsible for how you use the output.

**How many results can I get and how fast?**
Hundreds to thousands per run. A fresh verification run collected **500 anime in under a minute** with 100% core-field coverage. AniList serves up to ~5,000 entries per filter/sort slice; split into narrower slices (by genre/season/format) to go beyond that.

**Do I need an API key or a login?**
No. The AniList API is **public and keyless** — there is nothing to authenticate and no account required.

**Do I need proxies?**
No special setup. The API is public, so **datacenter** proxy (enabled by default) is enough. Rotating IPs simply help pace larger runs.

**What export formats are supported?**
**JSON, CSV, Excel, HTML and XML** from the Console, plus the Apify **API** and dataset integrations (Make, Zapier, Google Sheets, webhooks, S3, and more).

**Is there an AniList API behind this?**
Yes — the actor uses the official public **AniList GraphQL API** and flattens its nested response into clean, spreadsheet-friendly columns so you do not have to write GraphQL queries yourself.

**Can I filter by genre, season, format or status?**
Yes. Filter by one **genre**, by **season** + **season year**, by **format**, by **status**, and sort by popularity, score, trending, favourites, newest or title. Combine with keyword search.

**Can I scrape manga as well as anime?**
Yes — set `mediaType` to `MANGA`. Manga records carry `chapters` and `volumes` instead of `episodes`, with the same scores, popularity, genres and status fields.

**How fresh is the data?**
It is pulled live from AniList at run time, so every run is a current snapshot. Schedule the actor to build a time series of scores, popularity and trending.

**Why are some fields missing on a record?**
Empty values are omitted on purpose. If AniList has no English title, no episode count, or the title is still releasing (no end date), that field simply will not appear — you only get real data.

***

### 🔗 Related scrapers

Building a wider entertainment, ratings or media dataset? Pair the **AniList scraper** with these:

- [Letterboxd Scraper — Films, Ratings, Reviews & Member Activity](https://apify.com/haketa/letterboxd-scraper)
- [TVMaze Scraper — TV Shows, Episodes & Cast](https://apify.com/haketa/tvmaze-scraper)
- [Steam Game & Review Scraper — Prices, Details & Reviews](https://apify.com/haketa/steam-game-scraper)
- [Discogs Music Scraper — Releases, Prices, Artists & Labels](https://apify.com/haketa/discogs-scraper)

> Browse all scrapers by **[haketa on Apify Store](https://apify.com/haketa)**.

***

### 📋 Changelog

#### v1.2 (2026-11)

- **1,000+ deep pagination unlocked**: Removed artificial page restrictions by mapping `maxPages: 0` to automatic / unlimited pagination governed by `maxItems`, allowing frictionless deep harvesting across complete catalogue slices (up to the full ~5,000 AniList slice limit).
- **Default run optimization**: Configured 0-default on `maxItems` and `maxPages` with a fast 50-item prefill preview, completing initial test extractions in ~10-15 seconds.
- **Enhanced rate limit handling**: Fortified HTTP 429 backoff logic with header-aware `Retry-After` parsing and IP rotation support.
- **Strict schema validation**: Formatted comprehensive `dataset_schema.json` views and verified `output_schema.json` version 1 compliance.

#### v1.1 (2026-10)

- **Full Manga catalogue support**: Enabled extraction of manga, light novels, and one-shots with chapter and volume tracking.
- **Multi-keyword merging**: Added batch `searchTerms` support with real-time deduplication across parallel keyword slices.

#### v1.0 (2026-09)

- Initial release featuring GraphQL-based anime metadata extraction, community scores, genres, and studio details.

***

**Ready to turn AniList into data?** Hit **Start** and get clean anime and manga scores, popularity and trends in **JSON, CSV or Excel** — no login, no coding.

# Changelog

This Actor's version history is a separate document: https://apify.com/haketa/anilist-scraper/changelog.md

# Actor input Schema

## `mediaType` (type: `string`):

What to collect: anime (series, films, OVAs) or manga (manga, light novels, one-shots).

## `search` (type: `string`):

A single title or keyword to search for, e.g. "frieren" or "one piece". Leave empty to browse by the filters below.

## `searchTerms` (type: `array`):

Several titles or keywords at once. Each keyword runs as its own search and results are merged without duplicates. Combined with the single Search field above.

## `genre` (type: `string`):

Only return titles tagged with one genre. Leave on Any genre to search across all genres.

## `season` (type: `string`):

Airing season to filter anime by. Pair with Season year for a specific cour, e.g. WINTER 2024. Mostly relevant for anime.

## `seasonYear` (type: `integer`):

Year to filter by (used with Season for a specific anime cour, or on its own as a release-year filter).

## `format` (type: `string`):

Release format. Anime: TV, TV short, movie, special, OVA, ONA, music. Manga: manga, novel, one-shot.

## `status` (type: `string`):

Filter by release status: finished, releasing, not yet released, cancelled or on hiatus.

## `sort` (type: `string`):

Which titles come first: most popular, highest scored, trending now, most favourited, newest or alphabetical.

## `maxItems` (type: `integer`):

Maximum number of entries to collect across all searches. Set to 0 for unlimited collection within the targeted slice (governed by available results). Prefill 50 for fast preview.

## `maxPages` (type: `integer`):

Maximum pages (50 entries each) to fetch per search slice. Set to 0 (default) for automatic / unlimited pagination governed by Max results.

## `proxyConfiguration` (type: `object`):

Apify Proxy. The AniList API is public, so datacenter is enough and is enabled by default (rotating IPs help pacing at scale).

## Actor input object example

```json
{
  "mediaType": "ANIME",
  "genre": "",
  "season": "",
  "format": "",
  "status": "",
  "sort": "POPULARITY_DESC",
  "maxItems": 50,
  "maxPages": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `id` (type: `string`):

AniList media ID

## `idMal` (type: `string`):

Matching MyAnimeList ID

## `title` (type: `string`):

Best available title

## `titleRomaji` (type: `string`):

Romaji title

## `titleEnglish` (type: `string`):

English title

## `titleNative` (type: `string`):

Native (JP/KR/CN) title

## `type` (type: `string`):

ANIME or MANGA

## `format` (type: `string`):

TV, MOVIE, OVA, MANGA, NOVEL…

## `status` (type: `string`):

FINISHED, RELEASING…

## `description` (type: `string`):

Synopsis as plain text

## `averageScore` (type: `string`):

Weighted average score (0–100)

## `meanScore` (type: `string`):

Mean score (0–100)

## `popularity` (type: `string`):

Users with this on a list

## `favourites` (type: `string`):

Users who favourited it

## `trending` (type: `string`):

Current trending weight

## `genres` (type: `string`):

List of genres

## `tags` (type: `string`):

Descriptive tags with rank

## `episodes` (type: `string`):

Episode count (anime)

## `chapters` (type: `string`):

Chapter count (manga)

## `volumes` (type: `string`):

Volume count (manga)

## `duration` (type: `string`):

Episode duration in minutes

## `season` (type: `string`):

Airing season (anime)

## `seasonYear` (type: `string`):

Airing / release year

## `startDate` (type: `string`):

Release start (YYYY-MM-DD)

## `startYear` (type: `string`):

Release start year

## `endDate` (type: `string`):

Release end (YYYY-MM-DD)

## `source` (type: `string`):

Source material (MANGA, ORIGINAL…)

## `countryOfOrigin` (type: `string`):

Country of origin (JP, KR, CN)

## `isAdult` (type: `string`):

Adult-only content flag

## `studios` (type: `string`):

Studio / publisher names

## `coverImage` (type: `string`):

Extra-large cover image URL

## `coverImageColor` (type: `string`):

Dominant cover colour (hex)

## `bannerImage` (type: `string`):

Banner image URL

## `url` (type: `string`):

AniList page URL

## `synonyms` (type: `string`):

Alternative / localized titles

## `scrapedAt` (type: `string`):

ISO timestamp of collection

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "mediaType": "ANIME",
    "genre": "",
    "season": "",
    "format": "",
    "status": "",
    "sort": "POPULARITY_DESC",
    "maxItems": 50,
    "maxPages": 0,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("haketa/anilist-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "mediaType": "ANIME",
    "genre": "",
    "season": "",
    "format": "",
    "status": "",
    "sort": "POPULARITY_DESC",
    "maxItems": 50,
    "maxPages": 0,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("haketa/anilist-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "mediaType": "ANIME",
  "genre": "",
  "season": "",
  "format": "",
  "status": "",
  "sort": "POPULARITY_DESC",
  "maxItems": 50,
  "maxPages": 0,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call haketa/anilist-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,haketa/anilist-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/aGxflNzeYzUgMKuS8/builds/JmjbitkIfF0fE86pe/openapi.json
