音
SongBPM API
4 endpointsMusic & AudioGlobalsocial:read4 real examples
Returns songs with tempo, key, length and streaming links, plus artists and their songs from SongBPM.
View as Markdown| GET | /songbpm/search | Songs the site matches to a search text, each with its tempo, key, length and streaming links. |
| GET | /songbpm/song | One song's page: its tempo, key, length, title, artist and streaming links. |
| GET | /songbpm/artist | The songs of one artist on the site, with their tempo and key, with cursor paging. |
| GET | /songbpm/artists | The artists of the site's index, optionally those starting with one letter, with cursor paging. |
search
GET
/v1/songbpm/searchSongs the site matches to a search text, each with its tempo, key, length and streaming links.
scope social:read1 unitcached 6 hpaginated
Parameters
querystring required | Song and artist, such as coldplay yellow. e.g. coldplay yellow |
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
11 fields
amazonUrl | string |
appleUrl | string |
artist | string |
artworkUrl | string |
bpm | integer (int64) |
durationSec | integer (int64) |
key | string |
path | string |
spotifyUrl | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/songbpm/search?query=coldplay+yellow" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/songbpm/search?query=coldplay+yellow", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/songbpm/search?query=coldplay+yellow", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "amazonUrl": "https://www.amazon.com/s?k=Coldplay+-+Yellow&i=digital-music&tag=songbpm-20", "appleUrl": "https://geo.music.apple.com/us/album/yellow/1122782080?i=1122782283&at=11l4DB&app=music", "artist": "Coldplay", "artworkUrl": "https://i.scdn.co/image/ab67616d0000b2739164bafe9aaa168d93f4816a", "bpm": 173, "durationSec": 267, "key": "B", "path": "coldplay/yellow", "spotifyUrl": "https://open.spotify.com/track/3AJwUDP919kvQ9QcozQPxg", "title": "Yellow", "url": "https://songbpm.com/@coldplay/yellow" }, { "amazonUrl": "https://www.amazon.com/s?k=Coldplay+-+Yellow&i=digital-music&tag=songbpm-20", "appleUrl": "https://geo.music.apple.com/us/album/yellow/1122782080?i=1122782283&at=11l4DB&app=music", "artist": "Coldplay", "artworkUrl": "https://i.scdn.co/image/ab67616d0000b27383580914326a689d622ab4f2", "bpm": 173, "durationSec": 267, "key": "B", "path": "coldplay/yellow-f34d7a67-bf7f-405d-898e-e7f78e85e021", "spotifyUrl": "https://open.spotify.com/track/3e0wYnFxkqinmtXebYPMSt", "title": "Yellow", "url": "https://songbpm.com/@coldplay/yellow-f34d7a67-bf7f-405d-898e-e7f78e85e021" } ], "meta": { "cached": false, "endpoint": "search", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "songbpm", "requestId": "req_2Xb9kQ…", "units": 1 } }
song
GET
/v1/songbpm/songOne song's page: its tempo, key, length, title, artist and streaming links.
scope social:read1 unitcached 24 h
Parameters
pathstring required | Song path from the site, artist and song slugs joined by a slash, such as coldplay/yellow. e.g. coldplay/yellow |
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
11 fields
amazonUrl | string |
appleUrl | string |
artist | string |
artworkUrl | string |
bpm | integer (int64) |
durationSec | integer (int64) |
key | string |
path | string |
spotifyUrl | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/songbpm/song?path=coldplay%2Fyellow" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/songbpm/song?path=coldplay%2Fyellow", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/songbpm/song?path=coldplay%2Fyellow", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "amazonUrl": "https://www.amazon.com/s?k=Coldplay+-+Yellow&i=digital-music&tag=songbpm-20", "appleUrl": "https://geo.music.apple.com/us/album/yellow/1122782080?i=1122782283&at=11l4DB&app=music", "artist": "Coldplay", "artworkUrl": "", "bpm": 173, "durationSec": 267, "key": "B", "path": "coldplay/yellow", "spotifyUrl": "https://open.spotify.com/track/3AJwUDP919kvQ9QcozQPxg", "title": "Yellow", "url": "https://songbpm.com/@coldplay/yellow" }, "meta": { "cached": false, "endpoint": "song", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "songbpm", "requestId": "req_2Xb9kQ…", "units": 1 } }
artist
GET
/v1/songbpm/artistThe songs of one artist on the site, with their tempo and key, with cursor paging.
scope social:read1 unitcached 6 hpaginated
Parameters
pathstring required | Artist slug from the site, such as coldplay. e.g. coldplay |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
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
11 fields
amazonUrl | string |
appleUrl | string |
artist | string |
artworkUrl | string |
bpm | integer (int64) |
durationSec | integer (int64) |
key | string |
path | string |
spotifyUrl | string |
title | string |
url | string |
curl "https://api.hoshime.com/v1/songbpm/artist?path=coldplay" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/songbpm/artist?path=coldplay", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/songbpm/artist?path=coldplay", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "amazonUrl": "https://www.amazon.com/s?k=Coldplay+-+1.36&i=digital-music&tag=songbpm-20", "appleUrl": "https://geo.music.apple.com/us/album/1-36/695500500?i=695500503&at=11l4DB&app=music", "artist": "Coldplay", "artworkUrl": "https://i.scdn.co/image/ab67616d0000b27340b57befa24e9fe0e888f4a1", "bpm": 137, "durationSec": 126, "key": "C♯/D♭", "path": "coldplay/1.36", "spotifyUrl": "https://open.spotify.com/track/7fSFdF4ymvjiOIr1EzB2pu", "title": "1.36", "url": "https://songbpm.com/@coldplay/1.36" }, { "amazonUrl": "https://www.amazon.com/s?k=Coldplay+-+2000+Miles&i=digital-music&tag=songbpm-20", "appleUrl": "https://geo.music.apple.com/us/album/2000-miles/1312929633?i=1312930360&at=11l4DB&app=music", "artist": "Coldplay", "artworkUrl": "https://i.scdn.co/image/ab67616d0000b273220adaed034222cf569cc3b3", "bpm": 118, "durationSec": 196, "key": "G", "path": "coldplay/2000-miles", "spotifyUrl": "https://open.spotify.com/track/5v1SC5d3F8VHwqkXx53f7d", "title": "2000 Miles", "url": "https://songbpm.com/@coldplay/2000-miles" } ], "meta": { "cached": false, "endpoint": "artist", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "songbpm", "requestId": "req_2Xb9kQ…", "units": 1 } }
artists
GET
/v1/songbpm/artistsThe artists of the site's index, optionally those starting with one letter, with cursor paging.
scope social:read1 unitcached 24 hpaginated
Parameters
letterstring | First letter of the artist name. Omit it for the whole index.abcdefghijklmnopqrstuvwxyze.g. c |
cursorstring | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
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
4 fields
artworkUrl | string |
name | string |
path | string |
url | string |
curl "https://api.hoshime.com/v1/songbpm/artists?letter=c" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/songbpm/artists?letter=c", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/songbpm/artists?letter=c", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "artworkUrl": "https://i.scdn.co/image/ab67616d0000b273f7dc27b7ef4bf83f5c7a1e0e", "name": "大C", "path": "c", "url": "https://songbpm.com/@c" }, { "artworkUrl": "https://i.scdn.co/image/ab67616d0000b2731e2a9521975e9abba59c09ff", "name": "C.", "path": "c-", "url": "https://songbpm.com/@c-" } ], "meta": { "cached": false, "endpoint": "artists", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "songbpm", "requestId": "req_2Xb9kQ…", "units": 1 } }