---
title: "Get site targeting rules"
type: reference
method: GET
path: /rest-api/site/{siteId}/targetings.do
tag: "Targeting Rules"
---

# Get site targeting rules

`GET https://YOUR-NETWORK-DOMAIN/rest-api/site/{siteId}/targetings.do`

Returns all targeting rules configured for the specified site as a JSON array. Each element contains the targeting rule type, value, rule (INCLUDE/EXCLUDE), and status. Requires UPDATE permission on the site and MANAGE_SUPPLY_PRE_TARGETING user permission.

## Path params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `siteId` | integer | yes | `3001` | Unique numeric ID of the site |

## Responses

- `200` — Success
- `400` — Bad request — invalid or missing parameters
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Site not found
- `500` — Internal server error

## Example request

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

Source: https://epom.com/ad-server/docs/api/targeting-rules/get-site-targetings