---
title: "Get the site protection rule"
method: GET
path: "/v2/sites/{site_id}/site_protection_rule/"
tags: ["site protection rule"]
---

# Get the site protection rule

`GET /v2/sites/{site_id}/site_protection_rule/`

## Request

- Base URL: `https://api.jwplayer.com`
- URL: `https://api.jwplayer.com/v2/sites/{site_id}/site_protection_rule/`
- Auth: API key in header `Authorization`

Get the site protection rule

## Path parameters

- `site_id` string, required: Unique identifier for a resource

## Response `200`

Resource successfully retrieved

- SiteProtectionRuleResourceRead: Resource for managing the site protection rule
  - `schema` string
  - `id` string: Unique identifier for a resource
  - `created` string: Date and time at which the resource was created
  - `last_modified` string: Date and time at which the resource was most recently modified
  - `type` string: Name of the type of resource.
  - `relationships` object: Ancilliary resources associated to the primary resource being read
  - `metadata` SiteProtectionRuleResourceMetadata: Metadata allowed when updating a site protection rule
    - `rule_type` 'allow' | 'deny': Determines whether listed `countries` are included or excluded from viewing content
    - `countries` string[]: List of countries that are applicable to the protection rule Countries are specified using two-letter country codes as defined in ISO 3166.

---

[API](https://skmtc.dev/jwplayer/apis/management-api-v2.md) - [All operations](https://skmtc.dev/jwplayer/apis/management-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/jwplayer/apis/management-api-v2/revisions/9fad6bd5872e?raw)
