Skip to content

Spotify API

6 endpointsMusic & AudioGlobalsocial:read

Returns Spotify tracks, albums, artists, playlists, podcast shows and episodes: artists, release dates, durations, follower and listener counts. No lyrics or audio.

View as Markdown
GET/spotify/trackOne Spotify track: title, artists, album, duration and release date.
GET/spotify/albumOne Spotify album with its artists, release date and track list.
GET/spotify/artistOne Spotify artist: followers, monthly listeners, biography, top tracks, releases and related artists.
GET/spotify/playlistOne public Spotify playlist: owner, followers, track count and its first tracks.
GET/spotify/episodeOne Spotify podcast episode: title, description, show, release time and duration.
GET/spotify/showOne Spotify podcast: publisher, topics, rating and its latest episodes.

track

GET/v1/spotify/track

One Spotify track: title, artists, album, duration and release date.

scope social:read1 unitcached 1 h

Parameters

id
string
required
Track id, spotify:track URI or open.spotify.com track URL.
e.g. 4cOdK2wGLETKBW3PvgPWqT
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

18 fields
albumRef
idstring
namestring
urlstring
artistsRef[]
idstring
namestring
urlstring
discNumberany
durationMsinteger (int64)
explicitboolean
idstring
imageUrlstring
namestring
playCountinteger (int64)
releaseDatestring
trackNumberany
urlstring
curl "https://api.hoshime.com/v1/spotify/track?id=4cOdK2wGLETKBW3PvgPWqT" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "album": {
      "id": "abc123",
      "name": "…",
      "url": "https://…"
    },
    "artists": [
      {
        "id": "abc123",
        "name": "…",
        "url": "https://…"
      }
    ],
    "discNumber": null,
    "durationMs": 0,
    "explicit": false,
    "id": "abc123",
    "imageUrl": "https://…",
    "name": "…",
    "playCount": 1280,
    "releaseDate": "…",
    "trackNumber": null,
    "url": "https://…"
  },
  "meta": {
    "cached": false,
    "endpoint": "track",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "spotify",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

album

GET/v1/spotify/album

One Spotify album with its artists, release date and track list.

scope social:read1 unitcached 1 h

Parameters

id
string
required
Album id, spotify:album URI or open.spotify.com album URL.
e.g. 4aawyAB9vmqN3uQ7FjRGTy
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

30 fields
artistsRef[]
idstring
namestring
urlstring
idstring
imageUrlstring
namestring
releaseDatestring
trackCountinteger (int64)
tracksTrack[]
albumRef
idstring
namestring
urlstring
artistsRef[]
idstring
namestring
urlstring
discNumberany
durationMsinteger (int64)
explicitboolean
idstring
imageUrlstring
namestring
playCountinteger (int64)
releaseDatestring
trackNumberany
urlstring
typestring
urlstring
curl "https://api.hoshime.com/v1/spotify/album?id=4aawyAB9vmqN3uQ7FjRGTy" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "artists": [
      {
        "id": "abc123",
        "name": "…",
        "url": "https://…"
      }
    ],
    "id": "abc123",
    "imageUrl": "https://…",
    "name": "…",
    "releaseDate": "…",
    "trackCount": 1280,
    "tracks": [
      {
        "album": {
          "id": null,
          "name": null,
          "url": null
        },
        "artists": [],
        "discNumber": null,
        "durationMs": 0,
        "explicit": false,
        "id": "abc123",
        "imageUrl": "https://…",
        "name": "…",
        "playCount": 1280,
        "releaseDate": "…",
        "trackNumber": null,
        "url": "https://…"
      }
    ],
    "type": "…",
    "url": "https://…"
  },
  "meta": {
    "cached": false,
    "endpoint": "album",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "spotify",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

artist

GET/v1/spotify/artist

One Spotify artist: followers, monthly listeners, biography, top tracks, releases and related artists.

scope social:read1 unitcached 1 h

Parameters

id
string
required
Artist id, spotify:artist URI or open.spotify.com artist URL.
e.g. 0OdUWJ0sBjDrqHygGUXeCF
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

60 fields
albumsAlbum[]
artistsRef[]
idstring
namestring
urlstring
idstring
imageUrlstring
namestring
releaseDatestring
trackCountinteger (int64)
tracksTrack[]
albumRef
artistsRef[]
discNumberany
durationMsinteger (int64)
explicitboolean
idstring
imageUrlstring
namestring
playCountinteger (int64)
releaseDatestring
trackNumberany
urlstring
typestring
urlstring
avatarUrlstring
biostring
createdAtstring
followerCountinteger (int64)
followingCountinteger (int64)
idstring
monthlyListenerCountinteger (int64)
namestring
postCountinteger (int64)
relatedArtistsRef[]
idstring
namestring
urlstring
topTracksTrack[]
albumRef
idstring
namestring
urlstring
artistsRef[]
idstring
namestring
urlstring
discNumberany
durationMsinteger (int64)
explicitboolean
idstring
imageUrlstring
namestring
playCountinteger (int64)
releaseDatestring
trackNumberany
urlstring
urlstring
usernamestring
verifiedboolean
curl "https://api.hoshime.com/v1/spotify/artist?id=0OdUWJ0sBjDrqHygGUXeCF" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "albums": [
      {
        "artists": [],
        "id": "abc123",
        "imageUrl": "https://…",
        "name": "…",
        "releaseDate": "…",
        "trackCount": 1280,
        "tracks": [],
        "type": "…",
        "url": "https://…"
      }
    ],
    "avatarUrl": "https://…",
    "bio": "…",
    "createdAt": "2026-11-06T09:41:00Z",
    "followerCount": 1280,
    "followingCount": 1280,
    "id": "abc123",
    "monthlyListenerCount": 1280,
    "name": "…",
    "postCount": 1280,
    "relatedArtists": [
      {
        "id": "abc123",
        "name": "…",
        "url": "https://…"
      }
    ],
    "topTracks": [
      {
        "album": {
          "id": null,
          "name": null,
          "url": null
        },
        "artists": [],
        "discNumber": null,
        "durationMs": 0,
        "explicit": false,
        "id": "abc123",
        "imageUrl": "https://…",
        "name": "…",
        "playCount": 1280,
        "releaseDate": "…",
        "trackNumber": null,
        "url": "https://…"
      }
    ],
    "url": "https://…",
    "username": "…",
    "verified": false
  },
  "meta": {
    "cached": false,
    "endpoint": "artist",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "spotify",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

playlist

GET/v1/spotify/playlist

One public Spotify playlist: owner, followers, track count and its first tracks.

scope social:read1 unitcached 30 min

Parameters

id
string
required
Playlist id, spotify:playlist URI or open.spotify.com playlist URL.
e.g. 37i9dQZF1DXcBWIGoYBM5M
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

32 fields
descriptionstring
followerCountinteger (int64)
idstring
imageUrlstring
namestring
ownerAuthor
avatarUrlstring
idstring
namestring
urlstring
usernamestring
trackCountinteger (int64)
tracksTrack[]
albumRef
idstring
namestring
urlstring
artistsRef[]
idstring
namestring
urlstring
discNumberany
durationMsinteger (int64)
explicitboolean
idstring
imageUrlstring
namestring
playCountinteger (int64)
releaseDatestring
trackNumberany
urlstring
urlstring
curl "https://api.hoshime.com/v1/spotify/playlist?id=37i9dQZF1DXcBWIGoYBM5M" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "description": "…",
    "followerCount": 1280,
    "id": "abc123",
    "imageUrl": "https://…",
    "name": "…",
    "owner": {
      "avatarUrl": "https://…",
      "id": "abc123",
      "name": "…",
      "url": "https://…",
      "username": "…"
    },
    "trackCount": 1280,
    "tracks": [
      {
        "album": {
          "id": null,
          "name": null,
          "url": null
        },
        "artists": [],
        "discNumber": null,
        "durationMs": 0,
        "explicit": false,
        "id": "abc123",
        "imageUrl": "https://…",
        "name": "…",
        "playCount": 1280,
        "releaseDate": "…",
        "trackNumber": null,
        "url": "https://…"
      }
    ],
    "url": "https://…"
  },
  "meta": {
    "cached": false,
    "endpoint": "playlist",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "spotify",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

episode

GET/v1/spotify/episode

One Spotify podcast episode: title, description, show, release time and duration.

scope social:read1 unitcached 1 h

Parameters

id
string
required
Episode id, spotify:episode URI or open.spotify.com episode URL.
e.g. 2en2xJFq6PzeSFWqWitPqI
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

13 fields
descriptionstring
durationMsinteger (int64)
explicitboolean
idstring
imageUrlstring
languagestring
namestring
releasedAtstring
showRef
idstring
namestring
urlstring
urlstring
curl "https://api.hoshime.com/v1/spotify/episode?id=2en2xJFq6PzeSFWqWitPqI" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "description": "…",
    "durationMs": 0,
    "explicit": false,
    "id": "abc123",
    "imageUrl": "https://…",
    "language": "…",
    "name": "…",
    "releasedAt": "2026-11-06T09:41:00Z",
    "show": {
      "id": "abc123",
      "name": "…",
      "url": "https://…"
    },
    "url": "https://…"
  },
  "meta": {
    "cached": false,
    "endpoint": "episode",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "spotify",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}

