← All tool references

SEO Tools · not_available

A/B Test Calculator

Compare conversion rates between two experiment variants.

Open public tool

Overview

Category
SEO Tools
API mode
not_available
Processing
client-side
Privacy
no-data-stored

Public descriptor

The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.

GET /api/v1/tools/a-b-test-calculator

View this descriptor as JSON

Execute availability

This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.

POST /api/v1/tools/a-b-test-calculator/execute

Authentication is not issued during the preview. A bearer API key is planned for execution after launch.

Input schema

object object; additional properties are not accepted.

conversions_a · number · required
Enter variant a conversions.
visitors_a · number · required
Enter variant a visitors.
conversions_b · number · required
Enter variant b conversions.
visitors_b · number · required
Enter variant b visitors.
{
    "type": "object",
    "properties": {
        "conversions_a": {
            "type": "number",
            "description": "Enter variant a conversions."
        },
        "visitors_a": {
            "type": "number",
            "description": "Enter variant a visitors."
        },
        "conversions_b": {
            "type": "number",
            "description": "Enter variant b conversions."
        },
        "visitors_b": {
            "type": "number",
            "description": "Enter variant b visitors."
        }
    },
    "required": [
        "conversions_a",
        "visitors_a",
        "conversions_b",
        "visitors_b"
    ],
    "additionalProperties": false
}

Output schema

On a successful execution, schema values appear in data.result.values.

conversion_rate_a · number
Variant A rate produced by the tool.
conversion_rate_b · number
Variant B rate produced by the tool.
relative_lift · number
Relative lift produced by the tool.
z_score · number
Two-proportion z score produced by the tool.
p_value_approx · number
Approximate two-sided p-value produced by the tool.
interpretation · string
Result interpretation produced by the tool.
{
    "type": "object",
    "properties": {
        "conversion_rate_a": {
            "type": "number",
            "description": "Variant A rate produced by the tool."
        },
        "conversion_rate_b": {
            "type": "number",
            "description": "Variant B rate produced by the tool."
        },
        "relative_lift": {
            "type": "number",
            "description": "Relative lift produced by the tool."
        },
        "z_score": {
            "type": "number",
            "description": "Two-proportion z score produced by the tool."
        },
        "p_value_approx": {
            "type": "number",
            "description": "Approximate two-sided p-value produced by the tool."
        },
        "interpretation": {
            "type": "string",
            "description": "Result interpretation produced by the tool."
        }
    },
    "additionalProperties": false
}

A/B Test Calculator worked example

The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.

curl -X POST "https://utilitypages.org/api/v1/tools/a-b-test-calculator/execute" \
  -H "Content-Type: application/json" \
  -d '{
    "conversions_a": 240,
    "visitors_a": 4000,
    "conversions_b": 285,
    "visitors_b": 4100
}'
{
    "ok": true,
    "data": {
        "slug": "a-b-test-calculator",
        "result": {
            "values": {
                "conversion_rate_a": 6,
                "conversion_rate_b": 6.95122000000000017649881556280888617038726806640625,
                "relative_lift": 15.85365900000000038971847970969974994659423828125,
                "z_score": 1.7384980000000000988080728347995318472385406494140625,
                "p_value_approx": 0.082123000000000001552535877635818906128406524658203125,
                "interpretation": "Difference is not statistically significant at the 5% level under the stated assumptions."
            },
            "display": {
                "display": "6"
            },
            "warnings": [],
            "assumptions": [],
            "steps": []
        }
    },
    "meta": [],
    "request_id": "req_example_123"
}

Errors

api_not_launched · 503
Returned by the current launch gate for every execute request.
invalid_json · 400
Returned when an enabled execute request does not contain valid JSON.
validation_failed · 422
Returned when a request does not satisfy the input schema.
browser_interaction_required · 422
Returned for browser capability tools instead of inventing a server-side result.
tool_not_found · 404
Returned when a requested descriptor slug does not exist.
execution_failed · 503
Returned when an enabled server-side execution cannot complete.