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

# Get campaign piggybacks

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

Retrieves all piggyback tracking pixels currently associated with the specified campaign. The response JSON contains a 'campaign_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 campaign and the Piggyback Pixel Tracking permission.

## Query params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `id` | integer | yes | `2001` | The unique numeric identifier of the campaign whose piggyback tracking pixels should be retrieved |

## Responses

- `200` — Campaign piggybacks retrieved successfully
- `400` — Bad request — invalid or missing parameters
- `401` — Unauthorized - authentication error
- `403` — Forbidden - no rights on the campaign, or the Piggyback Pixel Tracking permission is not enabled
- `404` — Campaign not found

## Example request

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

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