show

GET/v1/spotify/show

One Spotify podcast: publisher, topics, rating and its latest episodes.

scope social:read1 unitcached 1 h

Parameters

id
string
required
Show id, spotify:show URI or open.spotify.com show URL.
e.g. 4rOoJ6Egrf8K2IrywzwOMk
tunnel
string
Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy.
proxy
string
Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it.
profileId
string
Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only.

Response data

26 fields
descriptionstring
episodeCountinteger (int64)
episodesEpisode[]
descriptionstring
durationMsinteger (int64)
explicitboolean
idstring
imageUrlstring
languagestring
namestring
releasedAtstring
showRef
idstring
namestring
urlstring
urlstring
explicitboolean
idstring
imageUrlstring
languagestring
namestring
publisherstring
ratingnumber (double)
ratingCountinteger (int64)
topicsstring[]
urlstring
curl "https://api.hoshime.com/v1/spotify/show?id=4rOoJ6Egrf8K2IrywzwOMk" \
  -H "Authorization: Bearer $HOSHIME_TOKEN"
200 Response shape
{
  "data": {
    "description": "…",
    "episodeCount": 1280,
    "episodes": [
      {
        "description": "…",
        "durationMs": 0,
        "explicit": false,
        "id": "abc123",
        "imageUrl": "https://…",
        "language": "…",
        "name": "…",
        "releasedAt": "2026-11-06T09:41:00Z",
        "show": {
          "id": null,
          "name": null,
          "url": null
        },
        "url": "https://…"
      }
    ],
    "explicit": false,
    "id": "abc123",
    "imageUrl": "https://…",
    "language": "…",
    "name": "…",
    "publisher": "…",
    "rating": 0,
    "ratingCount": 1280,
    "topics": [
      "…"
    ],
    "url": "https://…"
  },
  "meta": {
    "cached": false,
    "endpoint": "show",
    "fetchedAt": "2026-11-06T09:41:00Z",
    "platform": "spotify",
    "requestId": "req_2Xb9kQ…",
    "units": 1
  }
}
esc
↑↓ move↵ open