---
title: "GET /v1/analytics/timeseries"
method: GET
path: "/v1/analytics/timeseries"
tags: ["Analytics"]
---

# GET /v1/analytics/timeseries

`GET /v1/analytics/timeseries`

## Request

- Base URL: `https://api.redirectboss.com`
- URL: `https://api.redirectboss.com/v1/analytics/timeseries`
- Auth: API key in header `X-Api-Key`

Hits over time across all redirects on the account. Defaults to month-to-date and daily granularity.

## Query parameters

- `startDate` string
- `endDate` string
- `granularity` 'daily' | 'monthly'

## Response `200`

Default Response

- object
  - `data` object, required
    - `granularity` 'daily' | 'monthly', required
    - `points` object[], required: Time-ordered series of buckets
      - `date` string, required: Bucket start date in YYYY-MM-DD. For monthly granularity this is the first day of the month.
      - `hits` integer, required: Total redirect hits in this bucket
      - `uniqueRedirectsUsed` integer, required: Distinct redirects that received at least one hit in this bucket
  - `meta` object, required
    - `requestId` string, required: Unique identifier for this request
    - `status` 'completed', required: Operation status
    - `dateRange` object, required: Resolved UTC date range for the response
      - `startDate` string, required: UTC calendar date in YYYY-MM-DD format. Defaults to the first of the current month when omitted.
      - `endDate` string, required: UTC calendar date in YYYY-MM-DD format. Defaults to today when omitted.
    - `granularity` 'daily' | 'monthly', required: Bucket size used for the time series

## Other responses

- `400`: Default Response
- `401`: Default Response
- `404`: Default Response
- `429`: Default Response
- `500`: Default Response

---

[API](https://skmtc.dev/redirectboss/apis/redirectboss-api.md) · [All operations](https://skmtc.dev/redirectboss/apis/redirectboss-api/llms.txt) · [OpenAPI document](https://skmtc.dev/redirectboss/apis/redirectboss-api/revisions/0159ad2b68fa?raw)
