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.
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 <= x <= 1000