---
title: Get URL Normalization settings
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/go)

[URL Normalization](https://developers.cloudflare.com/api/go/resources/url_normalization)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Get URL Normalization settings

client.URLNormalization.Get(ctx, query) (\*[URLNormalizationGetResponse](<https://developers.cloudflare.com/api/go/resources/url_normalization#(resource)%20url_normalization%20%3E%20(model)%20URLNormalizationGetResponse%20%3E%20(schema)>), error)

GET/zones/{zone\_id}/url\_normalization

Fetches the current URL Normalization settings.

##### Security

<details>

<summary>API Token</summary>



The preferred authorization scheme for interacting with the Cloudflare API. <a href="https://developers.cloudflare.com/fundamentals/api/get-started/create-token/">Create a token</a>.

**Example:**<code>Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY</code>

</details>

<details>

<summary>API Email + API Key</summary>



The previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.

**Example:**<code>X-Auth-Email: user@example.com</code>

The previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.

**Example:**<code>X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194</code>

</details>

##### Accepted Permissions (at least one required)

`Response Compression Write``Response Compression Read``Config Settings Write``Config Settings Read``Dynamic URL Redirects Write``Dynamic URL Redirects Read``Cache Settings Write``Cache Settings Read``Custom Errors Write``Custom Errors Read``Origin Write``Origin Read``Managed headers Write``Managed headers Read``Zone Transform Rules Write``Zone Transform Rules Read``Mass URL Redirects Write``Mass URL Redirects Read``Magic Firewall Write``Magic Firewall Read``L4 DDoS Managed Ruleset Write``L4 DDoS Managed Ruleset Read``HTTP DDoS Managed Ruleset Write``HTTP DDoS Managed Ruleset Read``Sanitize Write``Sanitize Read``Transform Rules Write``Transform Rules Read``Select Configuration Write``Select Configuration Read``Bot Management Write``Bot Management Read``Zone WAF Write``Zone WAF Read``Account WAF Write``Account WAF Read``Account Rulesets Read``Account Rulesets Write``Logs Write``Logs Read``Logs Write``Logs Read`

##### ParametersExpand Collapse

<details>

<summary>

query URLNormalizationGetParams

</summary>

ZoneID param.Field\[string]

The unique ID of the zone.

<a href="#(resource)%20url_normalization%20%3E%20(method)%20get%20%3E%20(params)%20default%20%3E%20(param)%20zone_id">Link to this property</a>

</details>

[Link to this property](<#(resource)%20url_normalization%20%3E%20(method)%20get%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type URLNormalizationGetResponse struct{…}

A result.

</summary>

<details>

<summary>

Scope URLNormalizationGetResponseScope

The scope of the URL normalization.

</summary>

One of the following:

const URLNormalizationGetResponseScopeIncoming URLNormalizationGetResponseScope = "incoming"

<a href="#(resource)%20url_normalization%20%3E%20(model)%20URLNormalizationGetResponse%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(member)%200">Link to this property</a>

const URLNormalizationGetResponseScopeBoth URLNormalizationGetResponseScope = "both"

<a href="#(resource)%20url_normalization%20%3E%20(model)%20URLNormalizationGetResponse%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(member)%201">Link to this property</a>

const URLNormalizationGetResponseScopeNone URLNormalizationGetResponseScope = "none"

<a href="#(resource)%20url_normalization%20%3E%20(model)%20URLNormalizationGetResponse%20%3E%20(schema)%20%3E%20(property)%20scope%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20url_normalization%20%3E%20(model)%20URLNormalizationGetResponse%20%3E%20(schema)%20%3E%20(property)%20scope">Link to this property</a>

<details>

<summary>

Type URLNormalizationGetResponseType

The type of URL normalization performed by Cloudflare.

</summary>

One of the following:

const URLNormalizationGetResponseTypeCloudflare URLNormalizationGetResponseType = "cloudflare"

<a href="#(resource)%20url_normalization%20%3E%20(model)%20URLNormalizationGetResponse%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%200">Link to this property</a>

const URLNormalizationGetResponseTypeRfc3986 URLNormalizationGetResponseType = "rfc3986"

<a href="#(resource)%20url_normalization%20%3E%20(model)%20URLNormalizationGetResponse%20%3E%20(schema)%20%3E%20(property)%20type%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20url_normalization%20%3E%20(model)%20URLNormalizationGetResponse%20%3E%20(schema)%20%3E%20(property)%20type">Link to this property</a>

</details>

[Link to this property](<#(resource)%20url_normalization%20%3E%20(model)%20URLNormalizationGetResponse%20%3E%20(schema)>)

### Get URL Normalization settings

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

  "github.com/cloudflare/cloudflare-go"
  "github.com/cloudflare/cloudflare-go/option"
  "github.com/cloudflare/cloudflare-go/url_normalization"
)

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  urlNormalization, err := client.URLNormalization.Get(context.TODO(), url_normalization.URLNormalizationGetParams{
    ZoneID: cloudflare.F("9f1839b6152d298aca64c4e906b6d074"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", urlNormalization.Scope)
}
```

200 example

```
{
  "errors": [
    {
      "message": "something bad happened",
      "code": 10000,
      "source": {
        "pointer": "/rules/0/action"
      }
    }
  ],
  "messages": [
    {
      "message": "something bad happened",
      "code": 10000,
      "source": {
        "pointer": "/rules/0/action"
      }
    }
  ],
  "result": {
    "scope": "incoming",
    "type": "cloudflare"
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "errors": [
    {
      "message": "something bad happened",
      "code": 10000,
      "source": {
        "pointer": "/rules/0/action"
      }
    }
  ],
  "messages": [
    {
      "message": "something bad happened",
      "code": 10000,
      "source": {
        "pointer": "/rules/0/action"
      }
    }
  ],
  "result": {
    "scope": "incoming",
    "type": "cloudflare"
  },
  "success": true
}
```