🍿 @lorenzopant/tmdb

Favorite TV

Get the paginated list of favorite TV shows for an account.

Get the list of TV shows an account has marked as a favourite, with optional sorting and pagination.

async favorite_tv(params: AccountMediaListParams): Promise<AccountTVListResponse>

TMDB Reference: Favorite TV

Parameters

NameTypeRequiredDescription
account_idnumberThe TMDB account ID.
session_idstringSession ID for v3 session-based authentication.
languageLanguageLanguage for localized results. Defaults to en-US.
sort_byAccountSortBySort order: "created_at.asc" or "created_at.desc".
pagenumberPage number to return.

Returns

A PaginatedResponse<AccountTVItem> containing an array of AccountTVItem objects.

Example

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

const tmdb = new TMDB("your-access-token");
const favorites = await tmdb.account.favorite_tv({
	account_id: 123,
	sort_by: "created_at.desc",
});

console.log(favorites.results[0].name);

On this page