---
title: Search URL scans
---

[Skip to content](#_top)

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

[URL Scanner](https://developers.cloudflare.com/api/go/resources/url_scanner)

[Scans](https://developers.cloudflare.com/api/go/resources/url_scanner/subresources/scans)

Copy Markdown

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

---

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

# Search URL scans

client.URLScanner.Scans.List(ctx, params) (\*[ScanListResponse](<https://developers.cloudflare.com/api/go/resources/url_scanner#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)>), error)

GET/accounts/{account\_id}/urlscanner/v2/search

Use a subset of ElasticSearch Query syntax to filter scans. Some example queries:  
  
\- ‘path:“/bundles/jquery.js”’: Searches for scans who requested resources with the given path.  
\- ‘page.asn:AS24940 AND hash:xxx’: Websites hosted in AS24940 where a resource with the given hash was downloaded.  
\- ‘page.domain:microsoft\* AND verdicts.malicious:true AND NOT page.domain:microsoft.com’: malicious scans whose hostname starts with “microsoft”.  
\- ‘apikey:me AND date:\[2025-01 TO 2025-02]’: my scans from 2025 January to 2025 February.

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

`URL Scanner Write``URL Scanner Read`

##### ParametersExpand Collapse

<details>

<summary>

params ScanListParams

</summary>

AccountID param.Field\[string]

Path param: Account ID.

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20account_id">Link to this property</a>

Q param.Field\[string]Optional

Query param: Filter scans

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20q">Link to this property</a>

Size param.Field\[int64]Optional

Query param: Limit the number of objects in the response.

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20list%20%3E%20(params)%20default%20%3E%20(param)%20size">Link to this property</a>

</details>

[Link to this property](<#(resource)%20url_scanner.scans%20%3E%20(method)%20list%20%3E%20(params)%20default>)

##### ReturnsExpand Collapse

<details>

<summary>

type ScanListResponse struct{…}

</summary>

<details>

<summary>

Results \[]ScanListResponseResult

</summary>

ID string

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20_id">Link to this property</a>

<details>

<summary>

Page ScanListResponseResultsPage

</summary>

ASN string

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20page%20%3E%20(property)%20asn">Link to this property</a>

Country string

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20page%20%3E%20(property)%20country">Link to this property</a>

IP string

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20page%20%3E%20(property)%20ip">Link to this property</a>

URL string

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20page%20%3E%20(property)%20url">Link to this property</a>

</details>

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20page">Link to this property</a>

Result string

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20result">Link to this property</a>

<details>

<summary>

Stats ScanListResponseResultsStats

</summary>

DataLength float64

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20stats%20%3E%20(property)%20dataLength">Link to this property</a>

Requests float64

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20stats%20%3E%20(property)%20requests">Link to this property</a>

UniqCountries float64

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20stats%20%3E%20(property)%20uniqCountries">Link to this property</a>

UniqIPs float64

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20stats%20%3E%20(property)%20uniqIPs">Link to this property</a>

</details>

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20stats">Link to this property</a>

<details>

<summary>

Task ScanListResponseResultsTask

</summary>

Time string

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20task%20%3E%20(property)%20time">Link to this property</a>

URL string

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20task%20%3E%20(property)%20url">Link to this property</a>

UUID string

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20task%20%3E%20(property)%20uuid">Link to this property</a>

Visibility string

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20task%20%3E%20(property)%20visibility">Link to this property</a>

</details>

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20task">Link to this property</a>

<details>

<summary>

Verdicts ScanListResponseResultsVerdicts

</summary>

Malicious bool

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20verdicts%20%3E%20(property)%20malicious">Link to this property</a>

</details>

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results%20%3E%20(items)%20%3E%20(property)%20verdicts">Link to this property</a>

</details>

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)%20%3E%20(property)%20results">Link to this property</a>

</details>

[Link to this property](<#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanListResponse%20%3E%20(schema)>)

### Search URL scans

Go

HTTPTypeScriptPythonGoTerraform

```
package main

import (
  "context"
  "fmt"

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

func main() {
  client := cloudflare.NewClient(
    option.WithAPIToken("Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYY"),
  )
  scans, err := client.URLScanner.Scans.List(context.TODO(), url_scanner.ScanListParams{
    AccountID: cloudflare.F("account_id"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", scans.Results)
}
```

200 example

```
{
  "results": [
    {
      "_id": "9626f773-9ffb-4cfb-89d3-30b120fc8011",
      "page": {
        "asn": "AS15133",
        "country": "US",
        "ip": "93.184.215.14",
        "url": "https://example.com"
      },
      "result": "https://radar.clouflare.com/scan/9626f773-9ffb-4cfb-89d3-30b120fc8011",
      "stats": {
        "dataLength": 2512,
        "requests": 2,
        "uniqCountries": 1,
        "uniqIPs": 1
      },
      "task": {
        "time": "2024-09-30T23:54:02.881Z",
        "url": "https://example.com",
        "uuid": "9626f773-9ffb-4cfb-89d3-30b120fc8011",
        "visibility": "public"
      },
      "verdicts": {
        "malicious": true
      }
    }
  ]
}
```

##### Returns Examples

200 example

```
{
  "results": [
    {
      "_id": "9626f773-9ffb-4cfb-89d3-30b120fc8011",
      "page": {
        "asn": "AS15133",
        "country": "US",
        "ip": "93.184.215.14",
        "url": "https://example.com"
      },
      "result": "https://radar.clouflare.com/scan/9626f773-9ffb-4cfb-89d3-30b120fc8011",
      "stats": {
        "dataLength": 2512,
        "requests": 2,
        "uniqCountries": 1,
        "uniqIPs": 1
      },
      "task": {
        "time": "2024-09-30T23:54:02.881Z",
        "url": "https://example.com",
        "uuid": "9626f773-9ffb-4cfb-89d3-30b120fc8011",
        "visibility": "public"
      },
      "verdicts": {
        "malicious": true
      }
    }
  ]
}
```