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