Search releases

Search the Discogs database by artist, title, catalog number or barcode.

GET https://cotlet.dev/api/v1/discogs/releases/search

read

Returns matching releases with ID, title, year, format and label, Pass the ID to get_release. A catalog number or barcode narrows the result to the exact pressing, which a title search cannot do.

Parameters

Parameters: search_releases
NameTypeDescription
query string string Free text, for example an artist and a title.
catalog_number string string Catalog number as printed on the record.
barcode string string Barcode from the sleeve.
page integer integer Page number, starting at 1.

Request

cURL
curl https://cotlet.dev/api/v1/discogs/releases/search \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("discogs", "search_releases")
Node.js
const result = await cotlet.call('discogs', 'search_releases');
CLI
cotlet call discogs search_releases

Example response

JSON

{
  "results": [
    {
      "release_id": 4417820,
      "title": "The Sample Quartet - Night Drive / Blue Room",
      "year": 1998,
      "format": "12\", 33 RPM",
      "label": "Example Records"
    }
  ],
  "page": 1,
  "pages": 1
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.