Skip to content
DocumentationAPI Reference

Check User's Saved Shows

client.Me.Shows.Check(ctx, query) (*[]bool, error)
GET/me/shows/contains

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

ParametersExpand Collapse
query MeShowCheckParams
IDs param.Field[string]

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

ReturnsExpand Collapse
type MeShowCheckResponse []bool

Check User's Saved Shows

package main

import (
  "context"
  "fmt"

  "github.com/cjavdev/spotted-go"
  "github.com/cjavdev/spotted-go/option"
)

func main() {
  client := spotted.NewClient(
    option.WithAccessToken("My Access Token"),
  )
  response, err := client.Me.Shows.Check(context.TODO(), spotted.MeShowCheckParams{
    IDs: "5CfCWKI5pZ28U0uOzXkDHe,5as3aKmN2k11yfDDDSrvaZ",
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response)
}
[
  false,
  true
]
Returns Examples
[
  false,
  true
]