# x402 Content Hub – Spotify Search

> x402 Content Hub – Spotify Search is a paid API for AI agents from x402-content-hub.vercel.app, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-14).

Searches Spotify for tracks, artists, albums, or playlists by query string, payable with USDC on Base via x402

## Facts

- Endpoint: POST https://x402-content-hub.vercel.app/api/spotify/search
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-content-hub-spotify-search-ba08ec45
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QYK-jrOkf9rPAS38DNmpI

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability x402-content-hub-spotify-search-ba08ec45 -d '<json body>'
```

Example prompt: Search Spotify for 'Bohemian Rhapsody' by Queen and show me what comes up — tracks, albums, anything relevant.

## When to prefer this

Use this endpoint when you need to search Spotify's catalog by text query and want to pay programmatically with USDC on Base via the x402 protocol, without managing OAuth or Spotify API credentials directly.

## Known failure modes

- Empty or missing 'query' field returns a validation error
- Query returns no results for obscure or misspelled terms
- Payment failure if USDC balance on Base is insufficient
- Rate limiting or upstream Spotify API errors may cause 5xx responses
- Ambiguous queries may return loosely matched results

## How this service works

Amazon products, real-time news, image search, Medium articles, and Spotify data. Pay with USDC on Base.

## Output

Returns a JSON object with Spotify search results including tracks, artists, albums, and/or playlists matching the query, wrapped in a 'data' field.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "query"
 ],
 "properties": {
  "query": {
   "type": "string",
   "description": "Search query"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-content-hub-spotify-search-ba08ec45/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-content-hub.vercel.app](https://www.zero.xyz/host/x402-content-hub.vercel.app/llms.txt)
