Get Experiment Results
Changed onReturns an experiment's results: one reading per target stat, with the arms it was read on. Requires experiment:read on the owning account, and the read scope of each target stat's metric, stats:read for most.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Path parameters
The experiment identifier, the expt_ id or the flag_key handle.
Query parameters
Owning account ID. Required when id is a flag key, optional for an expt_ ID.
Start of the reporting window, as an ISO 8601 date or timestamp. Defaults to the experiment's start date.
End of the reporting window, as an ISO 8601 date or timestamp. Defaults to today.
Headers
Pins the request to a dated API version.
Response
experiment results returned
One sentence that states what the readings show. null until a reading exists.
When the experiment concluded, as an ISO 8601 timestamp. null while still active.
The experiment's flag_key.
Start of the reporting window, as an ISO 8601 date.
Display name.
The metric of the reading the experiment is judged on, one of the metric values in stats.
When the experiment began, as an ISO 8601 timestamp.
One reading per target stat, with the arms it was read on. null when there are none.
Current lifecycle state.
End of the reporting window, as an ISO 8601 date.
Example response
{
"conclusion": "Gross revenue rose 55.98% against the period before, outside the margin of error.",
"ended_at": "2026-01-01T12:00:00.000Z",
"flag_key": "pricing_page_change",
"name": "Pricing page change",
"primary_stat": "gross_revenue",
"started_at": "2026-01-01T12:00:00.000Z",
"stats": [
{
"control": {
"confidence_interval": [
790.5
],
"params": {
"from": "2026-01-01T12:00:00.000Z",
"to": "2026-01-01T12:00:00.000Z"
},
"value": 840
},
"direction": "up",
"estimate": 900,
"metric": "gross_revenue",
"params": {
"from": "2026-01-01",
"to": "2026-01-01"
},
"unit": "currency"
}
],
"status": "ended"
}Changes
- info
added the optional property
stats/items/additionalProperties/sample_sizeto the response with the status - info
added the optional property
stats/items/control/sample_sizeto the response with the status
- info
- info
added the optional property
stats/items/additionalProperties/statistically_significantto the response with the status
1 more change in this revision
- info