Skip to content

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

ParamsTypeRequiredDescription
idstringYesThe 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',
},
};