Get Episode Servers
Technical details regarding the usage of the get episode servers function for the animekai 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/anime/animekai/servers/{episodeId}Path Parameters
| Parameter | Type | Description | Required? | Default |
|---|---|---|---|---|
| episodeId | string | The episode ID of the episode to get available servers for. | Yes | "" |
Query Parameters
| Parameter | Type | Description | Required? | Default |
|---|---|---|---|---|
| dub | boolean | Set to true for dubbed, false for subbed. | No | false |
Request Samples
import axios from "axios";
// Using the example episode ID of "naruto-shippuden-1-episode-1".
const url = "https://api.consumet.org/anime/animekai/servers/naruto-shippuden-1-episode-1";
const data = async () => {
try {
const { data } = await axios.get(url, { params: { dub: false } });
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);Response Schema
MIME Type: application/json
[
{
"name": "string",
"url": "string"
}
]