Skip to content

Get Photos day counts

GET
/api/v1/photos/timeline/buckets
curl --request GET \
--url 'https://example.com/api/v1/photos/timeline/buckets?filter=all' \
--header 'Authorization: Bearer <token>'

Requires a signed-in User. It returns days from newest to oldest with counts and the total number of items. It can filter to Videos or Stacks and repeated tags that require every selected Tag. Route: /api/v1/photos/timeline/buckets. Inputs: filter, tag. Safe reads can use bounded retries.

filter

Which timeline groups a read returns. videos keeps groups whose display item is a video; stacks keeps RAW+JPEG pairs, Live Photos and bursts.

string
Allowed values: all videos stacks
tag
Array<string>

Repeat tag to require every selected Tag (#1109, DESIGN §33).

Media typeapplication/json
object
days
required

Newest day first.

Array<object>

One day and its group count, without tiles.

object
count
required
integer format: int64
day
required
string
total
required

Sum of every day’s count.

integer format: int64
Examplegenerated
{
"days": [
{
"count": 1,
"day": "example"
}
],
"total": 1
}
Media typeapplication/json

The standard API error response: { "error": { ... } }.

object
error
required

Error details.

object
code
required

Stable machine-readable code.

string
Allowed values: bad_request unauthorized forbidden not_found conflict name_conflict_case name_too_long push_endpoint_rejected too_many_requests internal service_unavailable
details
One of:

Optional field or operation details.

object
key
additional properties
string
message
required

Safe text for logs or a user-facing error message.

string
Example
{
"error": {
"code": "bad_request"
}
}