serieBySlug
GET
/v4/series/slug/:slug
This method returns a single serie record. For official documentation of the endpoint, please refer to the Swagger documentation.
Parameters
Params | Type | Required | Description |
---|---|---|---|
slug | string | Yes | The serie slug |
Example
import { TheTVDB } from '@untidy/thetvdb';
const client = new TheTVDB('access token');const data = await client.serieBySlug('yu-gi-oh');
Successful response output
{ status: 'success', data: { id: 113561, name: '遊☆戯☆王', slug: 'yu-gi-oh', image: 'https://artworks.thetvdb.com/banners/posters/113561-4.jpg', // ... },};