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
| Name | Type | Description |
|---|---|---|
| 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 https://cotlet.dev/api/v1/discogs/releases/search \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("discogs", "search_releases") const result = await cotlet.call('discogs', 'search_releases'); cotlet call discogs search_releases Example response
{
"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
}