Skip to content
DocumentationAPI Reference

Check User's Saved Audiobooks

me.audiobooks.check(**kwargs) -> AudiobookCheckResponse
GET/me/audiobooks/contains

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

ParametersExpand Collapse
ids: String

A comma-separated list of the Spotify IDs. For example: ids=18yVqkdbdRvS24c0Ilj2ci,1HGw3J3NxZO1TP1BTtVhpZ. Maximum: 50 IDs.

ReturnsExpand Collapse
Array[bool]

Check User's Saved Audiobooks

require "spotted"

spotted = Spotted::Client.new(access_token: "My Access Token")

response = spotted.me.audiobooks.check(ids: "18yVqkdbdRvS24c0Ilj2ci,1HGw3J3NxZO1TP1BTtVhpZ,7iHfbu1YPACw6oZPAFJtqe")

puts(response)
[
  false,
  true
]
Returns Examples
[
  false,
  true
]