episodeById
GET
/v4/episodes/:id
This method returns a single 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 |
Example
import { TheTVDB } from '@untidy/thetvdb';
const client = new TheTVDB('access token');const data = await client.episodeById('127396');
Successful response output
{ status: 'success', data: { id: 127396, seriesId: 73752, name: '黒い騎士', aired: '1997-10-08', runtime: 24, // ... },};