Get anime recommendations
get_anime_recommendationsFind anime similar to a specific title using its MyAnimeList ID. Returns the top 25 community recommendations ranked by votes, with optional filters for NSFW and ecchi content.
Instructions
Get community recommendations for anime similar to the given mal_id, ordered by votes and capped at the top 25 (no pagination). Get the mal_id from search_anime. Use get_top_anime instead for a global popularity/score ranking not tied to one title, or get_recent_anime_recommendations for a site-wide feed of recommendation pairs not tied to this title either. sfw/sfw_strict filter NSFW entries out of the recommendation list itself. If Tenrai is unavailable and MAL_CLIENT_ID is set, transparently retries via the official API's own recommendations field (same output shape, but ordering/counts may differ slightly from Tenrai's, and sfw/sfw_strict are ignored entirely).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | MyAnimeList numeric ID. | |
| 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. | |
| 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 |
|---|---|---|---|
| recommendations | Yes |