REST API v1.0
Spotify
Download API
Search, get info, and download Spotify tracks as MP3. Powered by Spotidown with automatic Cloudflare bypass.
~10s
Avg Response
Auto
CF Bypass
MP3
Format
Free
No Auth
GET
/search
Search Tracks
Cari lagu berdasarkan keyword. Return list of tracks dengan title, artist, cover, dan download URL.
Parameters
q
required
Search keyword — nama lagu, artis, atau album
limit
optional
Max results. Default: 10, Max: 20
Example Request
GET https://cf.spotify.hfcx.site/search?q=never gonna give you up&limit=5
Response
{
"status": true,
"query": "never gonna give you up",
"total": 5,
"took_ms": 8432,
"results": [{
"title": "Never Gonna Give You Up",
"artist": "Rick Astley",
"album": "Whenever You Need Somebody",
"duration": "3:33",
"cover": "https://i.scdn.co/image/...",
"download_url": "https://cf.spotify.hfcx.site/download?url=...",
"stream_url": "https://cf.spotify.hfcx.site/stream?url=..."
}]
}
Try it out
Query (q)
Limit
Waiting...
GET
/track
Get Track Info
Ambil detail info lagu dari Spotify URL. Return metadata lengkap beserta link download dan stream.
Parameters
url
required
Spotify track URL — https://open.spotify.com/track/xxx
Example Request
GET https://cf.spotify.hfcx.site/track?url=https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT
Response
{
"status": true,
"took_ms": 7821,
"result": {
"title": "Never Gonna Give You Up",
"artist": "Rick Astley",
"album": "Whenever You Need Somebody",
"duration": "3:33",
"cover": "https://i.scdn.co/image/...",
"download_url": "https://cf.spotify.hfcx.site/download?url=...",
"stream_url": "https://cf.spotify.hfcx.site/stream?url=..."
}
}
Try it out
Spotify URL
Waiting...
GET
/download
Download Track
Dapatkan direct download URL MP3 dari Spotify URL. Link berlaku selama beberapa menit.
Parameters
url
required
Spotify track URL — https://open.spotify.com/track/xxx
Example Request
GET https://cf.spotify.hfcx.site/download?url=https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT
Response
{
"status": true,
"took_ms": 12543,
"result": {
"title": "Never Gonna Give You Up",
"artist": "Rick Astley",
"duration": "3:33",
"cover": "https://i.scdn.co/image/...",
"download_url": "https://rapid.spotidown.app/v2?token=...",
"stream_url": "https://cf.spotify.hfcx.site/stream?url=..."
}
}
Try it out
Spotify URL
Waiting...
GET
/stream
Stream Audio
Stream audio MP3 langsung dari server. Bisa langsung dipakai sebagai src di audio player atau didownload via browser.
Parameters
url
required
Spotify track URL — https://open.spotify.com/track/xxx
Example — HTML Audio Player
<audio controls src="https://cf.spotify.hfcx.site/stream?url=https://open.spotify.com/track/xxx"></audio>
Example — Node.js Download
const response = await fetch( 'https://cf.spotify.hfcx.site/stream?url=https://open.spotify.com/track/xxx' ) const buffer = await response.arrayBuffer() fs.writeFileSync('song.mp3', Buffer.from(buffer))
Try it out
Spotify URL
Waiting...