ink.branchline.listAuthorActivity

branchline.ink

Documentation

Per-day bud counts for an author over the trailing 30 days in the viewer's local timezone, plus a current streak (consecutive days ending today with at least one bud). Powers the leaf-themed activity strip on profile pages.

main query

Per-day bud counts for an author over the trailing 30 days in the viewer's local timezone, plus a current streak (consecutive days ending today with at least one bud). Powers the leaf-themed activity strip on profile pages.

Parameters

actor string did Required

DID of the author whose activity to aggregate.

tz string Required

IANA timezone identifier (e.g. America/New_York) used to bucket createdAt into local days and to anchor 'today'.

Output

Encodingapplication/json
currentStreak integer Required

Consecutive days ending at `until` (inclusive) where count >= 1. Zero if the caller's 'today' has no buds yet.

days array Required

Exactly 30 entries, oldest-first, with zero-count days included.

since string Required

Inclusive start of the window in tz-local calendar form (YYYY-MM-DD). Always 29 days before `until`.

totalBuds integer Required

Sum of counts across the 30-day window.

until string Required

Inclusive end of the window in tz-local calendar form (YYYY-MM-DD). Always the caller's local 'today'.

Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
Parameters
DID of the author whose activity to aggregate.
IANA timezone identifier (e.g. America/New_York) used to bucket createdAt into local days and to anchor 'today'.
View raw schema
{
  "description": "Per-day bud counts for an author over the trailing 30 days in the viewer's local timezone, plus a current streak (consecutive days ending today with at least one bud). Powers the leaf-themed activity strip on profile pages.",
  "output": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "currentStreak": {
          "description": "Consecutive days ending at `until` (inclusive) where count >= 1. Zero if the caller's 'today' has no buds yet.",
          "type": "integer"
        },
        "days": {
          "description": "Exactly 30 entries, oldest-first, with zero-count days included.",
          "items": {
            "ref": "#dayCount",
            "type": "ref"
          },
          "type": "array"
        },
        "since": {
          "description": "Inclusive start of the window in tz-local calendar form (YYYY-MM-DD). Always 29 days before `until`.",
          "type": "string"
        },
        "totalBuds": {
          "description": "Sum of counts across the 30-day window.",
          "type": "integer"
        },
        "until": {
          "description": "Inclusive end of the window in tz-local calendar form (YYYY-MM-DD). Always the caller's local 'today'.",
          "type": "string"
        }
      },
      "required": [
        "since",
        "until",
        "days",
        "currentStreak",
        "totalBuds"
      ],
      "type": "object"
    }
  },
  "parameters": {
    "properties": {
      "actor": {
        "description": "DID of the author whose activity to aggregate.",
        "format": "did",
        "type": "string"
      },
      "tz": {
        "description": "IANA timezone identifier (e.g. America/New_York) used to bucket createdAt into local days and to anchor 'today'.",
        "type": "string"
      }
    },
    "required": [
      "actor",
      "tz"
    ],
    "type": "params"
  },
  "type": "query"
}
dayCount object

No description available.

Properties

count integer Required

Number of buds the author created on this local day.

date string Required

tz-local calendar date (YYYY-MM-DD).

View raw schema
{
  "properties": {
    "count": {
      "description": "Number of buds the author created on this local day.",
      "type": "integer"
    },
    "date": {
      "description": "tz-local calendar date (YYYY-MM-DD).",
      "type": "string"
    }
  },
  "required": [
    "date",
    "count"
  ],
  "type": "object"
}

Lexicon Garden

@