sidebar_position |
---|
2 |
import ApiCodeBlock from '../../src/components/ApiCodeBlock'; import Highlight from '../../src/components/Highlight'; import ApiTryIt from '../../src/components/ApiTryIt';
export const endpoints = [ { method: 'GET', uri: '/v1/episode/:id' }, { method: 'GET', uri: '/v1/episode' }, ];
This is an object representing an Anime show's Episode. The API allows you to retrieve individual Episode as well as a list of them using various filters.
Unique identifier for an Episode.
Anime external unique identifier.
The episode's progressive number referring to the entire show.
The episode's localized title.
The episode's original streaming url.
The video
's HTTP headers needed to navigate.
The episode's website related locale.
The episode's streaming quality.
The episode's streaming codec format.
Indicates if the episode is dubbed or subbed.
{
"anime_id": 11,
"number": 1,
"title": "Il ragazzo di gomma",
"video": "https://api.aniapi.com/v1/proxy/https%3a%2f%2fcdn2.dr...",
"locale": "it",
"quality": 1080,
"format": "mp4",
"is_dub": false,
"id": 485
}
Retrieves an Episode, based on its unique identifier.
No parameters.
Returns an Episode object if a valid identifier was provided.
export const retrieveEpisodeParams = [ { name: ':id', type: 'number', placeholder: ':id', value: '485' } ];
Returns a list of Episode object.
The Episodes are returned sorted by anime_id
and number
.
A filter on the list based on the anime_id
field value.
A filter on the list based on the number
field value.
A case-sensitive pattern filter on the list based on the is_dub
field value.
A case-sensitive pattern filter on the list based on the locale
field value.
Returns an array of Episode objects with a size based on the filter provided.
export const getListEpisodeParams = [ { name: 'anime_id', type: 'number', placeholder: 'anime_id', value: '11' }, { name: 'number', type: 'number', placeholder: 'number', value: '' }, { name: 'is_dub', type: 'checkbox', placeholder: 'is_dub', value: true }, { name: 'locale', type: 'text', placeholder: 'locale', value: 'it' } ];