---
title: "Get Workspace Segment Statistics"
method: GET
path: "/workspaces/{workspace_id}/segments"
tags: ["Analytics"]
---

# Get Workspace Segment Statistics

`GET /workspaces/{workspace_id}/segments`

## Request

- Base URL: `https://api.rebrandly.com/v1`
- URL: `https://api.rebrandly.com/v1/workspaces/{workspace_id}/segments`
- Auth: API key in header `apikey`

Alias for /workspaces/{workspace_id}/clicks.

## Path parameters

- `workspace_id` string, required

## 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)
