Endpoint
Description
Retrieve comprehensive details about a specific anime using its MyAnimeList (MAL) ID. This endpoint returns complete anime information including metadata, images, trailers, genres, studios, and more. The response is cached for 1 hour for optimal performance.Authentication
This endpoint is publicly accessible and does not require authentication.
Rate Limiting
- Limit: 100 requests per 60 seconds per IP
- Headers: Rate limit information included in response headers
Query Parameters
The MyAnimeList ID of the anime to retrieve. Must be a positive integer.Example:
id=16498Apply parental control filtering. When enabled, restricts access to mature content based on rating.Set to
false to disable filtering and allow all content.Example: parentalControl=falseResponse
Anime object with complete details
Examples
Get Anime by ID
Get Anime with Parental Control Disabled
Response Example
Error Responses
Missing ID Parameter (400)
Invalid ID Format (400)
Anime Not Found (404)
Parental Control Restriction (403)
Rate Limit Exceeded (429)
Internal Server Error (500)
Features
Redis Caching
This endpoint implements Redis-based caching with a 1-hour TTL (Time To Live). Cached responses are keyed by the query parameters, so different combinations ofid and parentalControl are cached separately.
Parental Control
WhenparentalControl=true (default), the endpoint:
- Blocks anime with ratings:
rx - hentai(18+) - Returns a 403 Forbidden error for restricted content
- Logs parental control blocks for monitoring
Input Validation
The endpoint validates:- ID presence: Ensures the
idparameter is provided - ID format: Verifies the ID is a positive integer
- ID value: Checks that the ID is greater than 0
Performance: This endpoint uses aggressive caching. Repeated requests with the same parameters will be served from cache, significantly reducing database load and response time.
Use Cases
- Anime Detail Pages: Display comprehensive information about a specific anime
- Recommendation Systems: Fetch full details for recommended animes
- User Collections: Show detailed info for animes in user lists
- Search Results: Enrich search results with complete anime data
- Mobile Apps: Provide full anime information in mobile applications
