GET
/
url-ab-tests
/
{testId}
/
analytics
URL A/B Test Analytics
curl --request GET \
  --url https://jmpy.me/api/v1/url-ab-tests/{testId}/analytics \
  --header 'Authorization: Bearer <token>'
Retrieve detailed analytics for an A/B test, including clicks, unique visitors, conversions, conversion rates, and statistical significance for each variant.

Path Parameters

testId
string
required
The short code (custom alias) of the short URL, or the UUID of the A/B test. First priority is given to resolving the short code.

Request Examples

curl -X GET "https://jmpy.me/api/v1/url-ab-tests/test_url_789/analytics" \
  -H "Authorization: Bearer <token>"

Get A/B Test

View test details

Complete Test

End experiment

Short URL Analytics

General URL stats

Response Examples

{
  "test": {
    "id": "test_url_789",
    "name": "Landing Page CTA Test",
    "status": "running",
    "start_date": "2024-03-21T12:00:00Z"
  },
  "analytics": [
    {
      "id": "var_a",
      "name": "Control",
      "destination_url": "https://mysite.com/landing-a",
      "clicks": 1000,
      "unique_visitors": 900,
      "conversions": 90,
      "conversion_rate": 10
    },
    {
      "id": "var_b",
      "name": "Variant B",
      "destination_url": "https://mysite.com/landing-b",
      "clicks": 1050,
      "unique_visitors": 950,
      "conversions": 142,
      "conversion_rate": 15,
      "significance": {
        "zScore": 2.5,
        "pValue": 0.012,
        "isSignificant": true,
        "confidence": 98.8
      }
    }
  ],
  "summary": {
    "total_clicks": 2050,
    "total_unique_visitors": 1850,
    "total_conversions": 232
  }
}