---
title: Search for locations, ASes, reports, and more
---

[Skip to content](#_top)

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

[Radar](https://developers.cloudflare.com/api/go/resources/radar)

[Search](https://developers.cloudflare.com/api/go/resources/radar/subresources/search)

Copy Markdown

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

---

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

# Search for locations, ASes, reports, and more

client.Radar.Search.Global(ctx, query) (\*[SearchGlobalResponse](<https://developers.cloudflare.com/api/go/resources/radar#(resource)%20radar.search%20%3E%20(model)%20SearchGlobalResponse%20%3E%20(schema)>), error)

GET/radar/search/global

Searches for locations, autonomous systems, reports, bots, certificate logs, certificate authorities, industries and verticals. Location names can be localized by sending an `Accept-Language` HTTP header with a BCP 47 language tag (e.g., `Accept-Language: pt-PT`). The full quality-value chain is supported (e.g., `pt-PT,pt;q=0.9,en;q=0.8`).

##### 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)

`User Details Write``User Details Read`

##### ParametersExpand Collapse

<details>

<summary>

query SearchGlobalParams

</summary>

Query param.Field\[string]

String used to perform the search operation.

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20query">Link to this property</a>

<details>

<summary>

Exclude param.Field\[\[]SearchGlobalParamsExclude]Optional

Search types excluded from results.

</summary>

const SearchGlobalParamsExcludeAdm1S SearchGlobalParamsExclude = "ADM1S"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20exclude%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

const SearchGlobalParamsExcludeASNs SearchGlobalParamsExclude = "ASNS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20exclude%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

const SearchGlobalParamsExcludeBots SearchGlobalParamsExclude = "BOTS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20exclude%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

const SearchGlobalParamsExcludeCertificateAuthorities SearchGlobalParamsExclude = "CERTIFICATE\_AUTHORITIES"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20exclude%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

const SearchGlobalParamsExcludeCertificateLogs SearchGlobalParamsExclude = "CERTIFICATE\_LOGS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20exclude%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

const SearchGlobalParamsExcludeOrigins SearchGlobalParamsExclude = "ORIGINS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20exclude%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

const SearchGlobalParamsExcludeOriginRegions SearchGlobalParamsExclude = "ORIGIN\_REGIONS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20exclude%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%206">Link to this property</a>

const SearchGlobalParamsExcludeIndustries SearchGlobalParamsExclude = "INDUSTRIES"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20exclude%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%207">Link to this property</a>

const SearchGlobalParamsExcludeLocations SearchGlobalParamsExclude = "LOCATIONS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20exclude%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%208">Link to this property</a>

const SearchGlobalParamsExcludeNotebooks SearchGlobalParamsExclude = "NOTEBOOKS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20exclude%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%209">Link to this property</a>

const SearchGlobalParamsExcludeTLDs SearchGlobalParamsExclude = "TLDS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20exclude%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2010">Link to this property</a>

const SearchGlobalParamsExcludeVerticals SearchGlobalParamsExclude = "VERTICALS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20exclude%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2011">Link to this property</a>

</details>

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20exclude">Link to this property</a>

<details>

<summary>

Format param.Field\[<a href="https://developers.cloudflare.com/api/go/resources/radar/subresources/search/methods/global#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)">SearchGlobalParamsFormat</a>]Optional

Format in which results will be returned.

</summary>

const SearchGlobalParamsFormatJson <a href="https://developers.cloudflare.com/api/go/resources/radar/subresources/search/methods/global#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)">SearchGlobalParamsFormat</a> = "JSON"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(member)%200">Link to this property</a>

const SearchGlobalParamsFormatCsv <a href="https://developers.cloudflare.com/api/go/resources/radar/subresources/search/methods/global#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)">SearchGlobalParamsFormat</a> = "CSV"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20format%20%3E%20(schema)%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20format">Link to this property</a>

<details>

<summary>

Include param.Field\[\[]SearchGlobalParamsInclude]Optional

Search types included in results.

</summary>

const SearchGlobalParamsIncludeAdm1S SearchGlobalParamsInclude = "ADM1S"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20include%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

const SearchGlobalParamsIncludeASNs SearchGlobalParamsInclude = "ASNS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20include%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

const SearchGlobalParamsIncludeBots SearchGlobalParamsInclude = "BOTS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20include%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

const SearchGlobalParamsIncludeCertificateAuthorities SearchGlobalParamsInclude = "CERTIFICATE\_AUTHORITIES"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20include%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%203">Link to this property</a>

const SearchGlobalParamsIncludeCertificateLogs SearchGlobalParamsInclude = "CERTIFICATE\_LOGS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20include%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%204">Link to this property</a>

const SearchGlobalParamsIncludeOrigins SearchGlobalParamsInclude = "ORIGINS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20include%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%205">Link to this property</a>

const SearchGlobalParamsIncludeOriginRegions SearchGlobalParamsInclude = "ORIGIN\_REGIONS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20include%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%206">Link to this property</a>

const SearchGlobalParamsIncludeIndustries SearchGlobalParamsInclude = "INDUSTRIES"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20include%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%207">Link to this property</a>

const SearchGlobalParamsIncludeLocations SearchGlobalParamsInclude = "LOCATIONS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20include%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%208">Link to this property</a>

const SearchGlobalParamsIncludeNotebooks SearchGlobalParamsInclude = "NOTEBOOKS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20include%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%209">Link to this property</a>

const SearchGlobalParamsIncludeTLDs SearchGlobalParamsInclude = "TLDS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20include%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2010">Link to this property</a>

const SearchGlobalParamsIncludeVerticals SearchGlobalParamsInclude = "VERTICALS"

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20include%20%3E%20(schema)%20%3E%20(items)%20%3E%20(member)%2011">Link to this property</a>

</details>

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20include">Link to this property</a>

Limit param.Field\[int64]Optional

Limits the number of objects returned in the response.

exclusiveMinimum

minimum0

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20limit">Link to this property</a>

LimitPerGroup param.Field\[float64]Optional

Limits the number of objects per search category.

<a href="#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default%20%3E%20(param)%20limitPerGroup">Link to this property</a>

</details>

[Link to this property](<#(resource)%20radar.search%20%3E%20(method)%20global%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type SearchGlobalResponse struct{…}

</summary>

<details>

<summary>

Search \[]SearchGlobalResponseSearch

</summary>

Code string

<a href="#(resource)%20radar.search%20%3E%20(model)%20SearchGlobalResponse%20%3E%20(schema)%20%3E%20(property)%20search%20%3E%20(items)%20%3E%20(property)%20code">Link to this property</a>

Name string

<a href="#(resource)%20radar.search%20%3E%20(model)%20SearchGlobalResponse%20%3E%20(schema)%20%3E%20(property)%20search%20%3E%20(items)%20%3E%20(property)%20name">Link to this property</a>

Type string

<a href="#(resource)%20radar.search%20%3E%20(model)%20SearchGlobalResponse%20%3E%20(schema)%20%3E%20(property)%20search%20%3E%20(items)%20%3E%20(property)%20type">Link to this property</a>

</details>

<a href="#(resource)%20radar.search%20%3E%20(model)%20SearchGlobalResponse%20%3E%20(schema)%20%3E%20(property)%20search">Link to this property</a>

</details>

[Link to this property](<#(resource)%20radar.search%20%3E%20(model)%20SearchGlobalResponse%20%3E%20(schema)>)

### Search for locations, ASes, reports, and more

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

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

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  response, err := client.Radar.Search.Global(context.TODO(), radar.SearchGlobalParams{
    Query: cloudflare.F("United"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response.Search)
}
```

200 example

```
{
  "result": {
    "search": [
      {
        "code": "13335",
        "name": "Cloudflare",
        "type": "asn"
      }
    ]
  },
  "success": true
}
```

##### Returns Examples

200 example

```
{
  "result": {
    "search": [
      {
        "code": "13335",
        "name": "Cloudflare",
        "type": "asn"
      }
    ]
  },
  "success": true
}
```