AgentAPIGate
Back to Catalog
GET /v1/music/spotify/searchPack: social·MCP Tool: music_spotify_search

Spotify Catalog Search (Tracks, Artists, Albums & Podcasts)

Search Spotify catalog across tracks, artists, albums, and podcasts by keyword with normalized IDs, artist credits, and URLs.

API Key Price:$0.0030 / call
x402 Base USDC:$0.0030 / call
Partner Credit:paid_usd / x402 only
1. Parameters & Controls
Artist, track, album, or podcast search query
Max items per category (1-20)
Get $0.25 Free Key →
curl -sG "https://api.agentapigate.ai/v1/music/spotify/search" \
  --data-urlencode "query=daft punk" \
  --data-urlencode "limit=10" \
  --data-urlencode "format=md" \
  -H "Authorization: Bearer aag_live_YOUR_KEY" \
  -H "X-AAG-Max-Cost: 0.0100"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-74% tokens
# Spotify Catalog Search (Tracks, Artists, Albums & Podcasts) (`music.spotify.search`)
**query**: daft punk

## tracks
- [1] id: 0DiWol3AO6WpXZgp0goxAV, name: One More Time, album_name: Discovery, url: https://open.spotify.com/track/0DiWol3AO6WpXZgp0goxAV
- [2] id: 5W3cjX2J3tjhG8zb6u0qHn, name: Harder, Better, Faster, Stronger, album_name: Discovery, url: https://open.spotify.com/track/5W3cjX2J3tjhG8zb6u0qHn
- [3] id: 69kOkLUCkxIZYexIgSG8rq, name: Get Lucky (feat. Pharrell Williams and Nile Rodgers), album_name: Random Access Memories, url: https://open.spotify.com/track/69kOkLUCkxIZYexIgSG8rq
- [4] id: 2cGxRwrMyEAp8dEbuZaVv6, name: Instant Crush (feat. Julian Casablancas), album_name: Random Access Memories, url: https://open.spotify.com/track/2cGxRwrMyEAp8dEbuZaVv6
- [5] id: 1pKYYY0dkg23sQQXi0Q5zN, name: Around the World, album_name: Homework, url: https://open.spotify.com/track/1pKYYY0dkg23sQQXi0Q5zN
- [6] id: 2LD2gT7gwAurzdQDQtILds, name: Veridis Quo, album_name: Discovery, url: https://open.spotify.com/track/2LD2gT7gwAurzdQDQtILds
- [7] id: 7MXVkk9YMctZqd1Srtv4MB, name: Starboy, album_name: Starboy, url: https://open.spotify.com/track/7MXVkk9YMctZqd1Srtv4MB
- [8] id: 09TlxralXOGX35LUutvw7I, name: End of Line, album_name: TRON: Legacy - The Complete Edition (Original Motion Picture Soundtrack), url: https://open.spotify.com/track/09TlxralXOGX35LUutvw7I
- [9] id: 1NeLwFETswx8Fzxl2AFl91, name: Something About Us, album_name: Discovery, url: https://open.spotify.com/track/1NeLwFETswx8Fzxl2AFl91
- [10] id: 2Foc5Q5nqNiosCNqttzHof, name: Get Lucky (Radio Edit) [feat. Pharrell Williams and Nile Rodgers], album_name: Get Lucky (Radio Edit) [feat. Pharrell Williams and Nile Rodgers], url: https://open.spotify.com/track/2Foc5Q5nqNiosCNqttzHof
## artists
- [1] id: 4tZwfgrHOc3mvqYlEYSvVi, name: Daft Punk, verified: true, url: https://open.spotify.com/artist/4tZwfgrHOc3mvqYlEYSvVi
- [2] id: 4q3ewBCX7sLwd24euuV69X, name: Bad Bunny, verified: true, url: https://open.spotify.com/artist/4q3ewBCX7sLwd24euuV69X
- [3] id: 5INjqkS1o8h1imAzPqGZBb, name: Tame Impala, verified: true, url: https://open.spotify.com/artist/5INjqkS1o8h1imAzPqGZBb
- [4] id: 1gR0gsQYfi6joyO1dlp76N, name: Justice, verified: true, url: https://open.spotify.com/artist/1gR0gsQYfi6joyO1dlp76N
- [5] id: 2CIMQHirSU0MQqyYHq0eOx, name: deadmau5, verified: true, url: https://open.spotify.com/artist/2CIMQHirSU0MQqyYHq0eOx
- [6] id: 1Cs0zKBU1kc0i8ypK3B9ai, name: David Guetta, verified: true, url: https://open.spotify.com/artist/1Cs0zKBU1kc0i8ypK3B9ai
- [7] id: 2RdwBSPQiwcmiDo9kixcl8, name: Pharrell Williams, verified: true, url: https://open.spotify.com/artist/2RdwBSPQiwcmiDo9kixcl8
- [8] id: 066X20Nz7iquqkkCW6Jxy6, name: LCD Soundsystem, verified: true, url: https://open.spotify.com/artist/066X20Nz7iquqkkCW6Jxy6
- [9] id: 2qxJFvFYMEDqd7ui6kSAcq, name: Zedd, verified: true, url: https://open.spotify.com/artist/2qxJFvFYMEDqd7ui6kSAcq
- [10] id: 5fMUXHkw8R8eOP2RNVYEZX, name: Diplo, verified: true, url: https://open.spotify.com/artist/5fMUXHkw8R8eOP2RNVYEZX
## albums
- [1] id: 2noRn2Aes5aoNVsU6iWThc, name: Discovery, artist_name: Daft Punk, release_date: 2001, url: https://open.spotify.com/album/2noRn2Aes5aoNVsU6iWThc
- [2] id: 4m2880jivSbbyEGAKfITCa, name: Random Access Memories, artist_name: Daft Punk, release_date: 2013, url: https://open.spotify.com/album/4m2880jivSbbyEGAKfITCa
- [3] id: 7u6zL7kqpgLPISZYXNTgYk, name: Alive 2007, artist_name: Daft Punk, release_date: 2007, url: https://open.spotify.com/album/7u6zL7kqpgLPISZYXNTgYk
- [4] id: 3AMXFnwHWXCvNr5NCCpLZI, name: TRON: Legacy - The Complete Edition (Original Motion Picture Soundtrack), artist_name: Daft Punk, release_date: 2010, url: https://open.spotify.com/album/3AMXFnwHWXCvNr5NCCpLZI
- [5] id: 5uRdvUR7xCnHmUW8n64n9y, name: Homework, artist_name: Daft Punk, release_date: 1997, url: https://open.spotify.com/album/5uRdvUR7xCnHmUW8n64n9y
- [6] id: 0bHuuhpKn42ktYbyTIeumE, name: One More Time, artist_name: Daft Punk, release_date: 2000, url: https://open.spotify.com/album/0bHuuhpKn42ktYbyTIeumE
- [7] id: 1A2GTWGtFfWp7KSQTwWOyo, name: Human After All, artist_name: Daft Punk, release_date: 2005, url: https://open.spotify.com/album/1A2GTWGtFfWp7KSQTwWOyo
- [8] id: 4TaKGJaappn4hWMuLdwUEF, name: Around the World, artist_name: Daft Punk, release_date: 1997, url: https://open.spotify.com/album/4TaKGJaappn4hWMuLdwUEF
- [9] id: 03zCtZ99F9eLZCDYADqvy8, name: Harder, Better, Faster, Stronger, artist_name: Daft Punk, release_date: 2001, url: https://open.spotify.com/album/03zCtZ99F9eLZCDYADqvy8
- [10] id: 4mAhdh996uW5SnnFKXUmC0, name: Random Access Memories (10th Anniversary Edition), artist_name: Daft Punk, release_date: 2023, url: https://open.spotify.com/album/4mAhdh996uW5SnnFKXUmC0

