episodeByIdExtended
GET
/v4/episodes/:id/extended
This method returns a single extended episode record. For official documentation of the endpoint, please refer to the Swagger documentation.
Parameters
Params | Type | Required | Description |
---|---|---|---|
id | string | Yes | The episode id |
translation | boolean | Optional | Include translation information in the response |
Examples
Without translations
import { TheTVDB } from '@untidy/thetvdb';
const client = new TheTVDB('access token');const data = await client.episodeByIdExtended('127396');
Successful response output
{ status: 'success', data: { id: 127396, seriesId: 73752, // ... },};
Include translations in the response
import { TheTVDB } from '@untidy/thetvdb';
const client = new TheTVDB('access token');const data = await client.episodeByIdExtended('127396', true);
Successful response output
{ status: 'success', data: { id: 127396, seriesId: 73752, translations: { nameTranslations: [ { name: 'Schwarzer Ritter', language: 'deu', }, // ... ], // ... }, // ... },};