---
title: "The widget response object"
slug: "the-widget-response-object"
abstract: "Describes the structure and properties of the widget object in a Sitecore Discover Search and Recommendation response."
---
# The widget response object

You can get a `widget` JSON object in the Sitecore Discover Search and Recommendation response if you sent a [widget object in the request](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/integrate-using-discover-rest-apis/search-and-recommendation-data-model/response-structure-and-objects/the-widget-request-object.md "The widget request object"). The object contains the same information and identifiers in your request. This makes it easier to see which `widget_id` and `rfkid` the response generates. In addition, if you have a running experiment, the `widget` object also contains the experiment details.

The following shows the basic structure of the `widget` object in a response:

```csharp
{
    "widget": {
	"rfkid": "<value>",
	"widget_id": "<value>",
	"variation_id": "<value>",
	"experiment_id": "<value>",
	"experiment_bucket": "<value>"
    }
}
```

<details>
<summary><h2>Keys</h2></summary>

Depending on your request you may see some or all response keys.

The following table describes the keys in the `widget` response object:

| Key | Type | Description | Values |
| --- | --- | --- | --- |
| rfkid | string | Discover ID associated with the widget.This is copied from rfkid in your request. | n/a |
| widget_id | string | Unique ID string assigned to a widget by Sitecore Discover.Discover gets this from the request widget_id. | n/a |
| variation_id | string | Unique identifier for the variation applied to the response.NoteYou can define the variation (group of behaviors or rules) for a widget in the Customer Engagement Console (CEC). | n/a |
| experiment_id | string | Unique ID string for the split test or experiment entity that the response belongs to. You see this only when an experiment is running.NoteYou can define split tests in the CEC. | n/a |
| experiment_bucket | string | Unique, non-human-readable generated ID for the running experiment's bucket that the response belongs to. You see an experiment_bucket only when an experiment is running. | n/a |
| type | string | Widget type that Discover defines. | preview_searchcontent_gridrecommendationbannerhtml_block |

</details>