Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

Spotify Play Count

เอกสาร API
https://api.sandbase.ai/v1/api/spotify/play-count

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

ราคา
เริ่มต้นที่ $0.0022USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 0 ไม่บังคับ

Playground

อินพุต
Spotify track, album, or artist URL to fetch stream counts for (e.g. https://open.spotify.com/track/3n3Ppam7vgaVa1iaRUc9Lp).
เอาต์พุตพร้อมใช้งาน

เอาต์พุตของคุณจะแสดงที่นี่

กรอกอินพุตให้ครบ แล้วคลิก Run

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.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
Spotify Play CountAPI นี้
Spotify
เริ่มต้นที่ $0.0022 ต่อครั้งJSON
Spotifyเริ่มต้นที่ $0.0012 ต่อครั้งJSON
Spotifyเริ่มต้นที่ $0.0012 ต่อครั้งJSON
Spotifyเริ่มต้นที่ $0.0012 ต่อครั้งJSON
Spotifyเริ่มต้นที่ $0.0012 ต่อครั้งJSON
Spotifyเริ่มต้นที่ $0.0012 ต่อครั้งJSON

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ Spotify Play Count API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/spotify/play-count โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

Spotify Play Count API ราคาเท่าไร?

เริ่มต้นที่ $0.0022 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน

Spotify Play Count API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: url (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

Spotify Play Count API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส)

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ Spotify ไหม?

ไม่จำเป็น Spotify Play Count ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Spotify API แยกต่างหาก