---
title: getActiveExperiments
slug: performance-edge/api/getactiveexperiments
docTags: 
createdAt: 2026-06-23T07:43:30.298Z
---

Describe experiments running on the page, indexed by experiment ID.

```javascript
window.optimizelyEdge.get('state').getActiveExperiments()
> {'123': {id: '123', name: 'Landing Page Experiment', variation: {id: '456', name: 'New CTA Text'}}
```

## Parameters

None

## Returns

An object mapping experiment ID (key) to experiment object (see below)

| Parameter                     | Type           | Description                                                                                                                                                                                                                                                   |
| ----------------------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **experiment**                | object         | Description of the experiment                                                                                                                                                                                                                                 |
| **experiment.id**             | string         | ID of the experiment                                                                                                                                                                                                                                          |
| **experiment.name**           | string \| null | Descriptive name of the experiment, set in Optimizely Performance Edge. If the ["Mask Descriptive Names"](https://help.optimizely.com/Set_Up_Optimizely/Project_Settings%3A_Privacy_in_Optimizely_X#Mask_descriptive_names) feature is enabled, this is null. |
| **experiment.variation**      | object         | Description of the selected variation                                                                                                                                                                                                                         |
| **experiment.variation.id**   | string         | ID of the selected variation                                                                                                                                                                                                                                  |
| **experiment.variation.name** | string \| null | Descriptive name of the variation, set in Optimizely Performance Edge. If the ["Mask Descriptive Names"](https://help.optimizely.com/Set_Up_Optimizely/Project_Settings%3A_Privacy_in_Optimizely_X#Mask_descriptive_names) feature is enabled, this is null.  |

