listBySlug
GET
/v4/lists/slug/:slug
This method returns a single list record. For official documentation of the endpoint, please refer to the Swagger documentation.
Parameters
Params | Type | Required | Description |
---|---|---|---|
slug | string | Yes | The list slug |
Example
import { TheTVDB } from '@untidy/thetvdb';
const client = new TheTVDB('access token');const data = await client.listBySlug('1001');
Successful response output
{ status: 'success', data: { id: 1, name: 'Scooby-Doo', // ... },};