Experiments

Get Experiment Results

Changed on

Returns 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.

get/experiments/{id}/results

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string required

The experiment identifier, the expt_ id or the flag_key handle.

Query parameters

account_id, string

Owning account ID. Required when id is a flag key, optional for an expt_ ID.

from, string

Start of the reporting window, as an ISO 8601 date or timestamp. Defaults to the experiment's start date.

to, string

End of the reporting window, as an ISO 8601 date or timestamp. Defaults to today.

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Response

experiment results returned

object required
conclusion, string nullable

One sentence that states what the readings show. null until a reading exists.

ended_at, string nullable

When the experiment concluded, as an ISO 8601 timestamp. null while still active.

flag_key, string required

The experiment's flag_key.

from, string nullable

Start of the reporting window, as an ISO 8601 date.

name, string required

Display name.

primary_stat, string nullable

The metric of the reading the experiment is judged on, one of the metric values in stats.

started_at, string nullable

When the experiment began, as an ISO 8601 timestamp.

stats, ExperimentReading[] nullable

One reading per target stat, with the arms it was read on. null when there are none.

status, 'draft' | 'active' | 'paused' | 'ended' required

Current lifecycle state.

to, string nullable

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_size to the response with the status

    • info

      added the optional property stats/items/control/sample_size to the response with the status

    • info

      added the optional property stats/items/additionalProperties/statistically_significant to the response with the status

    1 more change in this revision