MediaList lookups in groups of 25. It merges successful batches and keeps usable data from AniList partial responses, so one unavailable account or failed batch does not discard every available member status and score.
Endpoint
Anime Queries
Fetch Anime by ID
Retrieves detailed information for a specific anime using its AniList ID.Search Anime
Searches for anime using a text query with pagination support.Manga Queries
Fetch Manga by ID
Retrieves detailed information for a specific manga using its AniList ID.Search Manga
Searches for manga using a text query with pagination support.Response Models
Anime Response
The anime data is deserialized into theAnime struct:
Supporting Structures
Manga Response
The manga data is deserialized into theManga struct:
Supporting Structures
Data Transformations
BothAnime and Manga models implement the Transformers trait which provides methods for formatting data for Discord embeds:
- Episode/Chapter counting: For currently airing anime, displays aired episodes vs total (e.g., “7/12”)
- Season formatting: Combines season and year (e.g., “Fall 2024”)
- Studio/Staff extraction: Identifies main studios or story/art staff from the edges/nodes structure
- Link filtering: Extracts streaming links for supported platforms (Netflix, Crunchyroll, HBO)
- Trailer formatting: Converts YouTube trailer IDs to full URLs
