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": [
2728679573270
]
}
Response
{
"itemStatsForIds": {
"entries": [
{
"id": 8610557923241,
"audioPreviewsCount": 42,
"listingsCount": 42,
"createdAt": 1737092843842,
"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. |