curl --request GET \
--url https://api.example.com/api/episodes{
"data": [
{
"id": "<string>",
"anime_mal_id": 123,
"episode_id": 123,
"video_url": "<string>",
"image_url": "<string>",
"title": "<string>",
"description": "<string>",
"date": "<string>"
}
],
"Retry-After": {}
}Retrieve a paginated list of episodes for a specific anime
curl --request GET \
--url https://api.example.com/api/episodes{
"data": [
{
"id": "<string>",
"anime_mal_id": 123,
"episode_id": 123,
"video_url": "<string>",
"image_url": "<string>",
"title": "<string>",
"description": "<string>",
"date": "<string>"
}
],
"Retry-After": {}
}429 Too Many Requests when limit is exceededRetry-After header in rate limit responses52991 (for One Piece)1curl -X GET "https://anidev.vercel.app/api/episodes?id=52991&page=1"
{
"data": [
{
"id": "ep-52991-1",
"anime_mal_id": 52991,
"episode_id": 1,
"video_url": "https://example.com/video/ep1.m3u8",
"image_url": "https://example.com/thumbnails/ep1.jpg",
"title": "The Beginning",
"description": "The adventure starts as our hero sets sail.",
"date": "2024-01-01"
},
{
"id": "ep-52991-2",
"anime_mal_id": 52991,
"episode_id": 2,
"video_url": "https://example.com/video/ep2.m3u8",
"image_url": "https://example.com/thumbnails/ep2.jpg",
"title": "New Companions",
"description": "Meeting new friends along the journey."
}
]
}
400 Bad Request
{
"error": "Anime ID is required",
"type": "validation"
}
400 Bad Request
{
"error": "Page number must be greater than 0",
"type": "validation"
}
429 Too Many Requests
{
"error": "Too many requests, please try again later",
"type": "tooManyRequests"
}
500 Internal Server Error
{
"error": "Internal server error"
}