🚧 The Consumet documentation is undergoing reconstruction. Please be patient for all providers to be fully-documented. 🚧
API
Movies
SFlix
Get Media Info

Media Info

Technical details regarding the usage of the get media info 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/info?id={id}

Query Parameters

ParameterTypeDescriptionRequired?Default
idstringThe SFlix ID of the show / movie; i.e. provided by searching for said show and selecting the correct one.Yes

Request Samples

import axios from "axios";
 
// Using the example id "tv/watch-breaking-bad-39441"
const url = "https://api.consumet.org/movies/sflix/info";
const data = async () => {
    try {
        const { data } = await axios.get(url, { params: { id: "tv/watch-breaking-bad-39441" } });
        return data;
    } catch (err) {
        throw new Error(err.message);
    }
};
 
console.log(data);

Response Schema

MIME Type: application/json

{
  "id": "string",
  "title": "string",
  "url": "string",
  "image": "string",
  "releaseDate": "string",
  "description": "string",
  "genres": [
    "string"
  ],
  "type": "Movie",
  "casts": [
    "string"
  ],
  "tags": [
    "string"
  ],
  "production": "string",
  "duration": "string",
  "episodes": [
    {
      "id": "string",
      "url": "string",
      "title": "string",
      "number": 0,
      "season": 0
    }
  ]
}