Skip to content
DocumentationAPI Reference

Check User's Saved Shows

client.me.shows.check(ShowCheckParams { ids } query, RequestOptionsoptions?): ShowCheckResponse
GET/me/shows/contains

Check if one or more shows is already saved in the current Spotify user's library.

ParametersExpand Collapse
query: ShowCheckParams { ids }
ids: string

A comma-separated list of the Spotify IDs for the shows. Maximum: 50 IDs.

ReturnsExpand Collapse
ShowCheckResponse = Array<boolean>

Check User's Saved Shows

import Spotted from 'spotted-ts';

const client = new Spotted({
  accessToken: process.env['SPOTIFY_ACCESS_TOKEN'], // This is the default and can be omitted
});

const response = await client.me.shows.check({
  ids: '5CfCWKI5pZ28U0uOzXkDHe,5as3aKmN2k11yfDDDSrvaZ',
});

console.log(response);
[
  false,
  true
]
Returns Examples
[
  false,
  true
]