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 streaming url.
The episode's website from which it has been imported.
The episode's website related locale.
{
"anime_id": 11,
"number": 1,
"title": "Il ragazzo di gomma",
"video": "https://api.aniapi.com/v1/proxy/https%3a%2f%2fcdn2.dr...",
"source": "dreamsub",
"locale": "it",
"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 source
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: 'source', type: 'text', placeholder: 'source', value: 'dreamsub' }, { name: 'locale', type: 'text', placeholder: 'locale', value: 'it' } ];