🍿 @lorenzopant/tmdb

Check Item Status

Check if a movie is on a TMDB list.

Check if a movie has been added to the list. Returns the item's presence status.

async check_item_status(params: ListItemStatusParams): Promise<ListItemStatusResponse>

TMDB Reference: Check Item Status

Parameters

NameTypeRequiredDescription
list_idnumberTMDB list ID.
languagestringISO 639-1 language code. Defaults to en-US.
movie_idnumberTMDB movie ID to check for.

Returns

ListItemStatusResponse

Example

import { TMDB } from "@lorenzopant/tmdb";

const tmdb = new TMDB("your-api-key");
const result = await tmdb.lists.check_item_status({
	list_id: 5861,
	movie_id: 550,
});

console.log(result.item_present); // true

On this page