itemStatsForIds Query
Description
Retrieves statistics for multiple items identified by their IDs, including audio preview count, listings count, and creation information.
query itemStatsForIds($ids: [Long!]!) {
itemStatsForIds(ids: $ids) {
entries {
id
audioPreviewsCount
listingsCount
createdAt
createdBy
}
}
}
Variables
{
"ids": [
8276171057102
]
}
Response
{
"itemStatsForIds": {
"entries": [
{
"id": 9753081740961,
"audioPreviewsCount": 42,
"listingsCount": 42,
"createdAt": 1758572161896,
"createdBy": "example"
}
]
}
}
Arguments
| Name | Type | Description |
|---|---|---|
ids | [Long!]! | Discogs release IDs to get statistics for. Not our own item ids: those are strings since the id migration, and this stays Long because a Discogs id is a number. |