Get Episode Servers
Technical details regarding the usage of the get episode servers 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/servers/{id}?provider={provider}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 |
Request Samples
import axios from "axios";
// Using the example id of "21" (one piece)
const url = "https://api.consumet.org/meta/anilist/servers/21";
const data = async () => {
try {
const { data } = await axios.get(url, { params: { provider: "zoro" } });
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);Response Schema
MIME Type: application/json
{
"servers": [
{
"name": "string",
"url": "string"
}
]
}