🎉 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.

Personalization region

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

1
2
3
4
5
6
7
8
9
10
<?php
require_once __DIR__."/vendor/autoload.php";
use Algolia\AlgoliaSearch\PersonalizationClient;

// You need an API key with `editSettings` permission
$personalization = PersonalizationClient::create(
    'YourApplicationID',
    'YourWriteAPIKey',
    'eu' // Default: 'us'
);

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

Did you find this page helpful?