🚧 The Consumet documentation is undergoing reconstruction. Please be patient for all providers to be fully-documented. 🚧
API
Meta
The Movie Database (TMDB)
Get Movie Info

Movie Info

Technical details regarding the usage of the get anime info function for the TMDB 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/meta/tmdb/info/{id}?type={media-type}

Path Parameters

ParameterTypeDescriptionRequired?Default
idstringThe show / movie idYesN/A

Query Parameters

ParameterTypeDescriptionRequired?Default
typestringThe TMDB media type of the show / movie; i.e. provided by searching for said show and selecting the correct one.YesN/A

Request Samples

import axios from "axios";
 
// Using the example id of "60735" and the query of "tv"
const url = "https://api.consumet.org/meta/tmdb/info/60735";
const data = async () => {
    try {
        const { data } = await axios.get(url, { params: { type: "tv" } });
        return data;
    } catch (err) {
        throw new Error(err.message);
    }
};
 
console.log(data);

Response Schema

MIME Type: application/json

{
    "cover": "string",
    "recommendations": "IMovieResult[]",
    "genres": "string[]",
    "description": "string",
    "rating": "number",
    "status": "MediaStatus",
    "duration": "string",
    "production": "string",
    "casts": "string[]",
    "tags": "string[]",
    "totalEpisodes": "number",
    "seasons": "{ season: number; image?: string; episodes: IMovieEpisode[] }[]",
    "episodes": "IMovieEpisode[]",
}