Skip to main content

Get Experiment Result

GET/v2/project/{project_key}/experiment/{test_id}/result

Return the conversion results for an experiment — visitors, conversions, and conversion rate per variant, with relative improvement over the control.

Path parameters

ParameterDescription
project_keyYour project's API key
test_idThe numeric experiment ID

Query parameters

ParameterTypeDescription
start_datestringFilter conversions from this date (format: YYYY-MM-DD)
end_datestringFilter conversions up to this date (format: YYYY-MM-DD)

Both date parameters are optional. When omitted, all data for the experiment is returned.

Example

curl "https://api-{region}.mida.so/v2/project/YOUR_PROJECT_KEY/experiment/1234/result" \
-H "Authorization: Bearer YOUR_GENERATED_API_KEY"

With date filtering:

curl "https://api-{region}.mida.so/v2/project/YOUR_PROJECT_KEY/experiment/1234/result?start_date=2024-01-15&end_date=2024-02-15" \
-H "Authorization: Bearer YOUR_GENERATED_API_KEY"

Success response

{
"success": true,
"test_id": 1234,
"test_name": "Homepage CTA Button Color Test",
"status": "live",
"status_code": 1,
"start_date": "2024-01-15T10:30:00.000Z",
"end_date": null,
"days_running": 15,
"primary_goal": {
"goal_name": "CTA Button Click",
"goal_type": "clickOnElement",
"goal_value": ".cta-button"
},
"total_visitors": 2980,
"total_conversions": 268,
"variants": [
{
"variant_id": "0",
"name": "Control",
"visitors": 1500,
"conversions": 120,
"conversion_rate": 8.0,
"is_control": true
},
{
"variant_id": "1",
"name": "Red CTA Button",
"visitors": 1480,
"conversions": 148,
"conversion_rate": 10.0,
"improvement": 25.0,
"is_control": false
}
]
}

Response fields

FieldTypeDescription
test_idintegerUnique experiment ID
test_namestringExperiment name
statusstringHuman-readable label: "draft", "live", or "inactive"
status_codeintegerNumeric status: 9=draft, 1=live, 0=inactive
start_datestringWhen the experiment was created (ISO 8601)
end_datestring | nullThe date the experiment was formally concluded, or null. See note below.
days_runningintegerDays since creation. If the experiment is concluded, counts to the end_date; otherwise counts to now.
primary_goalobject | nullPrimary conversion goal definition, or null if none set
total_visitorsintegerTotal visitors across all variants
total_conversionsintegerTotal conversions across all variants
variantsarrayPer-variant result objects (control listed first)
About end_date and is_completed

end_date is only populated when the experiment has been formally concluded from the Mida dashboard (marked as complete). Deactivating an experiment via the API (status: 0) stops data collection but does not set end_date — it remains null. The days_running calculation uses end_date if set, otherwise counts to the current time.

Variant fields

FieldTypeDescription
variant_idstringVariant identifier ("0" = control)
namestringVariant display name
visitorsintegerUnique visitors assigned to this variant
conversionsintegerNumber of visitors who converted
conversion_ratenumberConversion rate as a percentage (e.g. 10.0 = 10%)
improvementnumberRelative lift vs the control in percent (e.g. 25.0 = +25%). Only present on non-control variants when the control has data.
is_controlbooleanWhether this is the control variant

Error responses

StatusMeaning
400Invalid test_id, or date parameters are malformed / out of order
401Invalid or missing API key
404Experiment not found or belongs to a different project
Next step

Done reviewing results? You can deactivate the experiment (status: 0) or get a public share link to send to stakeholders.