Get Episode Streaming Links
Technical details regarding the usage of the get streaming links function for the SFlix 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/sflix/watch?episodeId={episodeId}&mediaId={mediaId}Query Parameters
| Parameter | Type | Description | Required? | Default |
|---|---|---|---|---|
| episodeId | string | The ID of the selected episode | Yes | N/A |
| mediaId | string | The movie/show info ID | Yes | N/A |
Request Samples
import axios from "axios";
// Using the example episode ID and media ID
const url = "https://api.consumet.org/movies/sflix/watch";
const data = async () => {
try {
const { data } = await axios.get(url, {
params: {
episodeId: "1001",
mediaId: "tv/watch-breaking-bad-39441"
}
});
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"
}
]
}