Skip to content
This repository has been archived by the owner on Dec 2, 2022. It is now read-only.

Latest commit

 

History

History
173 lines (101 loc) · 4.11 KB

episode.mdx

File metadata and controls

173 lines (101 loc) · 4.11 KB
sidebar_position
2

Episode

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.

The Episode object

Attributes


id

Unique identifier for an Episode.


anime_id

Anime external unique identifier.


number

The episode's progressive number referring to the entire show.


title

The episode's localized title.


video

The episode's original streaming url.


video_headers

The video's HTTP headers needed to navigate.


locale

The episode's website related locale.


quality

The episode's streaming quality.


format

The episode's streaming codec format.


is_dub

Indicates if the episode is dubbed or subbed.


Example

{
  "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
}

Retrieve a specific Episode

Retrieves an Episode, based on its unique identifier.

Parameters

No parameters.

Returns

Returns an Episode object if a valid identifier was provided.

Try it

export const retrieveEpisodeParams = [ { name: ':id', type: 'number', placeholder: ':id', value: '485' } ];

Get a list of Episode

Returns a list of Episode object. The Episodes are returned sorted by anime_id and number.

Parameters


anime_id

A filter on the list based on the anime_id field value.


number

A filter on the list based on the number field value.


is_dub

A case-sensitive pattern filter on the list based on the is_dub field value.


locale

A case-sensitive pattern filter on the list based on the locale field value.


Returns

Returns an array of Episode objects with a size based on the filter provided.

Try it

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' } ];