Algolia Ab Testing API

The Ab Testing API from Algolia — 6 operation(s) for ab testing.

Business capability
A/B Test Execution BC-4280.50

Operations 11

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /{path} Send a raw GET request to the A/B testing API · Send requests to the Algolia REST API #
Ask an LLM
“Can I read from an A/B testing endpoint the client library doesn't wrap yet?”
“Is there a generic way to fetch any A/B testing API path with my own query parameters?”
Tell an agent
Send a raw GET request to A/B testing API path {path}.
Fetch A/B testing path {path} with query parameters {parameters}.
POST /{path} Send a raw POST request to the A/B testing API · Send requests to the Algolia REST API #
Ask an LLM
“Can I POST to an A/B testing endpoint the SDK doesn't expose as a method?”
“What's the generic escape hatch for posting to any A/B testing API path?”
Tell an agent
Send a raw POST request to A/B testing API path {path}.
POST to A/B testing path {path} with query parameters {parameters}.
PUT /{path} Send a raw PUT request to the A/B testing API · Send requests to the Algolia REST API #
Ask an LLM
“Can I send a custom PUT to an A/B testing path that has no dedicated method?”
“Is there a passthrough for replacing a resource on an arbitrary A/B testing endpoint?”
Tell an agent
Send a raw PUT request to A/B testing API path {path}.
PUT to A/B testing path {path} with query parameters {parameters}.
DELETE /{path} Send a raw DELETE request to the A/B testing API · Send requests to the Algolia REST API #
Ask an LLM
“Can I issue a DELETE against an arbitrary A/B testing API path?”
“Is there a generic delete call for A/B testing endpoints without a dedicated method?”
Tell an agent destructive · confirm first
Send a raw DELETE request to A/B testing API path {path}.
DELETE A/B testing path {path} with query parameters {parameters}.
POST /2/abtests Create an A/B test with the deprecated v2 endpoint · Create an A/B test #
Ask an LLM
“How do I start a new A/B test between two index variants with the legacy v2 API?”
“Do I have to set an end date when creating a v2 A/B test?”
Tell an agent
Create a v2 A/B test named {name} comparing variants {variants}, ending at {endAt}.
Set up an old-style v2 A/B test called {name} that runs until {endAt}.
GET /2/abtests List A/B tests with the deprecated v2 endpoint · List all A/B tests #
Ask an LLM
“How do I list every A/B test configured in my Algolia application using the old v2 API?”
“Can I filter the legacy v2 A/B test list to indices starting with a given prefix?”
Tell an agent
List all my A/B tests using the deprecated v2 endpoint.
List v2 A/B tests on indices with prefix {indexPrefix}, {limit} per page.
GET /2/abtests/{id} Get one A/B test's details via the v2 endpoint · Retrieve A/B test details #
Ask an LLM
“How can I see the details and results of a single A/B test by its ID on the v2 API?”
“Where do I look up the variants of one specific legacy v2 A/B test?”
Tell an agent
Show me the details of v2 A/B test {id}.
Retrieve A/B test {id} using the deprecated v2 endpoint.
DELETE /2/abtests/{id} Delete an A/B test via the v2 endpoint · Delete an A/B test #
Ask an LLM
“How do I permanently remove an A/B test with the legacy v2 API?”
“Can I delete an old A/B test by its ID on v2?”
Tell an agent destructive · confirm first
Delete v2 A/B test {id}.
Remove A/B test {id} using the deprecated v2 delete endpoint.
POST /2/abtests/{id}/stop Stop a running A/B test via the v2 endpoint · Stop an A/B test #
Ask an LLM
“How do I end an A/B test early on the v2 API?”
“Can I restart an A/B test after I stop it?”
Tell an agent destructive · confirm first
Stop v2 A/B test {id} now.
End the running A/B test {id} early using the deprecated v2 stop endpoint.
POST /2/abtests/estimate Estimate A/B test sample size and duration (v2) · Estimate the sample size and duration of an A/B test #
Ask an LLM
“How long would my A/B test need to run to detect the effect size I expect?”
“What sample size does the legacy v2 estimator suggest for a given traffic split?”
Tell an agent
Estimate sample size and duration for an A/B test with configuration {configuration} and variants {variants} on v2.
Work out how many days a v2 A/B test on variants {variants} would take to reach significance.
GET /setClientApiKey Switch the API key the A/B testing client uses · Switch the API key used to authenticate requests #
Ask an LLM
“Can I change which API key my A/B testing client authenticates with without rebuilding it?”
“How do I rotate the key an existing A/B testing client sends on requests?”
Tell an agent
Switch the A/B testing client to authenticate with API key {apiKey}.
Use {apiKey} for all further A/B testing API requests.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/algolia:algolia-ab-testing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

algolia-ab-testing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: A/B Testing Abtesting API
  summary: The Algolia A/B Testing API lets you manage your Algolia A/B tests to optimize your search experience
  description: '## Base URLs


    Base URLs for the A/B testing API:


    - `https://analytics.us.algolia.com`

    - `https://analytics.de.algolia.com`

    - `https://analytics.algolia.com` (alias of `analytics.us.algolia.com`)


    Use the URL that matches your analytics region.'
  version: 2.0.0
servers:
- url: https://analytics.{region}.algolia.com
  variables:
    region:
      description: The region where your Algolia application is hosted.
      enum:
      - us
      - de
      default: us
- url: https://analytics.algolia.com
security:
- appId: []
  apiKey: []
tags:


# --- truncated at 32 KB (34 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/algolia/refs/heads/main/openapi/algolia-ab-testing-api-openapi.yml