Get Movie's Episode Available Servers
Technical details regarding the usage of the get available servers function for the GogoAnime 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/movies/flixhq/servers?episodeId={episodeId}&mediaId={mediaId}
Query Parameters
Parameter | Type | Description | Required? | Default |
---|---|---|---|---|
episodeId | string | The Episode's id you want the servers for | Yes | "" |
mediaId | string | The movie info ID | Yes | "" |
Request Samples
import axios from "axios";
// Using the example episode ID of '10766' and the mediaId of 'tv/watch-rick-and-morty-39480'.
const url = "https://api.consumet.org/movies/flixhq/servers";
const data = async () => {
try {
const { data } = await axios.get(url, { params: { episodeId: "10766", mediaId: "tv/watch-rick-and-morty-39480" } });
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);
Response Schema
MIME Type: application/json
[
{
"name": "string",
"url": "string"
}
]