Jun 23, 2025
Retrieve timeseries of an A/B test
Retrieves timeseries 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').initAbtestingV3({ region: 'us' });
const response = await client.getTimeseries({ id: 42 });
Did you find this page helpful?