---
metadata:
  - name: generator
    content: Diplodoc Platform v5.54.2
alternate:
  - https://yandex.com/support/varioqub/en/objects/get-experiments.md
  - https://yandex.com/support/varioqub/ru/objects/get-experiments.md
  - https://yandex.com/support/varioqub/tr/objects/get-experiments.md
  - href: en/objects/get-experiments.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/support/varioqub/en/llms.txt

# getExperiments

Calls the [init](https://yandex.com/support/varioqub/en/objects/init.md) method and returns an encrypted set of experiments that involve the site's users in the callback function.

```javascript
ymab('metrika.XXXX', 'getExperiments', callback);
```

<!-- source: en/_includes/connect/detail.md -->
where `XXXX` is the ID of the Yandex Metrica tag installed on your site.
<!-- endsource: en/_includes/connect/detail.md -->

#|
|| **Parameter** | **Type** | **Required** | **Description** ||
|| 
##getExperiments## 
| 
String 
| 
Yes 
| 
Initializes the experiment and returns the user parameters set when [connecting the experiment](https://yandex.com/support/varioqub/en/connect.md) or using the [Usersplit API](https://yandex.com/support/varioqub/en/api-usersplit.md)[*](*parametr).
||
|| 
##callback## 
| 
Function 
| 
Recommended 
| 
Calls the callback function.

Pass this parameter to get additional information.

Format: `(arg: string) => void`
||
|#

[*parametr]: To use it in the experiment, activate [the extended version](https://yandex.com/support/varioqub/en/paid-functionality.md).