Sep 20, 2024
Retrieve A/B test details
Retrieves the details for an A/B test by its ID.
Usage
Required ACL:
analytics
Copy
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.getABTest({ id: 42 });
Did you find this page helpful?