Get Time Series

Retrieve daily performance data points for charting and analysis.

GET/api/v1/stats/timeseries

Returns daily aggregated metrics for the product associated with your API key. Each data point represents one day and includes clicks, signups, conversions, revenue, and commissions.

Query parameters

ParameterTypeDescription
period
stringTime period: 7d, 30d, 90d, or 12m. Defaults to 30d.
account_id
stringOrganization keys only: total the products of this account.

With an organization or account key, the totals cover one product when you send X-Anderro-Product, one account with account_id, and otherwise every product the key reaches.

Example request

bash
curl https://anderro.com/api/v1/stats/timeseries?period=7d \
  -H "x-api-key: sk_your_secret_key"

Responses

200Array of daily data points
json
{
  "data": [
    {
      "date": "2026-04-05",
      "clicks": 45,
      "signups": 3,
      "conversions": 2,
      "revenue_cents": 19800,
      "commissions_cents": 3960
    },
    {
      "date": "2026-04-06",
      "clicks": 52,
      "signups": 5,
      "conversions": 1,
      "revenue_cents": 9900,
      "commissions_cents": 1980
    }
  ]
}
400Invalid period
json
{
  "data": {
    "error": "Invalid period. Must be 7d, 30d, 90d, or 12m."
  }
}

This validation error is nested under data, unlike the usual top-level API error envelope.

Zero-filled days

Days with no activity are included in the response with all values set to 0, so you can plot continuous time series without gaps.