idstring
Spotify album ID (alternative to url).
https://api.sandbase.ai/v1/api/spotify/albumFetch a Spotify album's tracklist, play counts, label, and release details by album URL or ID.
Output Anda akan muncul di sini
Lengkapi input, lalu klik Run.
Fetch a Spotify album's tracklist, play counts, label, and release details by album URL or ID.
curl -X POST "https://api.sandbase.ai/v1/run" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "spotify/album", "url": "https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG"}'
The result is returned in outputs[0].data. Lookups that find nothing fail with a not-found error.
| Name | Type | Required | Description |
|---|---|---|---|
id | string | No | Spotify album ID (alternative to url). |
url | string | No | Spotify album URL (e.g. https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG). |
Billed at the actual cost of each call, about $0.0012 per request. A call can cost more when the first data source fails and another one answers. Failed calls and lookups that find nothing are not charged.
Mulai membangun
Endpoint API platform dengan autentikasi dan pelacakan penggunaan terpadu.
curl -X POST "https://api.sandbase.ai/v1/api/spotify/album" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG"
}'Atur SandBase API key Anda di environment server Anda. Permintaan menggunakan autentikasi Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Simpan key Anda di server. Jangan tampilkan di kode browser.
idstringSpotify album ID (alternative to url).
urlstringSpotify album URL (e.g. https://open.spotify.com/album/0pgrg7phBbnwGJ2HBEl9EG).
Contoh respons yang disimpan untuk API ini; tidak ada permintaan langsung yang dibuat saat melihatnya.
Belum ada respons tersimpan yang dipublikasikan. Jalankan API di Playground untuk melihat responsnya.
Jelajahi lebih lanjut
| API | Harga | Respons |
|---|---|---|
Spotify AlbumAPI ini Spotify | Dari $0.0012 per panggilan | JSON |
Spotify | Dari $0.0012 per panggilan | JSON |
Spotify | Dari $0.0022 per panggilan | JSON |
Spotify | Dari $0.0012 per panggilan | JSON |
Spotify | Dari $0.0012 per panggilan | JSON |
Spotify | Dari $0.0012 per panggilan | JSON |
Pertanyaan
Kirim permintaan POST ke https://api.sandbase.ai/v1/api/spotify/album dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.
Mulai dari $0.0012 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.
Tidak ada parameter yang wajib. Opsional: id (string) dan url (string). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.
Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron).
Tidak. Spotify Album berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Spotify secara terpisah.