Get Variant Statistics.

GET /api/teams/{team}/experiments/{experiment}/variants/{variant}/statistics

note Statistics are calculated every hour for running experiments.

Path parameters

  • team integer Required

    The ID of the team that the variant belongs to.

  • experiment string Required

    The experiment key that the variants belong to.

  • variant string Required

    The variant key to show.

Query parameters

  • include string

    Comma-separated list of relationships to include in the response.

  • The event key that you want to filter statistics by.

Responses

GET /api/teams/{team}/experiments/{experiment}/variants/{variant}/statistics
curl \
 -X GET https://checkmango.com/api/teams/4/experiments/libero/variants/dolore/statistics \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "data": {
    "id": "1",
    "type": "statistics",
    "attributes": {
      "team_id": 39,
      "experiment_id": 14,
      "variant_id": 6,
      "event_id": 15,
      "count_conversion_rate": 0,
      "unique_conversion_rate": 0,
      "power": 0,
      "z_score": 0,
      "p_value": 1,
      "confidence": 0,
      "uplift": 0,
      "created": {
        "human": "1 second ago",
        "string": "2024-04-08 10:42:02"
      },
      "updated": {
        "human": "1 second ago",
        "string": "2024-04-08 10:42:02"
      }
    },
    "links": {
      "self": {
        "href": "http://checkmango.com/api/teams/39/experiments/DICTA_VEL_QUI_MINUS/variants/OFFICIA_VERO_EX_OMNIS_QUI/statistics"
      },
      "experiment": {
        "href": "http://checkmango.com/api/teams/39/experiments/DICTA_VEL_QUI_MINUS"
      },
      "variant": {
        "href": "http://checkmango.com/api/teams/39/experiments/DICTA_VEL_QUI_MINUS/variants/OFFICIA_VERO_EX_OMNIS_QUI"
      },
      "event": {
        "href": "http://checkmango.com/api/teams/39/events/REICIENDIS_QUI_EUM_AUT_EST"
      }
    }
  }
}
Response examples (403)
{
  "message": "Unauthenticated."
}
Response examples (404)
{
  "message": "Not Found"
}