Fetch item stats

Calculate usage metrics for an item.

GET https://api.jsonpad.io/lists/{listId}/items/{itemId}/stats

Example

cURL
12curl https://api.jsonpad.io/lists/7a75559a-8e94-4139-85e9-17b1af5436ac/items/d8c76286-f56c-43ab-b37a-0206da36a5f7/stats \ -H "x-api-token: <YOUR TOKEN>"

Parameters

  • required
    listIdstringA list id or path name.
  • required
    itemIdstringAn item id or alias.
  • optional
    daysnumberhttps://api.jsonpad.io/lists/ff55d0f0-7566-4567-9873-711d6fbfa7b0/items/ca2afc07-f5c8-43c3-a60d-27f1ffe904de/stats?days=7The number of days to collect stats for. The default value is 7 and the maximum is 90.

Request headers

  • required
    x-api-tokenstringYour API token.
  • optional
    x-identity-tokenstringAn identity token.
  • optional
    x-identity-groupstringAn identity group.

Request body

No request body

Response body

200 OK
{
events: {
total: 4
totalThisPeriod: 4
metrics: [
0: {
date: "2026-09-21T21:08:20.595Z"
count: 3
types: {
item-created: 2
item-updated: 1
}
}
1: {
date: "2026-09-22T21:08:20.595Z"
count: 1
types: {
item-updated: 1
}
}
2: {
date: "2026-09-23T21:08:20.595Z"
count: 0
types: {
}
}
]
}
}
  • eventsobjectEvent metrics for this item.
    Events attributes
    • totalnumberThe total number of events for this item.
    • totalThisPeriodnumberThe total number of events for this item during the requested period.
    • metricsarrayA list of metrics objects for each day in the requested period.
    • metrics[].datestringThe date of this metrics entry in ISO 8601 format.
    • metrics[].countnumberThe total number of events on this date.
    • metrics[].typesobject

      The total number of events on this date, broken down by type.

Response headers

No response headers

2024-10-29