curl --request GET \
--url https://api.abconvert.io/v1/experiments/{id}/results/{query_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.abconvert.io/v1/experiments/{id}/results/{query_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.abconvert.io/v1/experiments/{id}/results/{query_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.abconvert.io/v1/experiments/{id}/results/{query_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.abconvert.io/v1/experiments/{id}/results/{query_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.abconvert.io/v1/experiments/{id}/results/{query_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abconvert.io/v1/experiments/{id}/results/{query_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "results_query",
"id": "66d3b91c4f2a7e5081c9a3b7",
"experiment_id": "3021",
"status": "pending",
"failure_reason": "<string>",
"computed_at": "2023-11-07T05:31:56Z",
"test_groups": [
{
"test_group_index": 1,
"sample_size": 5231,
"session_count": 6816,
"conversion_rate": 0.034,
"revenue_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"average_order_value": {
"amount": "17.99",
"currency": "USD"
},
"profit_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"add_to_cart_rate": 0.081,
"reached_checkout_rate": 0.052,
"orders": 179,
"revenue": {
"amount": "17.99",
"currency": "USD"
}
}
],
"breakdown": {
"dimensions": [
"country"
],
"rows": [
{
"test_group_index": 1,
"sample_size": 5231,
"dimension_value": "US::Mobile",
"session_count": 6816,
"conversion_rate": 0.034,
"revenue_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"average_order_value": {
"amount": "17.99",
"currency": "USD"
},
"profit_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"add_to_cart_rate": 0.081,
"reached_checkout_rate": 0.052,
"orders": 179,
"revenue": {
"amount": "17.99",
"currency": "USD"
}
}
]
}
}{
"object": "results_query",
"id": "66d3b91c4f2a7e5081c9a3b7",
"experiment_id": "3021",
"status": "pending",
"failure_reason": "<string>",
"computed_at": "2023-11-07T05:31:56Z",
"test_groups": [
{
"test_group_index": 1,
"sample_size": 5231,
"session_count": 6816,
"conversion_rate": 0.034,
"revenue_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"average_order_value": {
"amount": "17.99",
"currency": "USD"
},
"profit_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"add_to_cart_rate": 0.081,
"reached_checkout_rate": 0.052,
"orders": 179,
"revenue": {
"amount": "17.99",
"currency": "USD"
}
}
],
"breakdown": {
"dimensions": [
"country"
],
"rows": [
{
"test_group_index": 1,
"sample_size": 5231,
"dimension_value": "US::Mobile",
"session_count": 6816,
"conversion_rate": 0.034,
"revenue_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"average_order_value": {
"amount": "17.99",
"currency": "USD"
},
"profit_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"add_to_cart_rate": 0.081,
"reached_checkout_rate": 0.052,
"orders": 179,
"revenue": {
"amount": "17.99",
"currency": "USD"
}
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {},
"findings": [
{
"severity": "error",
"code": "product_not_found",
"message": "<string>",
"param": "<string>"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {},
"findings": [
{
"severity": "error",
"code": "product_not_found",
"message": "<string>",
"param": "<string>"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {},
"findings": [
{
"severity": "error",
"code": "product_not_found",
"message": "<string>",
"param": "<string>"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {},
"findings": [
{
"severity": "error",
"code": "product_not_found",
"message": "<string>",
"param": "<string>"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {},
"findings": [
{
"severity": "error",
"code": "product_not_found",
"message": "<string>",
"param": "<string>"
}
]
}
}Retrieve a custom result query
Returns a custom result query by id. Beta.
This never recomputes: a query id names one already-computed result,
whatever its age. Rows carry metric values only: no lift against
Control, no confidence interval, no significance. For those, read
GET /experiments/{id}/results.
curl --request GET \
--url https://api.abconvert.io/v1/experiments/{id}/results/{query_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.abconvert.io/v1/experiments/{id}/results/{query_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.abconvert.io/v1/experiments/{id}/results/{query_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.abconvert.io/v1/experiments/{id}/results/{query_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.abconvert.io/v1/experiments/{id}/results/{query_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.abconvert.io/v1/experiments/{id}/results/{query_id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.abconvert.io/v1/experiments/{id}/results/{query_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "results_query",
"id": "66d3b91c4f2a7e5081c9a3b7",
"experiment_id": "3021",
"status": "pending",
"failure_reason": "<string>",
"computed_at": "2023-11-07T05:31:56Z",
"test_groups": [
{
"test_group_index": 1,
"sample_size": 5231,
"session_count": 6816,
"conversion_rate": 0.034,
"revenue_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"average_order_value": {
"amount": "17.99",
"currency": "USD"
},
"profit_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"add_to_cart_rate": 0.081,
"reached_checkout_rate": 0.052,
"orders": 179,
"revenue": {
"amount": "17.99",
"currency": "USD"
}
}
],
"breakdown": {
"dimensions": [
"country"
],
"rows": [
{
"test_group_index": 1,
"sample_size": 5231,
"dimension_value": "US::Mobile",
"session_count": 6816,
"conversion_rate": 0.034,
"revenue_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"average_order_value": {
"amount": "17.99",
"currency": "USD"
},
"profit_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"add_to_cart_rate": 0.081,
"reached_checkout_rate": 0.052,
"orders": 179,
"revenue": {
"amount": "17.99",
"currency": "USD"
}
}
]
}
}{
"object": "results_query",
"id": "66d3b91c4f2a7e5081c9a3b7",
"experiment_id": "3021",
"status": "pending",
"failure_reason": "<string>",
"computed_at": "2023-11-07T05:31:56Z",
"test_groups": [
{
"test_group_index": 1,
"sample_size": 5231,
"session_count": 6816,
"conversion_rate": 0.034,
"revenue_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"average_order_value": {
"amount": "17.99",
"currency": "USD"
},
"profit_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"add_to_cart_rate": 0.081,
"reached_checkout_rate": 0.052,
"orders": 179,
"revenue": {
"amount": "17.99",
"currency": "USD"
}
}
],
"breakdown": {
"dimensions": [
"country"
],
"rows": [
{
"test_group_index": 1,
"sample_size": 5231,
"dimension_value": "US::Mobile",
"session_count": 6816,
"conversion_rate": 0.034,
"revenue_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"average_order_value": {
"amount": "17.99",
"currency": "USD"
},
"profit_per_visitor": {
"amount": "17.99",
"currency": "USD"
},
"add_to_cart_rate": 0.081,
"reached_checkout_rate": 0.052,
"orders": 179,
"revenue": {
"amount": "17.99",
"currency": "USD"
}
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {},
"findings": [
{
"severity": "error",
"code": "product_not_found",
"message": "<string>",
"param": "<string>"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {},
"findings": [
{
"severity": "error",
"code": "product_not_found",
"message": "<string>",
"param": "<string>"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {},
"findings": [
{
"severity": "error",
"code": "product_not_found",
"message": "<string>",
"param": "<string>"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {},
"findings": [
{
"severity": "error",
"code": "product_not_found",
"message": "<string>",
"param": "<string>"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "<string>",
"message": "<string>",
"param": "<string>",
"request_id": "<string>",
"details": {},
"findings": [
{
"severity": "error",
"code": "product_not_found",
"message": "<string>",
"param": "<string>"
}
]
}
}Authorizations
Bearer tokens created in the ABConvert admin under
Settings → MCP & API Access. Scopes:
read_experiments and write_experiments (write implies read; the
default is read). See
Authentication for which scope each
request needs.
Path Parameters
The test's numeric ID as a string, for example "3021".
^[0-9]+$"3021"
The id from POST /experiments/{id}/results.
Response
The query, completed or failed.
A custom result query job. Beta.
status is pending until the snapshot is computed, then completed
or failed. The result fields are present only when completed.
"results_query"Treat as opaque. Never parse it.
"66d3b91c4f2a7e5081c9a3b7"
"3021"
pending, completed, failed Why the query failed, in plain language. Present only when status
is failed. Run the query again; if it fails again, send support
this text and the query id.
Whole-test totals. Present on a query with no breakdown; a
dimensional query answers with breakdown.rows instead, and
carries no separate totals.
Show child attributes
Show child attributes
Present when the query named a breakdown.
Show child attributes
Show child attributes