🎉 Try the public beta of the new docs site at algolia.com/doc-beta! 🎉
API client / Methods
List of methods

We released a new version of the JavaScript API client in public beta. Read the beta documentation for more information.

We released a new version of the PHP API client in public beta. Read the beta documentation for more information.

We released a new version of the Java API client in public beta. Read the beta documentation for more information.

A/B testing region

Your Analytics data is stored and processed in a specific region: either in Europe (Germany), or in the United States. When initializing the Analytics client, you need to select your analytics region:

1
2
3
4
5
6
7
8
use Algolia\AlgoliaSearch\AnalyticsClient;

// You need an API key with `setSettings` permissions
$analytics = AnalyticsClient::create(
    'YourApplicationID',
    'YourAPIKey',
    'de' // Default: "us"
);

You can check the region for your account in the Algolia dashboard.

Did you find this page helpful?