# GET /v1/zones/{id}/code

Get zone embed code

Return the embed code snippet for a zone. Requires scope `publisher:read` (API key or web session). Rate limit tier: `read`.

- Required scope: `publisher:read`
- Rate limit: `read` — 120 requests per 60-second window per API key or web session

## Parameters

| Name | In | Type | Required |
|---|---|---|---|
| `id` | path | integer | yes |

## Response

```
{ direct_url: string | null; loader: string; tag: { adblock_rate: number | null; last_load_at: string | null; last_request_at: string | null; loads_24h: integer; requests_24h: integer; state: "never" | "stale" | "live"; via: "tag" | "smart_link" | "both" | null } }
```

## Errors

Rate-limited routes return `RateLimit-Limit`, `RateLimit-Remaining` and `RateLimit-Reset` (seconds until the window ends); a 429 also carries `Retry-After`. The headers may be absent while the limiter is temporarily unavailable (requests are then let through).

| Status | Meaning |
|---|---|
| 401 | Missing, invalid or revoked API key. |
| 403 | The key lacks the required scope, or the operation is not allowed for this actor. |
| 429 | Rate limit exceeded; wait `Retry-After` seconds. |
| 404 | Default Response |

HTML documentation: https://agimone.com/en/developers/api/#get-zone-code
API 2026-10
