Get Anime Episode Available Servers
Technical details regarding the usage of the get available servers function for the Anix 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/anix/servers/{id}/{episodeId}?type={type}
Path Parameters
Parameter | Type | Description | Required? | Default |
---|---|---|---|---|
id | string | The ID of the anime which the episodeId belongs to. | Yes | |
episodeId | string | The episodeId. Usually in the format: ep-1 , etc. | Yes |
Query Parameters
Parameter | Type | Description | Required? | Default |
---|---|---|---|---|
type | Enum: "sub" "dub" "raw" | The type. Either sub, dub or raw. | No | "sub" |
Request Samples
import axios from "axios";
// Using the example episode ID of 'darling-in-the-franxx' with episode ID 'ep-1'.
const url = "https://api.consumet.org/anime/anix/servers/darling-in-the-franxx/ep-1?type=sub";
const data = async () => {
try {
const { data } = await axios.get(url, { params: {
"type": "sub"
} });
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);
Response Schema
MIME Type: application/json
[
{
"name": "string",
"url": "string"
}
]