Get Anime Episode Streaming Links
Technical details regarding the usage of the get anime streaming links function for the animeunity 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/animeunity/watch/{episodeId}Path Parameters
| Parameter | Type | Description | Required? | Default |
|---|---|---|---|---|
| episodeId | string | The episode ID of the episode you want to watch. Format: {animeId}-{slug}/{episodeNumber} | Yes | "" |
Request Samples
import axios from "axios";
/*
Using the example episode ID of "7221-demon-slayer-kimetsu-no-yaiba/12345"
*/
const url = "https://api.consumet.org/anime/animeunity/watch/7221-demon-slayer-kimetsu-no-yaiba/12345";
const data = async () => {
try {
const { data } = await axios.get(url);
return data;
} catch (err) {
throw new Error(err.message);
}
};
console.log(data);Response Schema
MIME Type: application/json
{
"sources": [
{
"url": "string",
"quality": "string", // e.g., "360p", "480p", "720p", "1080p", "default"
"isM3U8": true
}
],
"download": "string"
}