# MusicBrainz Disc ID Lookup API

Get MusicBrainz Disc ID data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as discid, output, and retrieve structured data including resolved disc identifier, CD track offsets, disc sector count, candidate release MBID, and candidate release name for library matching, and catalogue enrichment.

Documentation: https://openany.si/market/apis/musicbrainz/musicbrainz-disc-id-lookup-api/?offering=a621913c-a6ab-40d8-9b87-e01e77b7ed1f
API ID: a621913c-a6ab-40d8-9b87-e01e77b7ed1f
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/musicbrainz/v1/discid
Page update time: 2026-12-03T02:44:46.666Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:44:45.541Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits consumed",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "MusicBrainz Disc ID Lookup API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "discid": {
          "type": "string",
          "description": "MusicBrainz disc id (28 characters)."
        },
        "toc": {
          "type": "string",
          "description": "Table of contents instead of (or with) a disc id: first track, last track, lead-out offset and each track offset, separated by spaces or +."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. Omit output or use json; CSV and NDJSON exports are not exposed.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "Native CSV/NDJSON record selector; it has no effect on this JSON-only product."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "discid": {
      "type": "string"
    },
    "offset_count": {
      "type": "integer"
    },
    "offsets": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "integer"
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "releases": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "artist": {
                "type": "string"
              },
              "artists": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "credited_as": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "join": {
                      "type": "null"
                    },
                    "name": {
                      "type": "string"
                    }
                  }
                }
              },
              "barcode": {
                "type": "string"
              },
              "country": {
                "type": "string"
              },
              "cover_art": {
                "type": "string"
              },
              "date": {
                "type": "string"
              },
              "disambiguation": {
                "type": "null"
              },
              "id": {
                "type": "string"
              },
              "labels": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "catalog_number": {
                      "type": "string"
                    },
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    }
                  }
                }
              },
              "name": {
                "type": "string"
              },
              "primary_type": {
                "type": "null"
              },
              "release_group_id": {
                "type": "null"
              },
              "score": {
                "type": "null"
              },
              "status": {
                "type": "string"
              },
              "track_count": {
                "type": "integer"
              },
              "type": {
                "type": "string"
              },
              "url": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "sectors": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/musicbrainz/v1/discid?discid=I5l9cCSFccLKFEKS.7wqSZAorPU-&output=json' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "count": 5,
  "credits_used": 1,
  "discid": "I5l9cCSFccLKFEKS.7wqSZAorPU-",
  "offset_count": 12,
  "offsets": [
    150,
    22767,
    "… 10 more"
  ],
  "releases": [
    {
      "artist": "Nirvana",
      "artists": [
        {
          "credited_as": "Nirvana",
          "id": "5b11f4ce-a62d-471e-81fc-a69a8278c7da",
          "join": null,
          "name": "Nirvana"
        }
      ],
      "barcode": "0720642442524",
      "country": "US",
      "cover_art": "https://coverartarchive.org/release/8e061dc4-790e-4587-ba53-011e7852f88d/front",
      "date": "1991-09-24",
      "disambiguation": null,
      "id": "8e061dc4-790e-4587-ba53-011e7852f88d",
      "labels": [
        {
          "catalog_number": "GED24425",
          "id": "0fadc2ce-f7de-4e27-bbe6-612b317e716b",
          "name": "Geffen"
        }
      ],
      "name": "Nevermind",
      "primary_type": null,
      "release_group_id": null,
      "score": null,
      "status": "Official",
      "track_count": 12,
      "type": "release",
      "url": "https://musicbrainz.org/release/8e061dc4-790e-4587-ba53-011e7852f88d"
    },
    {
      "artist": "Nirvana",
      "artists": [
        {
          "credited_as": "Nirvana",
          "id": "5b11f4ce-a62d-471e-81fc-a69a8278c7da",
          "join": null,
          "name": "Nirvana"
        }
      ],
      "barcode": "015775166622",
      "country": "US",
      "cover_art": "https://coverartarchive.org/release/9dce399d-3ec7-34a4-97d0-b4bac54e5f08/front",
      "date": "1996-03-12",
      "disambiguation": null,
      "id": "9dce399d-3ec7-34a4-97d0-b4bac54e5f08",
      "labels": [
        {
          "catalog_number": "UDCD 666",
          "id": "edd54e2f-2eef-46b1-a9b5-bedfe5ed33be",
          "name": "Mobile Fidelity Sound Lab"
        }
      ],
      "name": "Nevermind",
      "primary_type": null,
      "release_group_id": null,
      "score": null,
      "status": "Official",
      "track_count": 12,
      "type": "release",
      "url": "https://musicbrainz.org/release/9dce399d-3ec7-34a4-97d0-b4bac54e5f08"
    },
    "… 3 more"
  ],
  "sectors": 267257
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- apish: https://openany.si/market/apis/musicbrainz/musicbrainz-disc-id-lookup-api/?offering=a621913c-a6ab-40d8-9b87-e01e77b7ed1f

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
