---
title: GET Assignment Data
description: "Description: An API call that retrieves Campaign data and Assignments from the SiteSpect engines. Example: GET https://engine-336.sitespect.net Response Structure: Example Response: Note that the JSON"
---

[Skip to content](https://doc.sitespect.com/knowledge/get-assignment-data#main-content)

English

Show submenu for translations

![Monetate-Logo-Full-Color-1](https://doc.sitespect.com/hs-fs/hubfs/Monetate-Logo-Full-Color-1.png?width=340&height=49&name=Monetate-Logo-Full-Color-1.png)

- [A/B Testing](https://www.sitespect.com/testing-and-experimentation/)
- [Personalization](https://www.sitespect.com/personalization-targeting/)
- [Recommendations](https://www.sitespect.com/recommendations/)

Open main navigation

Close main navigation

- [A/B Testing](https://www.sitespect.com/testing-and-experimentation/)
- [Personalization](https://www.sitespect.com/personalization-targeting/)
- [Recommendations](https://www.sitespect.com/recommendations/)
- English
  
  Show submenu for translations

 How can we help you?

- There are no suggestions because the search field is empty.

1. [Knowledge Base](https://doc.sitespect.com/knowledge?hsLang=en)
2. [Implementation, Deployment, and Security](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en)

# GET Assignment Data

**Description:** An API call that retrieves Campaign data and Assignments from the SiteSpect engines.

Example:

> GET [https://engine-336.sitespect.net](https://engine-336.sitespect.net/)

**Note:** SiteSpect uses [cookies](https://doc.sitespect.com/knowledge/sitespects-cookies?hsLang=en) to track assignment, which need to be sent and updated with all calls. For convenience, cookies and headers can be passed/received in the [body of the request/response](https://doc.sitespect.com/knowledge/sitespects-cookies?hsLang=en).

Response Structure:

```
{ "VariationGroupID": {   "QuickChange": string,   "LiveVariables": json,   "Control": boolean,   "VariationGroupName": string,   "AsmtCounted": boolean,   "Metrics": [{    "MetricID": number,    "MetricName": string    }] }, ...}
```

**Example Response:**

```
{ "89": {   "QuickChange": "All traffic",   "LiveVariables": null,   "Control": false,   "Name": "Promotion",   "AsmtCounted": false,   "Metrics": [] }, "88": {   "LiveVariables": {     "key": "value"   },   "Control": true,   "AsmtCounted": true,   "Name": "Control Group",   "Metrics": [     {       "ID": 138,       "Name": "CountryViewName"     }   ] }}
```

Note that the JSON returned by the SiteSpect GET call includes the Variations (including [QuickChange](https://sitespect.force.com/onlinehelp/s/article/GET-Assignment-Data-605666442?_ga=2.216605214.902650263.1589809319-256796858.1589465107)) that the visitor is assigned to. For example, Variation Group 89 in the JSON structure above is a QuickChange.

The important data points to store and track are: Variation Group ID, Metric ID, and AsmtCounted.

#### Essential Response Parameter Definitions

**Variation Group ID:** A unique identifier for the Variation Group that the visitor is assigned to. Use this identifier in your code to show changes you want to test in a Campaign.

**Control:** A Boolean that indicates whether a Variation Group the visitor is assigned to is the Control Group.

**Metric ID:** A unique identifier for an individual Metric, used to report Metric hits and value capture when sending visit data.

**Note:** Metric Triggers are passed for context when a Metric contains them. For example, the Metric could have a Trigger setup for a given URL and that extra information can be helpful in identifying when the Metric should be sent for a given visitor.

**AsmtCounted:** Indicates whether the visitor is counted for a given Campaign. If this is true in the response of a GET call, then the given Campaign should always be marked as counted by passing the VariationGroup ID in the POST call payload under "AsmtCounted". Counted means that the visitor has seen the change being tested. For accuracy of data, we want to measure only visitors who have been exposed to the change.

**Note:** If a visitor is not counted, that visitor is eligible to be assigned to a different Campaign in a subsequent GET call.  
For example, if an A/B test is measuring the effect of a change on a checkout screen and the visitor launched the website, is assigned to the test, but has never navigated to the checkout page, that visitor should not be counted. Thus, the code block where the change tested exists should update visit **AsmtCounted** in POST visit data.

**Note:** If you initiate the GET call from the page where the change is being tested, you can always mark the visitor as counted.

- [Get Started](https://doc.sitespect.com/knowledge/get-started?hsLang=en#main-content)

    - [SiteSpect Support](https://doc.sitespect.com/knowledge/get-started?hsLang=en#sitespect-support)
    - [Overview Information](https://doc.sitespect.com/knowledge/get-started?hsLang=en#overview-information)
    - [Intro to SiteSpect](https://doc.sitespect.com/knowledge/get-started?hsLang=en#intro-to-sitespect)
    - [Account Setup](https://doc.sitespect.com/knowledge/get-started?hsLang=en#account-setup)
    - [Artificial Intelligence](https://doc.sitespect.com/knowledge/get-started?hsLang=en#artificial-intelligence)
- [Dashboard](https://doc.sitespect.com/knowledge/dashboard?hsLang=en)
- [Build](https://doc.sitespect.com/knowledge/build?hsLang=en#main-content)

    - [Setting Up a Campaign](https://doc.sitespect.com/knowledge/build?hsLang=en#setting-up-a-campaign)
    - [Create a Client-Side Campaign](https://doc.sitespect.com/knowledge/build?hsLang=en#create-a-client-side-campaign)
    - [Create a Server-Side Campaign](https://doc.sitespect.com/knowledge/build?hsLang=en#create-a-server-side-campaign)
    - [Metrics](https://doc.sitespect.com/knowledge/build?hsLang=en#metrics)
    - [Audiences](https://doc.sitespect.com/knowledge/build?hsLang=en#audiences)
    - [Triggers](https://doc.sitespect.com/knowledge/build?hsLang=en#triggers)
    - [Variations](https://doc.sitespect.com/knowledge/build?hsLang=en#variations)
    - [Traffic Management](https://doc.sitespect.com/knowledge/build?hsLang=en#traffic-management)
    - [Preview](https://doc.sitespect.com/knowledge/build?hsLang=en#preview)
    - [Factors](https://doc.sitespect.com/knowledge/build?hsLang=en#factors)
    - [Advanced Settings](https://doc.sitespect.com/knowledge/build?hsLang=en#advanced-settings)
    - [Omnichannel](https://doc.sitespect.com/knowledge/build?hsLang=en#omnichannel)
    - [Regular Expressions (Regex)](https://doc.sitespect.com/knowledge/build?hsLang=en#regular-expressions-regex)
    - [WATTS](https://doc.sitespect.com/knowledge/build?hsLang=en#watts)
    - [Recommendations](https://doc.sitespect.com/knowledge/build?hsLang=en#recommendations)
- [Monitor](https://doc.sitespect.com/knowledge/monitor?hsLang=en)
- [Analyze](https://doc.sitespect.com/knowledge/analyze?hsLang=en#main-content)

    - [Data Export and Integration](https://doc.sitespect.com/knowledge/analyze?hsLang=en#data-export-and-integration)
    - [SiteSpect Reports](https://doc.sitespect.com/knowledge/analyze?hsLang=en#sitespect-reports)
- [Site](https://doc.sitespect.com/knowledge/site?hsLang=en#main-content)

    - [Tools](https://doc.sitespect.com/knowledge/site?hsLang=en#tools)
    - [Configuration](https://doc.sitespect.com/knowledge/site?hsLang=en#configuration)
- [Developers](https://doc.sitespect.com/knowledge/developers?hsLang=en#main-content)

    - [API Reference](https://doc.sitespect.com/knowledge/developers?hsLang=en#api-reference)
    - [Code Samples](https://doc.sitespect.com/knowledge/developers?hsLang=en#code-samples)
    - [Tips & Tricks](https://doc.sitespect.com/knowledge/developers?hsLang=en#tips-tricks)
- [Mobile](https://doc.sitespect.com/knowledge/mobile?hsLang=en)
- [Implementation, Deployment, and Security](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#main-content)

    - [How does SiteSpect work with CDNs?](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#how-does-sitespect-work-with-cdns)
    - [Single Tenant Implementations](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#single-tenant-implementations)
    - [Security Features](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#security-features)
    - [Deployment and Implementation Overview](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#deployment-and-implementation-overview)
    - [SiteSpect Engine & Admin API](https://doc.sitespect.com/knowledge/implementation-deployment-and-security?hsLang=en#sitespect-engine-admin-api)
- [Third-Party Integration](https://doc.sitespect.com/knowledge/third-party-integration?hsLang=en#main-content)

    - [Google](https://doc.sitespect.com/knowledge/third-party-integration?hsLang=en#google)
    - [Zuko](https://doc.sitespect.com/knowledge/third-party-integration?hsLang=en#zuko)
- [Troubleshooting](https://doc.sitespect.com/knowledge/troubleshooting?hsLang=en)
- [Releases](https://doc.sitespect.com/knowledge/releases?hsLang=en#main-content)

    - [Superfresh](https://doc.sitespect.com/knowledge/releases?hsLang=en#superfresh)
- [Feedback](https://doc.sitespect.com/knowledge/feedback?hsLang=en)

- [A/B Testing](https://www.sitespect.com/testing-and-experimentation/)
- [Personalization](https://www.sitespect.com/personalization-targeting/)
- [Recommendations](https://www.sitespect.com/recommendations/)

[![Monetate-Logo-Full-Color-1](https://doc.sitespect.com/hs-fs/hubfs/Monetate-Logo-Full-Color-1.png?width=200&height=29&name=Monetate-Logo-Full-Color-1.png "Monetate-Logo-Full-Color-1")](http://monetate.com)

<https://www.facebook.com/> <https://www.twitter.com/> <https://www.instagram.com/> <https://podcasts.apple.com/> [mailto:email@email.com](mailto:email@email.com)

Copyright © 2026, Monetate