Endpoint Parameters, Cost & Token Economy Reference

Endpoint ID: music.spotify.search · Method: GET
ParameterTypeReqSample / DefaultDescription
querystringrequireddaft punkArtist, track, album, or podcast search query
limitnumberoptional10Max items per category (1-20)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0030 / call$0/mo · Balance never expires
Remote MCP Toolmusic_spotify_searchOAuth 2.1 Hub & /mcp/social
x402 Base USDC$0.0030 / callZero-signup USDC enabled
P50 Latency4158 ms$0 billed on empty or 4xx/5xx
Token Economy4937t → 1294t (-74%)Partner credit: paid_usd / x402

More music.spotify Sibling Endpoints

Frequently Asked Questions

How do I call Spotify Catalog Search (Tracks, Artists, Albums & Podcasts) (music.spotify.search) over REST and Remote MCP?

Send GET requests to https://api.agentapigate.ai/v1/music/spotify/search with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool music_spotify_search on https://mcp.agentapigate.ai/mcp.

What does music.spotify.search cost per call and are failed calls billed?

Each successful HTTP 200 response costs $0.003 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.

How does ?format=md or ?format=compact optimize AI agent token usage on music.spotify.search?

Passing ?format=md transforms the response into normalized Markdown (~1294 tokens vs ~4937 raw tokens, saving 74% of LLM context budget) while preserving structured JSON via ?format=json.

Can I restrict an AI agent key to only social endpoints with a daily USD cap?

Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["social"], optional allowed_endpoints: ["music.spotify.search"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.