discogsSearch Query
Description
Searches the Discogs database for releases matching the search term.
query discogsSearch($term: String!, $type: String) {
discogsSearch(term: $term, type: $type) {
results {
thumb
title
country
uri
catno
year
resource_url
type
id
genre
label
format
style
}
pagination {
limit
count
page
pages
hasMore
}
}
}
Variables
{
"term": "term",
"type": "type"
}
Response
{
"discogsSearch": {
"results": [
{
"thumb": "example",
"title": "example",
"country": "example",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"catno": "example",
"year": "example",
"resource_url": "example",
"type": "example",
"id": 8418747475420,
"genre": [
"example"
],
"label": [
"example"
],
"format": [
"example"
],
"style": [
"example"
]
}
],
"pagination": {
"limit": 20,
"count": 10,
"page": 1,
"pages": 1,
"hasMore": true
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
term | String! | Search term to query the Discogs database. |
type | String | Type of item to search for, typically "release". |