---
title: "Use dynamic experiment data in the API response"
slug: "use-dynamic-experiment-data-in-the-api-response"
abstract: "Describes how to include dynamic data in the API response for an interactive experiment."
---
# Use dynamic experiment data in the API response

You can copy and paste dynamic data from the interactive experiment in the API response. This is beneficial if you want to use any parameters in the API response that are requested by the dependant website, such as `"uri"`, `"region"`, and `"pointOfSale"`.

To include dynamic experiment data in the API response:

1. In the API editor, from the **API** tab, click the **Data** tab.
2. To insert dynamic data into the API response, enter a guest's email address or other identifier to search in the **Data Selector** search box. This enables you to access data model attributes and paths.

    > [!tip]
    > If there is a guest whose data you often use when configuring or testing code, just click the **star** icon to bookmark the guest so you no longer have to search for them.

3. Under **Experience Response**, click ![Copy icon](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/copy_data.png) next to the attribute or path and click **Copy Path as FreeMarker**.

    ![Copying attributes from the experience response](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/pers_exprespns.png)

4. Paste the data into the **API** tab.
5. Click **Save**.
6. Click ![back.png](https://doc.sitecore.com/api/markdown-image/personalize/en/users/sitecore-personalize/images/back.png) to close the API editor.