artworkById
GET
/v4/artwork/:id
This method returns a single artwork record. For official documentation of the endpoint, please refer to the Swagger documentation.
Parameters
Params | Type | Required | Description |
---|---|---|---|
id | string | Yes | The artwork id |
Example
import { TheTVDB } from '@untidy/thetvdb';
const client = new TheTVDB('access token');const data = await client.artworkById('63237874');
Successful response output
{ status: 'success', data: { id: 63237874, image: 'https://artworks.thetvdb.com/banners/v4/movie/145830/posters/63515dcbcc460.jpg', thumbnail: 'https://artworks.thetvdb.com/banners/v4/movie/145830/posters/63515dcbcc460_t.jpg', language: 'eng', type: 14, score: 0, width: 680, height: 1000, includesText: true, },};