curl --request GET \
--url https://api.example.com/api/assets/counts{
"data": [
{
"time_bucket": "2023-11-07T05:31:56Z",
"count": 123
}
],
"has_more": true
}Returns asset counts grouped by time period. Supports optional filtering by album, person, or date range. Results are ordered by time bucket descending.
Pagination: When has_more is true, pass the last time_bucket value from data as local_datetime_before to fetch the next page.
curl --request GET \
--url https://api.example.com/api/assets/counts{
"data": [
{
"time_bucket": "2023-11-07T05:31:56Z",
"count": 123
}
],
"has_more": true
}Library to count assets in (optional)
Time period to group counts by. Currently only 'month' is supported.
Filter by assets in a specific album
Filter by assets associated with a specific person ID
Only include assets with local_datetime after this value (ISO 8601). Naive values compare directly against local_datetime; timezone-aware values are converted to UTC and compared against local_datetime adjusted by its stored offset.
Only include assets with local_datetime before this value (ISO 8601). Naive values compare directly against local_datetime; timezone-aware values are converted to UTC and compared against local_datetime adjusted by its stored offset. Use the last time_bucket from a previous response to paginate.
Maximum number of time buckets to return (1-200)
1 <= x <= 200Successful Response
Time bucket and count pairs, ordered by time bucket descending
Show child attributes
True if there are more time buckets. To fetch the next page, pass the last time_bucket value as local_datetime_before (exclusive — buckets starting before that value are returned).