Get Anime Episode Streaming Links
Technical details regarding the usage of the get anime streaming links function for the Dramacool 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/dramacool/watch?episodeId={episodeId}&mediaId={mediaId}&server={server}
Query Parameters
Parameter | Type | Description | Required? | Default |
---|---|---|---|---|
episodeId | string | The ID of the selected episode | Yes | N/A |
mediaId | string | The movie info ID | Yes | N/A |
server | Enum: "asianload" "mixdrop" "streamtape" "streamsb" | The server the episode will use | No | "asianload" |
Request Samples
import axios from "axios";
/*
Using the example episode ID of 'vincenzo-2021-episode-1',
explicitly defining default server for demostrative purposes.
*/
const url = "https://api.consumet.org/movies/dramacool/watch";
const data = async () => {
try {
const { data } = await axios.get(url, { params: { episodeId: "vincenzo-2021-episode-1", mediaId: "drama-detail/vincenzo", server: "asianload" } });
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);
Response Schema
MIME Type: application/json
{
"headers": {
"Referer": "string"
},
"sources": [
{
"url": "string",
"quality": "string",
"isM3U8": true
}
],
"subtitles": [
{
"url": "string",
"lang": "string"
}
]
}