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
| Name | Type | Required | Description |
|---|---|---|---|
account_id | number | ✅ | The TMDB account ID. |
session_id | string | ❌ | Session ID for v3 session-based authentication. |
Returns
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"