# @algolia/abtesting

> JavaScript client for abtesting

Latest version **1.25.0** (published 2026-09-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install @algolia/abtesting
pnpm add @algolia/abtesting
yarn add @algolia/abtesting
bun add @algolia/abtesting
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.25.0 |
| Published | 2026-09-09 |
| First published | 2025-07-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM |
| Node | >= 14.0.0 |
| Dependencies | 4 |
| Unpacked size | 873.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1383 |
| Author | Algolia |
| Maintainers | haroenv, tkrugg, cyril.descossy, alg-bgastinne, emmanuel.fortin, robertmogos, jinste, eventexperiences_algolia, alg-admin, mbramwell-algolia, vincentalindogan, gavaudan-algolia, fluf, eric-zaharia, marioalgolia, sevans3000, cdhawke-algolia, samykettani, bjorkkim |

## Links

- npm: https://www.npmjs.com/package/@algolia/abtesting
- Repository: https://github.com/algolia/algoliasearch-client-javascript
- Homepage: https://github.com/algolia/algoliasearch-client-javascript/tree/main/packages/abtesting#readme
- Issues: https://github.com/algolia/algoliasearch-client-javascript/issues
- npm.io page: https://npm.io/package/@algolia/abtesting

## Dependencies (4)

- [@algolia/client-common](https://npm.io/package/@algolia/client-common.md) 5.59.0
- [@algolia/requester-fetch](https://npm.io/package/@algolia/requester-fetch.md) 5.59.0
- [@algolia/requester-node-http](https://npm.io/package/@algolia/requester-node-http.md) 5.59.0
- [@algolia/requester-browser-xhr](https://npm.io/package/@algolia/requester-browser-xhr.md) 5.59.0

## Recent versions

- 1.25.0 (latest) — 2026-09-09
- 1.23.0 — 2026-08-18
- 1.22.0 — 2026-07-15
- 1.21.2 — 2026-07-07
- 1.21.1 — 2026-06-23
- 1.21.0 — 2026-06-16
- 1.20.1 — 2026-06-15
- 1.20.0 — 2026-06-11
- 1.19.0 — 2026-05-29
- 1.18.1 — 2026-05-05
- 1.18.0 — 2026-04-30
- 1.17.0 — 2026-04-22
- 1.16.2 — 2026-04-14
- 1.16.1 — 2026-04-01
- 1.16.0 — 2026-03-24
- … 29 more at https://npm.io/package/@algolia/abtesting/versions

## README

<p align="center">
  <a href="https://www.algolia.com">
    <img alt="Algolia for JavaScript" src="https://raw.githubusercontent.com/algolia/algoliasearch-client-common/master/banners/javascript.png" >
  </a>

  <h4 align="center">The perfect starting point to integrate <a href="https://algolia.com" target="_blank">Algolia</a> within your JavaScript project</h4>

  <p align="center">
    <a href="https://npmjs.com/package/@algolia/abtesting"><img src="https://img.shields.io/npm/v/@algolia/abtesting.svg?style=flat-square" alt="NPM version"></img></a>
    <a href="http://npm-stat.com/charts.html?package=@algolia/abtesting"><img src="https://img.shields.io/npm/dm/@algolia/abtesting.svg?style=flat-square" alt="NPM downloads"></a>
    <a href="https://www.jsdelivr.com/package/npm/@algolia/abtesting"><img src="https://data.jsdelivr.com/v1/package/npm/@algolia/abtesting/badge" alt="jsDelivr Downloads"></img></a>
    <a href="LICENSE"><img src="https://img.shields.io/badge/license-MIT-green.svg?style=flat-square" alt="License"></a>
  </p>
</p>

<p align="center">
  <a href="https://www.algolia.com/doc/libraries/sdk/install#javascript" target="_blank">Documentation</a>  •
  <a href="https://www.algolia.com/doc/guides/building-search-ui/what-is-instantsearch/js/" target="_blank">InstantSearch</a>  •
  <a href="https://discourse.algolia.com" target="_blank">Community Forum</a>  •
  <a href="http://stackoverflow.com/questions/tagged/algolia" target="_blank">Stack Overflow</a>  •
  <a href="https://github.com/algolia/algoliasearch-client-javascript/issues" target="_blank">Report a bug</a>  •
  <a href="https://alg.li/support" target="_blank">Support</a>
</p>

## ✨ Features

- Thin & **minimal low-level HTTP client** to interact with Algolia's API
- Works both on the **browser** and **node.js**
- **UMD and ESM compatible**, you can use it with any module loader
- Built with TypeScript

## 💡 Getting Started

> [!TIP]
> This API client is already a dependency of [the algoliasearch client](https://www.npmjs.com/package/algoliasearch), you don't need to manually install `@algolia/abtesting` if you already have `algoliasearch` installed.

To get started, you first need to install @algolia/abtesting (or any other available API client package).
All of our clients comes with type definition, and are available for both browser and node environments.

### With a package manager

```bash
yarn add @algolia/abtesting@1.25.0
# or
npm install @algolia/abtesting@1.25.0
# or
pnpm add @algolia/abtesting@1.25.0
```

### Without a package manager

Add the following JavaScript snippet to the <head> of your website:

```html
<script src="https://cdn.jsdelivr.net/npm/@algolia/abtesting@1.25.0/dist/builds/browser.umd.js"></script>
```

### Usage

You can now import the Algolia API client in your project and play with it.

```js
import { abtestingV3Client } from '@algolia/abtesting';

const client = abtestingV3Client('YOUR_APP_ID', 'YOUR_API_KEY');
```

For full documentation, visit the **[Algolia JavaScript API Client](https://www.algolia.com/doc/libraries/sdk/methods/abtesting-v3/)**.

## ❓ Troubleshooting

Encountering an issue? Before reaching out to support, we recommend heading to our [FAQ](https://support.algolia.com/hc/en-us/sections/15061037630609-API-Client-FAQs) where you will find answers for the most common issues and gotchas with the client. You can also open [a GitHub issue](https://github.com/algolia/api-clients-automation/issues/new?assignees=&labels=&projects=&template=Bug_report.md)

## 📄 License

The Algolia JavaScript API Client is an open-sourced software licensed under the [MIT license](LICENSE).

---
_Source: https://npm.io/package/@algolia/abtesting · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
