# Discogs master API

Get Discogs Master data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as id, output, and retrieve structured data including discogs master identifier, master title, main release identifier, most recent release identifier, and master track metadata for library matching, and catalogue enrichment.

Documentation: https://openany.si/discogs/discogs-master-api/04a94467-0003-473b-a737-b1bd86d73d87/
API ID: 04a94467-0003-473b-a737-b1bd86d73d87
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/discogs/v1/master
Page update time: 2026-12-03T02:44:46.607Z
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.
Contract update time: 2026-12-03T02:44:45.188Z. 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": []
  }
}
```

## Usage and limits
## Discogs Master API

id selects a master record that groups release versions. main\_release and most\_recent\_release identify particular releases; use Master Versions for the broader version list. Tracklist and genres describe catalogue content, while available marketplace counters are separate from OpenAny API pricing.

## What You Can Build

- **Library matching**: Keep resource types and source identifiers when matching entries across a music library.
- **Catalogue enrichment**: Use the returned metadata and source links to enrich a catalogue record without assuming media-playback or reuse rights.

## Returned Data

| Field | Meaning |
| --- | --- |
| `id` | Discogs master identifier |
| `title` | Master title |
| `main_release` | Main release identifier |
| `most_recent_release` | Most recent release identifier |
| `tracklist` | Master track metadata |
| `genres` | Source genre labels |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Discogs master 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": {
        "id": {
          "type": "string",
          "description": "Master id or a discogs.com/master/<id> link."
        },
        "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."
        }
      },
      "required": [
        "id"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "artists": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "anv": {
            "type": "string"
          },
          "id": {
            "type": "integer"
          },
          "join": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "resource_url": {
            "type": "string"
          },
          "role": {
            "type": "string"
          },
          "thumbnail_url": {
            "type": "string"
          },
          "tracks": {
            "type": "string"
          }
        }
      }
    },
    "cached": {
      "type": "boolean"
    },
    "credits_used": {
      "type": "integer"
    },
    "data_quality": {
      "type": "string"
    },
    "genres": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "id": {
      "type": "integer"
    },
    "lowest_price": {
      "type": "number"
    },
    "main_release": {
      "type": "integer"
    },
    "most_recent_release": {
      "type": "integer"
    },
    "num_for_sale": {
      "type": "integer"
    },
    "styles": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "title": {
      "type": "string"
    },
    "tracklist": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "duration": {
                "type": "string"
              },
              "position": {
                "type": "string"
              },
              "title": {
                "type": "string"
              },
              "type_": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "url": {
      "type": "string"
    },
    "videos": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "type": "object",
            "properties": {
              "description": {
                "type": "string"
              },
              "duration": {
                "type": "integer"
              },
              "embed": {
                "type": "boolean"
              },
              "title": {
                "type": "string"
              },
              "uri": {
                "type": "string"
              }
            }
          },
          {
            "type": "string"
          }
        ]
      }
    },
    "year": {
      "type": "integer"
    }
  }
}
```

## Request example
Scenario: Official example · Official documentation response · Supplier-tr
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/discogs/v1/master?id=42473&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
{
  "artists": [
    {
      "anv": "",
      "id": 125246,
      "join": "",
      "name": "Nirvana",
      "resource_url": "https://api.discogs.com/artists/125246",
      "role": "",
      "thumbnail_url": "https://i.discogs.com/OpnVfYmSBkHggQtUt8tZ0X4Q1B84EltALtW-5H9U7XU/rs:fit/g:sm/q:90/h:600/w:591/czM6Ly9kaXNjb2dz/LWRhdGFiYXNlLWlt/YWdlcy9BLTE…",
      "tracks": ""
    }
  ],
  "cached": false,
  "credits_used": 1,
  "data_quality": "Correct",
  "genres": [
    "Rock"
  ],
  "id": 42473,
  "lowest_price": 0.85,
  "main_release": 367273,
  "most_recent_release": 37677405,
  "num_for_sale": 797,
  "styles": [
    "Grunge"
  ],
  "title": "From The Muddy Banks Of The Wishkah",
  "tracklist": [
    {
      "duration": "0:52",
      "position": "1",
      "title": "Intro",
      "type_": "track"
    },
    {
      "duration": "2:40",
      "position": "2",
      "title": "School",
      "type_": "track"
    },
    "… 15 more"
  ],
  "url": "https://www.discogs.com/master/42473-Nirvana-From-The-Muddy-Banks-Of-The-Wishkah",
  "videos": [
    {
      "description": "Provided to YouTube by Universal Music Group\n\nIntro (Live At London Astoria, UK, December 3, 1989) · Nirvana\n\nFrom The Muddy Banks Of The Wi…",
      "duration": 53,
      "embed": true,
      "title": "Intro (Live At London Astoria, UK, December 3, 1989)",
      "uri": "https://www.youtube.com/watch?v=ZZq2phHrpqI"
    },
    {
      "description": "Provided to YouTube by Universal Music Group\n\nSchool (Live In Amsterdam, Netherlands/1991) · Nirvana\n\nFrom The Muddy Banks Of The Wishkah\n\n℗…",
      "duration": 161,
      "embed": true,
      "title": "School (Live In Amsterdam, Netherlands/1991)",
      "uri": "https://www.youtube.com/watch?v=Ju1guyt3IW0"
    },
    "… 28 more"
  ],
  "year": 1996
}
```

## 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.

## Common questions
### Is a master ID a release ID?
No. A master groups release versions; releases identify particular editions.

### How do I list release versions?
Use Master Versions with this master ID.

### Does the tracklist include audio files?
No. It contains track metadata, not audio bytes.

### Is lowest_price the API call price?
No. It is source marketplace metadata and is separate from the selected OpenAny implementation’s pricing.

### How do I bypass cached results?
Pass fresh=1. A cache bypass retrieves available source data; it does not make unpublished or restricted records available.

### Can I request CSV or NDJSON?
This OpenAny implementation serves JSON only. Omit output or set output=json.

## Available implementations
- apish: https://openany.si/discogs/discogs-master-api/04a94467-0003-473b-a737-b1bd86d73d87/

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