🍿 @lorenzopant/tmdb

Details

Get the public profile of a TMDB account.

Retrieve the public profile of a TMDB account, including display name, avatar sources, and language/country preferences.

async details(params: AccountDetailsParams): Promise<AccountDetails>

TMDB Reference: Account Details

Parameters

NameTypeRequiredDescription
account_idnumberThe TMDB account ID.
session_idstringSession ID for v3 session-based authentication.

Returns

AccountDetails

Example

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

const tmdb = new TMDB("your-access-token");
const profile = await tmdb.account.details({ account_id: 123 });

console.log(profile.username); // "johndoe"
console.log(profile.name); // "John Doe"

On this page