A/B Tests

Get A/B test stats

Changed on

Returns aggregate and per-variant engagement stats for an A/B test, plus the statistical significance of the test's winner metric.

get/ab-tests/{abTestId}/stats

Request

  • Base URL
    https://api.sequenzy.com/api/v1
  • URL
    https://api.sequenzy.com/api/v1/ab-tests/{abTestId}/stats
  • Auth
    HTTP bearer

Path parameters

abTestIdstring required

A/B test ID.

Query parameters

period'1h' | '24h' | '7d' | '30d' | '90d'

Optional period filter.

startstring date-time

Custom range start. Requires end.

endstring date-time

Custom range end. Requires start.

includeMachineEngagementboolean

Include detected scanner, preview, and tracked asset open/click events.

Response

A/B test stats returned

successboolean
abTestIdstring
periodstring
startstring date-time
endstring date-time
statsobject

Example response

{
  "success": true,
  "significance": {
    "confidenceLevel": 0.95,
    "leaderVariantLabel": "B",
    "confidence": 0.9645,
    "pValue": 0.0355,
    "relativeLift": 0.3
  }
}

Changes

    • warning

      added the new event_rate enum value to the / response property for the response status

    • warning

      added the new goal_conversion_rate enum value to the / response property for the response status

    • warning

      added the new goal_value enum value to the / response property for the response status

    • info

      added the optional property // to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status