sidebar_position |
---|
4 |
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/resources' }, { method: 'GET', uri: '/v1/resources/:version/:type' }, ];
AniAPI provides an endpoint to retrieve general purpose content, most of them utils. The API allows you to retrieve the last available Resources' version and retrieve individual Resource providing a version and a type.
This is an array of strings
containing all the availables genre
value across AniAPI.
Version | Description |
---|---|
1.0 |
Default values |
This is an array of objects
containing all the possible locale
values inside AniAPI.
The locale's ISO 639‑1 language code.
The locale's description.
Version | Description |
---|---|
1.0 |
Intial support for en and it values |
This is an array of objects
containing all the supported sources for episodes
in AniAPI.
The source's ISO 639‑1 language code.
The source's name inside Episode.
The source's video encoding format.
Version | Description |
---|---|
1.0 |
Default values |
No parameters.
Returns a string
which identifies the latest available Resources' version.
:::caution
Older Resources' versions will be available forever, in order to serve also external services that don't follow our updates.
:::
"GENRES": 0,
"LOCALIZATIONS": 1,
"SOURCES": 2
Returns a Resource object according to the version
and type
values provided.
export const getResourceParams = [ { name: ':version', type: 'text', placeholder: ':version', value: '1.0' }, { name: ':type', type: 'number', placeholder: ':type', value: '0' } ];