---
title: "Get Account Segment Statistics"
method: GET
path: "/account/segments"
tags: ["Analytics"]
---

# Get Account Segment Statistics

`GET /account/segments`

## Request

- Base URL: `https://api.rebrandly.com/v1`
- URL: `https://api.rebrandly.com/v1/account/segments`
- Auth: API key in header `apikey`

Alias for /account/clicks - get aggregated click statistics for the account.

**Requires:** `metrics.advanced` feature flag.

## Query parameters

- `group` 'hours' | 'days' | 'months'

## Headers

- `apikey` string, required

## Response `200`

Click statistics

- ClickStats[]
  - `date` string, date-time: Start of the time period
  - `clicks` integer: Number of clicks in the period

---

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