---
title: "Get A/B test stats"
method: GET
path: "/ab-tests/{abTestId}/stats"
tags: ["A/B Tests"]
---

# Get A/B test stats

`GET /ab-tests/{abTestId}/stats`

Returns aggregate and per-variant engagement stats for an A/B test.

## Path parameters

- `abTestId` string, required

## Query parameters

- `period` '1h' | '24h' | '7d' | '30d' | '90d'
- `start` string, date-time
- `end` string, date-time
- `includeMachineEngagement` boolean

## Response `200`

A/B test stats returned

- object
  - `success` boolean
  - `abTestId` string
  - `period` string
  - `start` string, date-time
  - `end` string, date-time
  - `stats` object
  - `variants` object[]
    - `id` string
    - `label` string
    - `subject` string
    - `isWinner` boolean
    - `stats` object

## Other responses

- `400` — Invalid period or date range
- `401` — Unauthorized
- `404` — A/B test not found

---

[API](https://skmtc.net/sequenzy/apis/sequenzy-api.md) · [All operations](https://skmtc.net/sequenzy/apis/sequenzy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sequenzy/sequenzy-api/versions/af1cf9620482/schema)
