report/ab-test
GET
/report/ab-testFetch A/B test metrics split by control and test variants. Requires the reports:read permission.
Request
cURL
curl -X GET "https://provisioning.cloudx.io/api/v1/report/ab-test?ab_test_id=abtest_123&start_time=1712448000&end_time=1712534399" \
-H "Authorization: Bearer $CLOUDX_API_KEY"Query parameters
| Name | Type | Description |
|---|---|---|
timezone | string | IANA timezone for calendar buckets. Defaults to UTC. start_time and end_time remain absolute Unix timestamps and are never shifted. SDK reports, hourly dashboard/breakdown reports, and breakdowns grouped by bidder require whole-hour timezone offsets throughout the requested window because of hourly data and bucketing limitations. A/B reports support UTC only because they use saved UTC-day totals. |
ab_test_idrequired | string | A/B test ID to report. |
start_timerequired | integer<int64> | Start of the time range as a Unix timestamp in seconds. The requested range must not exceed 31 days and must not start before 2020-01-01 UTC. |
end_timerequired | integer<int64> | End of the time range as a Unix timestamp in seconds. The requested range must not exceed 31 days and must not end before 2020-01-01 UTC. |
Responses
A/B test metrics split by variant.
{
"control": {
"daily": [
{
"date": "2026-03-01",
"revenue": 12.34,
"impressions": 123,
"requests": 123,
"ecpm": 12.34,
"fill_rate": 12.34,
"dau": 123
}
],
"cumulative": {
"revenue": 12.34,
"impressions": 123,
"requests": 123,
"ecpm": 12.34,
"fill_rate": 12.34
}
},
"test": {
"daily": [
{
"date": "2026-03-01",
"revenue": 12.34,
"impressions": 123,
"requests": 123,
"ecpm": 12.34,
"fill_rate": 12.34,
"dau": 123
}
],
"cumulative": {
"revenue": 12.34,
"impressions": 123,
"requests": 123,
"ecpm": 12.34,
"fill_rate": 12.34
}
},
"status": "<string>",
"lift": 12.34,
"ci_low": 12.34,
"ci_high": 12.34,
"lift_pct": 12.34,
"ci_low_pct": 12.34,
"ci_high_pct": 12.34,
"p_value": 12.34,
"n_control": 123,
"n_test": 123,
"required_n": 123,
"chi_squared_p": 12.34,
"engine_metrics": [
{
"id": "<string>",
"label": "<string>",
"role": "goal",
"higher_is_better": true,
"lift": 12.34,
"ci_low": 12.34,
"ci_high": 12.34,
"lift_pct": 12.34,
"ci_low_pct": 12.34,
"ci_high_pct": 12.34,
"p_value": 12.34
}
],
"revenue_cap_kept": {
"control": {
"raw_usd": 12.34,
"w99": 12.34,
"w95": 12.34
},
"test": {
"raw_usd": 12.34,
"w99": 12.34,
"w95": 12.34
}
},
"test_arm_not_serving": true
}200A/B test metrics split by variant.
| Field | Type | Description |
|---|---|---|
controlrequired | object | |
testrequired | object | |
status | string | Latest snapshot status (in_progress, directional, achieved, regressed, invalidated). |
lift | number<double> | Absolute difference in revenue per user between test and control. For newer tests, revenue per user is capped at the 99th percentile before comparing, so dividing this value by the uncapped control revenue does not give the percent change; use lift_pct for that. |
ci_low | number<double> | Lower bound of the confidence interval for lift, as an absolute difference in revenue per user. For newer tests, revenue per user is capped at the 99th percentile before comparing, so dividing this value by the uncapped control revenue does not give the percent change; use ci_low_pct for that. |
ci_high | number<double> | Upper bound of the confidence interval for lift, as an absolute difference in revenue per user. For newer tests, revenue per user is capped at the 99th percentile before comparing, so dividing this value by the uncapped control revenue does not give the percent change; use ci_high_pct for that. |
lift_pct | number<double> | Lift as a fraction of the control mean revenue per user, using the same capping as lift (0.05 means +5%). Null when unavailable. |
ci_low_pct | number<double> | Lower bound of the confidence interval for lift_pct, as a fraction of the control mean revenue per user (0.05 means +5%). Null when unavailable. |
ci_high_pct | number<double> | Upper bound of the confidence interval for lift_pct, as a fraction of the control mean revenue per user (0.05 means +5%). Null when unavailable. |
p_value | number<double> | |
n_control | integer<int64> | |
n_test | integer<int64> | |
required_n | integer<int64> | |
chi_squared_p | number<double> | |
engine_metrics | array of object | Every metric the experimentation engine compared for the test arm, the deciding metric (role goal) first. The status above is decided by the goal metric and guarded by the safety metrics; the others are shown only. Omitted when the engine has not scored the test. |
revenue_cap_kept | object | |
test_arm_not_serving | boolean | True when the test arm has installs but served no impression and earned no revenue in the engine's scored window while control served. Omitted when the engine has not scored the test or the test arm is serving. |
400Invalid request parameters.
| Field | Type | Description |
|---|---|---|
errorrequired | string |
401Unauthorized.
| Field | Type | Description |
|---|---|---|
errorrequired | string |
403Forbidden.
| Field | Type | Description |
|---|---|---|
errorrequired | string |
500Internal server error.
| Field | Type | Description |
|---|---|---|
errorrequired | string |
504The query did not finish within the request time budget. Retry, narrowing the time range or filters where the operation accepts them.
| Field | Type | Description |
|---|---|---|
errorrequired | string |