An updated version of the A/B testing API (v3) is available.
For differences, compatibility, and migration guidance, see A/B testing API v2 vs v3.
- C#
- Go
- Java
- JavaScript
- Kotlin
- PHP
- Python
- Ruby
- Scala
- Swift
The A/B testing API client is part of the To use the A/B testing client, import these namespaces:To create an instance of the client:Replace
Algolia.Search
package.
To install this package, run:C#
C#
ALGOLIA_APPLICATION_REGION
with your Algolia application’s analytics region: us
for the United States or de
for Europe.
You can check your analytics region in the Infrastructure > Analytics section of the Algolia dashboard.Analytics region
The A/B testing API client requires specifying your Algolia application’s analytics region to properly route requests to the correct data center. ReplaceALGOLIA_APPLICATION_REGION
with your application’s analytics region:
us
for the United Statesde
for Europe