You're viewing an archived version of our docs. Check out our current documentation →

List all A/B tests

Lists all A/B tests you configured for this application.

Usage

Required ACL: analytics
1
2
3
4
5
6
import { algoliasearch } from 'algoliasearch';

// Replace 'us' with your Algolia Application Region
const client = algoliasearch('ALGOLIA_APPLICATION_ID', 'ALGOLIA_API_KEY').initAbtesting({ region: 'us' });

const response = await client.listABTests();
JavaScript API clients v5