Get Episodes
Technical details regarding the usage of the get episodes function for the Anilist Anime provider can be found below. Example code is provided for both JavaScript and Python, along with a response schema.
Route Schema (URL)
https://api.consumet.org/meta/anilist/episodes/{id}?provider={provider}&dub={dub}&fetchFiller={fetchFiller}Path Parameters
| Parameter | Type | Description | Required? | Default |
|---|---|---|---|---|
| id | string | The anilist info id | Yes | N/A |
Query Parameters
| Parameter | Type | Description | Required? | Default |
|---|---|---|---|---|
| provider | string | The provider you want to use. Enum: 9anime, animefox, animepahe, bilibili, crunchyroll, enime, gogoanime, marin, zoro | No | zoro |
| dub | boolean | Whether to fetch the dub version or sub version | No | false |
| fetchFiller | boolean | Whether to fetch filler information or not | No | false |
Request Samples
import axios from "axios";
// Using the example id of "21" (one piece)
const url = "https://api.consumet.org/meta/anilist/episodes/21";
const data = async () => {
try {
const { data } = await axios.get(url, { params: { provider: "zoro", dub: false, fetchFiller: true } });
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);Response Schema
MIME Type: application/json
{
"id": "string",
"totalEpisodes": "number",
"episodes": [
{
"id": "string",
"number": "number",
"title": "string",
"description": "string",
"url": "string",
"image": "string",
"airDate": "string",
"isFiller": "boolean"
}
]
}