---
title: "Get site piggybacks"
type: reference
method: GET
path: /rest-api/piggyback/site/get.do
tag: "Piggybacks"
---

# Get site piggybacks

`GET https://YOUR-NETWORK-DOMAIN/rest-api/piggyback/site/get.do`

Retrieves all piggyback tracking pixels currently associated with the specified site. The response JSON contains a 'site_piggybacks' array with each piggyback's ID, type (BEACON or URL), code/URL value, status, and sampling configuration. The caller must have view permissions on the site and the Piggyback Pixel Tracking permission. The list comes back whether the site's piggybacks are switched on or off, as the console grid shows it; 'piggybacksEnabled' tells which - while it is false none of them fire.

## Query params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `siteId` | integer | yes | `3001` | The unique numeric identifier of the site whose piggyback tracking pixels should be retrieved |

## Responses

- `200` — Site piggybacks retrieved successfully
- `400` — Bad request — invalid or missing parameters
- `401` — Unauthorized - authentication error
- `403` — Forbidden - not enough permissions
- `404` — Site not found

## Example request

```bash
curl --request GET \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/piggyback/site/get.do?siteId=3001' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/piggybacks/get-piggyback-site