音
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/track | One Spotify track: title, artists, album, duration and release date. |
| GET | /spotify/album | One Spotify album with its artists, release date and track list. |
| GET | /spotify/artist | One Spotify artist: followers, monthly listeners, biography, top tracks, releases and related artists. |
| GET | /spotify/playlist | One public Spotify playlist: owner, followers, track count and its first tracks. |
| GET | /spotify/episode | One Spotify podcast episode: title, description, show, release time and duration. |
| GET | /spotify/show | One Spotify podcast: publisher, topics, rating and its latest episodes. |
track
GET
/v1/spotify/trackOne Spotify track: title, artists, album, duration and release date.
scope social:read1 unitcached 1 h
Parameters
idstring required | Track id, spotify:track URI or open.spotify.com track URL. e.g. 4cOdK2wGLETKBW3PvgPWqT |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
album | Ref |
id | string |
name | string |
url | string |
artists | Ref[] |
id | string |
name | string |
url | string |
discNumber | any |
durationMs | integer (int64) |
explicit | boolean |
id | string |
imageUrl | string |
name | string |
playCount | integer (int64) |
releaseDate | string |
trackNumber | any |
url | string |
curl "https://api.hoshime.com/v1/spotify/track?id=4cOdK2wGLETKBW3PvgPWqT" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/spotify/track?id=4cOdK2wGLETKBW3PvgPWqT", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/spotify/track?id=4cOdK2wGLETKBW3PvgPWqT", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/albumOne Spotify album with its artists, release date and track list.
scope social:read1 unitcached 1 h
Parameters
idstring required | Album id, spotify:album URI or open.spotify.com album URL. e.g. 4aawyAB9vmqN3uQ7FjRGTy |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
artists | Ref[] |
id | string |
name | string |
url | string |
id | string |
imageUrl | string |
name | string |
releaseDate | string |
trackCount | integer (int64) |
tracks | Track[] |
album | Ref |
id | string |
name | string |
url | string |
artists | Ref[] |
id | string |
name | string |
url | string |
discNumber | any |
durationMs | integer (int64) |
explicit | boolean |
id | string |
imageUrl | string |
name | string |
playCount | integer (int64) |
releaseDate | string |
trackNumber | any |
url | string |
type | string |
url | string |
curl "https://api.hoshime.com/v1/spotify/album?id=4aawyAB9vmqN3uQ7FjRGTy" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/spotify/album?id=4aawyAB9vmqN3uQ7FjRGTy", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/spotify/album?id=4aawyAB9vmqN3uQ7FjRGTy", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/artistOne Spotify artist: followers, monthly listeners, biography, top tracks, releases and related artists.
scope social:read1 unitcached 1 h
Parameters
idstring required | Artist id, spotify:artist URI or open.spotify.com artist URL. e.g. 0OdUWJ0sBjDrqHygGUXeCF |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
albums | Album[] |
artists | Ref[] |
id | string |
name | string |
url | string |
id | string |
imageUrl | string |
name | string |
releaseDate | string |
trackCount | integer (int64) |
tracks | Track[] |
album | Ref |
artists | Ref[] |
discNumber | any |
durationMs | integer (int64) |
explicit | boolean |
id | string |
imageUrl | string |
name | string |
playCount | integer (int64) |
releaseDate | string |
trackNumber | any |
url | string |
type | string |
url | string |
avatarUrl | string |
bio | string |
createdAt | string |
followerCount | integer (int64) |
followingCount | integer (int64) |
id | string |
monthlyListenerCount | integer (int64) |
name | string |
postCount | integer (int64) |
relatedArtists | Ref[] |
id | string |
name | string |
url | string |
topTracks | Track[] |
album | Ref |
id | string |
name | string |
url | string |
artists | Ref[] |
id | string |
name | string |
url | string |
discNumber | any |
durationMs | integer (int64) |
explicit | boolean |
id | string |
imageUrl | string |
name | string |
playCount | integer (int64) |
releaseDate | string |
trackNumber | any |
url | string |
url | string |
username | string |
verified | boolean |
curl "https://api.hoshime.com/v1/spotify/artist?id=0OdUWJ0sBjDrqHygGUXeCF" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/spotify/artist?id=0OdUWJ0sBjDrqHygGUXeCF", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/spotify/artist?id=0OdUWJ0sBjDrqHygGUXeCF", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/playlistOne public Spotify playlist: owner, followers, track count and its first tracks.
scope social:read1 unitcached 30 min
Parameters
idstring required | Playlist id, spotify:playlist URI or open.spotify.com playlist URL. e.g. 37i9dQZF1DXcBWIGoYBM5M |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
description | string |
followerCount | integer (int64) |
id | string |
imageUrl | string |
name | string |
owner | Author |
avatarUrl | string |
id | string |
name | string |
url | string |
username | string |
trackCount | integer (int64) |
tracks | Track[] |
album | Ref |
id | string |
name | string |
url | string |
artists | Ref[] |
id | string |
name | string |
url | string |
discNumber | any |
durationMs | integer (int64) |
explicit | boolean |
id | string |
imageUrl | string |
name | string |
playCount | integer (int64) |
releaseDate | string |
trackNumber | any |
url | string |
url | string |
curl "https://api.hoshime.com/v1/spotify/playlist?id=37i9dQZF1DXcBWIGoYBM5M" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/spotify/playlist?id=37i9dQZF1DXcBWIGoYBM5M", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/spotify/playlist?id=37i9dQZF1DXcBWIGoYBM5M", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/episodeOne Spotify podcast episode: title, description, show, release time and duration.
scope social:read1 unitcached 1 h
Parameters
idstring required | Episode id, spotify:episode URI or open.spotify.com episode URL. e.g. 2en2xJFq6PzeSFWqWitPqI |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
description | string |
durationMs | integer (int64) |
explicit | boolean |
id | string |
imageUrl | string |
language | string |
name | string |
releasedAt | string |
show | Ref |
id | string |
name | string |
url | string |
url | string |
curl "https://api.hoshime.com/v1/spotify/episode?id=2en2xJFq6PzeSFWqWitPqI" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/spotify/episode?id=2en2xJFq6PzeSFWqWitPqI", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/spotify/episode?id=2en2xJFq6PzeSFWqWitPqI", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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/showOne Spotify podcast: publisher, topics, rating and its latest episodes.
scope social:read1 unitcached 1 h
Parameters
idstring required | Show id, spotify:show URI or open.spotify.com show URL. e.g. 4rOoJ6Egrf8K2IrywzwOMk |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
description | string |
episodeCount | integer (int64) |
episodes | Episode[] |
description | string |
durationMs | integer (int64) |
explicit | boolean |
id | string |
imageUrl | string |
language | string |
name | string |
releasedAt | string |
show | Ref |
id | string |
name | string |
url | string |
url | string |
explicit | boolean |
id | string |
imageUrl | string |
language | string |
name | string |
publisher | string |
rating | number (double) |
ratingCount | integer (int64) |
topics | string[] |
url | string |
curl "https://api.hoshime.com/v1/spotify/show?id=4rOoJ6Egrf8K2IrywzwOMk" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/spotify/show?id=4rOoJ6Egrf8K2IrywzwOMk", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/spotify/show?id=4rOoJ6Egrf8K2IrywzwOMk", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "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 } }