---
title: "List zones for site"
type: reference
method: GET
path: /rest-api/sites/{siteId}/zones.do
tag: "Sites"
---

# List zones for site

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

Returns all non-deleted zones belonging to the specified site. Requires ALL or SHARED level VIEW permission on INVENTORY. If the site does not exist or is deleted, an empty list is returned. Each zone in the response includes its ID and name. Zones are ordered by id and can be narrowed by any on/off setting or relation flag (filter[...]) and trimmed to the fields named in fields.

## Path params

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

## Query params

| Name | Type | Required | Example | Description |
|---|---|---|---|---|
| `fields` | array<string> | no | `id,name,active` | Return only these fields of each entity, comma-separated; id is always kept. A requested field no returned row carries is named in the X-Ignored-Fields response header |
| `filter` | object | no | `{"hasLimits": "true"}` | Keep only entities matching every key, e.g. filter[cpaOptimization]=true&filter[hasLimit]=true. Keys are the entity's on/off settings (active, enableTargeting, cpaOptimization, alwaysRedirect, ...) and a has<Relation> flag for each setting kept in rows of its own (hasLimit, hasPricing, hasFrequencyCapping, hasTrackingCode, hasPriceAdjustmentRules, hasLabels, hasBanners, ...), true when the relation holds a row; hasCapping, hasLimits and hasTargetingRules group the relations of their kind. An unknown key is a 400 that lists every valid key for the list. |

## Responses

- `200` — Zones returned successfully
- `400` — Bad request — invalid or missing parameters
- `401` — Authentication error
- `403` — Forbidden — insufficient permissions
- `404` — Not found — resource does not exist

## Example request

```bash
curl --request GET \
  --url 'https://YOUR-NETWORK-DOMAIN/rest-api/sites/5001/zones.do?fields=id%2Cname%2Cactive&filter=%7B%22hasLimits%22%3A%20%22true%22%7D' \
  --header 'X-Api-Key: YOUR_API_KEY'
```

Source: https://epom.com/ad-server/docs/api/sites/get-sites-zones