Skip to content

peopleById

GET /v4/people/:id

This method returns a single people record. For official documentation of the endpoint, please refer to the Swagger documentation.

Parameters

ParamsTypeRequiredDescription
idstringYesThe people id

Example

import { TheTVDB } from '@untidy/thetvdb';
const client = new TheTVDB('access token');
const data = await client.peopleById('312388');
Successful response output
{
status: 'success',
data: {
id: 312388,
name: 'Chris Pratt',
image: 'https://artworks.thetvdb.com/banners/person/312388/primary.jpg',
score: 0,
nameTranslations: ['eng', 'spa', 'por', 'pt', 'ell', 'pol'],
// ...
},
};