Skip to main content

itemArtists Query

Description

Searches for item artists by term with pagination. Artists are associated with release items and are identified by Discogs artist IDs.

query itemArtists($term: String, $page: Int, $limit: Int) {
itemArtists(term: $term, page: $page, limit: $limit) {
artists {
id
name
}
pagination {
limit
count
page
pages
hasMore
}
}
}

Variables

{
"term": "term",
"page": 1,
"limit": 20
}

Response

{
"itemArtists": {
"artists": [
{
"id": 3367810697867,
"name": "example"
}
],
"pagination": {
"limit": 20,
"count": 10,
"page": 1,
"pages": 1,
"hasMore": true
}
}
}

Arguments

NameTypeDescription
termStringSearch term to match against artist names.
pageIntThe requested page number. Defaults to 1 if not specified.
limitIntNumber of artists per page. You can request a specific page size, and it will be used if it does not exceed the server-enforced maximum. If your requested size exceeds the maximum, the server will enforce the maximum limit.

Returns

ItemArtistsResult!