# MusicBrainz Lookup & Search API (x402)

> MusicBrainz Lookup & Search API (x402) is a paid API for AI agents from x402-v2-mint-musicbrainz-lookup.vercel.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-20).

Searches or looks up MusicBrainz entities (artists, releases, recordings, labels, etc.) by query or MBID, returning structured music metadata.

## Facts

- Endpoint: POST https://x402-v2-mint-musicbrainz-lookup.vercel.app/v1/musicbrainz-lookup?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/musicbrainz-lookup-search-api-x402-eebc0b5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0fPZAjLtvOJ7GIXo-lPuR

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 musicbrainz-lookup-search-api-x402-eebc0b5c -d '<json body>'
```

Example prompt: Search MusicBrainz for the artist 'Radiohead' and return up to 5 results with their MBIDs and metadata.

## When to prefer this

Choose this endpoint when you need to look up or search structured music metadata from the MusicBrainz database — particularly when you have either a natural-language query (artist name, album title, recording) or a known MBID and need entity details. Prefer this over raw MusicBrainz API access when you need a pay-per-call, x402-compatible integration without managing your own MusicBrainz credentials or rate limits. Supports all major MusicBrainz entity types including artist, release, recording, label, work, and more.

## Known failure modes

- No matching entity found for query — returns empty results array
- Invalid MBID format — malformed UUID returns error
- Unsupported entity type provided — unknown entity string returns error
- Query exceeds maxLength of 200 characters — validation error
- Offset exceeds maximum of 100 — validation error
- Payment failure via x402 — request rejected without charge
- MusicBrainz upstream timeout or rate limit — 502 or 504 error

## How this service works

MusicBrainz WS/2 lookup/search (keyless; User-Agent required; 1 req/s). entity + mbid OR query → trimmed JSON.

## Output

A JSON object with an 'ok' status flag, the skill name ('musicbrainz-lookup'), a 'charged' boolean confirming the microtransaction, a 'summary' field, and the underlying MusicBrainz entity data matching the search query or MBID lookup.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "q": {
   "type": "string",
   "maxLength": 200
  },
  "id": {
   "type": "string",
   "maxLength": 36
  },
  "inc": {
   "type": "string",
   "maxLength": 200,
   "description": "Optional includes for lookup (space/comma separated)"
  },
  "mbid": {
   "type": "string",
   "maxLength": 36,
   "description": "MusicBrainz UUID (lookup mode)"
  },
  "limit": {
   "type": "integer",
   "default": 5,
   "maximum": 25,
   "minimum": 1
  },
  "query": {
   "type": "string",
   "maxLength": 200,
   "description": "Lucene search query (search mode)"
  },
  "entity": {
   "type": "string",
   "maxLength": 32,
   "description": "artist|release|recording|release-group|work|label|area|place|annotation|tag|url|instrument|series|event"
  },
  "offset": {
   "type": "integer",
   "default": 0,
   "maximum": 100,
   "minimum": 0
  },
  "request_id": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "musicbrainz-lookup",
  "charged": true,
  "summary": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/musicbrainz-lookup-search-api-x402-eebc0b5c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-musicbrainz-lookup.vercel.app](https://www.zero.xyz/host/x402-v2-mint-musicbrainz-lookup.vercel.app/llms.txt)
