Spotify

Search tracks, albums, and artists on Spotify. Returns metadata + 30s preview URLs. Full audio is DRM-protected.

4 endpoints57 calls4/4 passing
Get API key

Search the catalog by text query.

GET/v1/…spotify/search
passing · 1.0s5m cache

Try it

Checking your keys…

Parameters

q

string · query · required

Search query.

type

enum · query · optional

Filter: track|album|artist|all. Default all.

page

number · query · optional

Page 1-based, 20 items per page. Default 1.

Example response

{"project":"music:spotify",  "data": {"page":1,"count":20,    "items": [      {"uri":"spotify:track:0VjIjW4GlUZAMYd2vXMi3b","url":"https://open.spotify.com/track/0VjIjW4GlUZAMYd2vXMi3b","album":"After Hours","image":"https://i.scdn.co/image/ab67616d00001e028863bc11d2aa12b54f5aeb36","title":"Blinding Lights","artist":"The Weeknd","trackId":"0VjIjW4GlUZAMYd2vXMi3b","albumUri":"spotify:album:4yP0hdKOZPNshxUOjY0cZj","playable":true,        "artistIds": [          "1Xyo4u8uXC1ZmMpatF05PJ"        ],"durationMs":200040      },      {"uri":"spotify:track:6qYkmqFsXbj8CQjAdbYz07","url":"https://open.spotify.com/track/6qYkmqFsXbj8CQjAdbYz07","album":"Blinding Lights","image":"https://i.scdn.co/image/ab67616d00001e02a3eff72f62782fb589a492f9","title":"Blinding Lights","artist":"The Weeknd","trackId":"6qYkmqFsXbj8CQjAdbYz07","albumUri":"spotify:album:3sL9Myf7JF1k9TbrXE46ou","playable":true,        "artistIds": [          "1Xyo4u8uXC1ZmMpatF05PJ"        ],"durationMs":200045      },      {"uri":"spotify:track:3KkXRkHbMCARz0aVfEt68P","url":"https://open.spotify.com/track/3KkXRkHbMCARz0aVfEt68P","album":"Spider-Man: Into the Spider-Verse (Soundtrack From & Inspired by the Motion Picture)","image":"https://i.scdn.co/image/ab67616d00001e02e2e352d89826aef6dbd5ff8f","title":"Sunflower - Spider-Man: Into the Spider-Verse","artist":"Post Malone, Swae Lee","trackId":"3KkXRkHbMCARz0aVfEt68P","albumUri":"spotify:album:35s58BRTGAEWztPo9WqCIs","playable":true,        "artistIds": [          "246dkjvS1zLTtiykXe5h60",          "1zNqQNIdeOUZHb8zbZRFMX"        ],"durationMs":158040      }    ],"total":1000,"hasMore":true,"nextPage":2  },"timestamp":"2026-05-27T13:27:15Z"}

Errors

  • 401Missing or invalid x-api-key
  • 404Not found or private
  • 429Rate limit or monthly quota reached

Code

const data = await client.run(  "music:spotify",  "search",  { q: "blinding lights", type: "track", page: 1 });