Skip to content

characterById

GET /v4/characters/:id

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

Parameters

ParamsTypeRequiredDescription
idstringYesThe character id

Example

import { TheTVDB } from '@untidy/thetvdb';
const client = new TheTVDB('access token');
const data = await client.characterById('64140522');
Successful response output
{
status: 'success',
data: {
id: 64140522,
name: 'Spike Spiegel',
peopleId: 7916957,
seriesId: 76885,
series: {
name: 'カウボーイビバップ',
image: 'https://artworks.thetvdb.com/https://artworks.thetvdb.com/banners/posters/76885-3.jpg',
year: '1998',
},
// ...
},
};