Get top anime
get_top_animeGet anime ranked by all-time score or popularity. Use filter for special rankings like airing, upcoming, bypopularity, or favorite. Supports pagination, media type, rating, and SFW settings.
Instructions
Get anime ranked by all-time score/popularity, not tied to any season. Use filter for special rankings (airing, upcoming, bypopularity, favorite); for a specific season's lineup use get_seasonal_anime or get_upcoming_season instead. If Tenrai is unavailable and MAL_CLIENT_ID is set, transparently retries via the official API — type/filter are merged into one best-effort ranking, rating is ignored entirely, themes/demographics/broadcast come back empty, and sfw_strict degrades to the same filtering as sfw (the official API can't separate adult-rated from Ecchi-tagged-but-safely-rated).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sfw | No | If true, exclude adult/explicit-rated entries (R+ Mild Nudity and up). Defaults to false (no filtering). Note: this alone still allows mainstream, safely-rated shows tagged with the Ecchi genre (fanservice) through — use `sfw_strict` to also exclude those. | |
| page | No | 1-based page number for pagination. No upper bound — this ranking runs to the end of MAL's own catalog. | |
| type | No | Restrict to one or more media types. | |
| limit | No | Max results per page (1-50). | |
| filter | No | Special ranking filter. | |
| rating | No | Restrict to one or more specific content ratings. More granular than `sfw`/`sfw_strict` — use this to target a precise rating band instead of a blanket adult-content cutoff. | |
| sfw_strict | No | If true, exclude adult/explicit-rated entries AND anything tagged with the Ecchi genre, even otherwise-mainstream/safely-rated shows. Stricter than `sfw` alone. Defaults to false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | Yes | ||
| results | Yes |