---
title: Bulk create 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**

# Bulk create URL Scans

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

POST/accounts/{account\_id}/urlscanner/v2/bulk

Submit URLs to scan. Check limits at https://developers.cloudflare.com/security-center/investigate/scan-limits/ and take into account scans submitted in bulk have lower priority and may take longer to finish.

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

</summary>

AccountID param.Field\[string]

Path param: Account ID.

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

<details>

<summary>

Body param.Field\[\[]ScanBulkNewParamsBody]Optional

Body param: List of urls to scan (up to a 100).

</summary>

URL string

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20bulk_create%20%3E%20(params)%20default%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20url">Link to this property</a>

AgentReadiness boolOptional

Enable agent readiness checks.

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20bulk_create%20%3E%20(params)%20default%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20agentReadiness">Link to this property</a>

Customagent stringOptional

maxLength4096

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20bulk_create%20%3E%20(params)%20default%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20customagent">Link to this property</a>

CustomHeaders map\[string, string]Optional

Set custom headers.

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20bulk_create%20%3E%20(params)%20default%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20customHeaders">Link to this property</a>

Referer stringOptional

maxLength4096

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20bulk_create%20%3E%20(params)%20default%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20referer">Link to this property</a>

<details>

<summary>

ScreenshotsResolutions \[]ScanBulkNewParamsBodyScreenshotsResolutionOptional

Take multiple screenshots targeting different device types.

</summary>

One of the following:

const ScanBulkNewParamsBodyScreenshotsResolutionDesktop ScanBulkNewParamsBodyScreenshotsResolution = "desktop"

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20bulk_create%20%3E%20(params)%20default%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20screenshotsResolutions%20%3E%20(items)%20%3E%20(member)%200">Link to this property</a>

const ScanBulkNewParamsBodyScreenshotsResolutionMobile ScanBulkNewParamsBodyScreenshotsResolution = "mobile"

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20bulk_create%20%3E%20(params)%20default%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20screenshotsResolutions%20%3E%20(items)%20%3E%20(member)%201">Link to this property</a>

const ScanBulkNewParamsBodyScreenshotsResolutionTablet ScanBulkNewParamsBodyScreenshotsResolution = "tablet"

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20bulk_create%20%3E%20(params)%20default%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20screenshotsResolutions%20%3E%20(items)%20%3E%20(member)%202">Link to this property</a>

</details>

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20bulk_create%20%3E%20(params)%20default%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20screenshotsResolutions">Link to this property</a>

<details>

<summary>

Visibility ScanBulkNewParamsBodyVisibilityOptional

The option <code>Public</code> means it will be included in listings like recent scans and search results. <code>Unlisted</code> means it will not be included in the aforementioned listings, users will need to have the scan’s ID to access it. A a scan will be automatically marked as unlisted if it fails, if it contains potential PII or other sensitive material.

</summary>

One of the following:

const ScanBulkNewParamsBodyVisibilityPublic ScanBulkNewParamsBodyVisibility = "Public"

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20bulk_create%20%3E%20(params)%20default%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20visibility%20%3E%20(member)%200">Link to this property</a>

const ScanBulkNewParamsBodyVisibilityUnlisted ScanBulkNewParamsBodyVisibility = "Unlisted"

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20bulk_create%20%3E%20(params)%20default%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20visibility%20%3E%20(member)%201">Link to this property</a>

</details>

<a href="#(resource)%20url_scanner.scans%20%3E%20(method)%20bulk_create%20%3E%20(params)%20default%20%3E%20(param)%20body%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20visibility">Link to this property</a>

</details>

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

</details>

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

##### ReturnsExpand Collapse

<details>

<summary>

type ScanBulkNewResponse \[]<a href="https://developers.cloudflare.com/api/go/resources/url_scanner#(resource)%20url_scanner.scans%20%3E%20(model)%20ScanBulkNewResponse%20%3E%20(schema)">ScanBulkNewResponse</a>

</summary>

API string

URL to api report.

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

Result string

URL to report.

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

URL string

Submitted URL

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

UUID string

Scan ID.

formatuuid

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

<details>

<summary>

Visibility ScanBulkNewResponseVisibility

Submitted visibility status.

</summary>

One of the following:

const ScanBulkNewResponseVisibilityPublic ScanBulkNewResponseVisibility = "public"

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

const ScanBulkNewResponseVisibilityUnlisted ScanBulkNewResponseVisibility = "unlisted"

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

</details>

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

<details>

<summary>

Options ScanBulkNewResponseOptionsOptional

</summary>

Useragent stringOptional

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

</details>

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

</details>

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

### Bulk create 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"),
  )
  response, err := client.URLScanner.Scans.BulkNew(context.TODO(), url_scanner.ScanBulkNewParams{
    AccountID: cloudflare.F("account_id"),
  })
  if err != nil {
    panic(err.Error())
  }
  fmt.Printf("%+v\n", response)
}
```

200 example

```
[
  {
    "api": "api",
    "result": "result",
    "url": "url",
    "uuid": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "visibility": "public",
    "options": {
      "useragent": "useragent"
    }
  }
]
```

##### Returns Examples

200 example

```
[
  {
    "api": "api",
    "result": "result",
    "url": "url",
    "uuid": "182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
    "visibility": "public",
    "options": {
      "useragent": "useragent"
    }
  }
]
```