🚧 The Consumet documentation is undergoing reconstruction. Please be patient for all providers to be fully-documented. 🚧
API
Meta
Anilist (Anime)
Get Episodes

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

ParameterTypeDescriptionRequired?Default
idstringThe anilist info idYesN/A

Query Parameters

ParameterTypeDescriptionRequired?Default
providerstringThe provider you want to use. Enum: 9anime, animefox, animepahe, bilibili, crunchyroll, enime, gogoanime, marin, zoroNozoro
dubbooleanWhether to fetch the dub version or sub versionNofalse
fetchFillerbooleanWhether to fetch filler information or notNofalse

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