Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

Spotify Play Count

API dokümanları
https://api.sandbase.ai/v1/api/spotify/play-count

Fetch stream counts and stats for a Spotify track, album, or artist URL.

Fiyat
Başlangıç fiyatı $0.0022USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 0 isteğe bağlı

Oynatma Alanı

Girdi
Spotify track, album, or artist URL to fetch stream counts for (e.g. https://open.spotify.com/track/3n3Ppam7vgaVa1iaRUc9Lp).
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

Spotify Play Count API

Fetch stream counts and stats for a Spotify track, album, or artist URL.

Request

curl -X POST "https://api.sandbase.ai/v1/run" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "spotify/play-count", "url": "https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT"}'

The result is returned in outputs[0].data. Lookups that find nothing fail with a not-found error.

Parameters

NameTypeRequiredDescription
urlstringYesSpotify track, album, or artist URL to fetch stream counts for (e.g. https://open.spotify.com/track/3n3Ppam7vgaVa1iaRUc9Lp).

Pricing

Billed at the actual cost of each call: about $0.0022 per result returned, up to $0.0022 per request (about $0.0022 for the request above). 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.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
SpotifyKullanım başına $0.0022'den itibarenJSON
SpotifyKullanım başına $0.0012'den itibarenJSON
SpotifyKullanım başına $0.0012'den itibarenJSON
SpotifyKullanım başına $0.0012'den itibarenJSON
SpotifyKullanım başına $0.0012'den itibarenJSON
SpotifyKullanım başına $0.0012'den itibarenJSON

Sorular

SSS

Spotify Play Count API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/spotify/play-count adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

Spotify Play Count API'sinin fiyatı nedir?

çağrı başına $0.0022'dan başlayan, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.

Spotify Play Count API'si hangi parametreleri kabul eder?

Gerekli: url (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

Spotify Play Count API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron).

Bir Spotify geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. Spotify Play Count, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. Spotify API erişimi için ayrıca başvuru yapmanız gerekmez.