---
title: Bulk create URL Scans
---

[Skip to content](#_top)

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

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

[Scans](https://developers.cloudflare.com/api/python/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

url\_scanner.scans.bulk\_create(ScanBulkCreateParams\*\*kwargs) -> [ScanBulkCreateResponse](<https://developers.cloudflare.com/api/python/resources/url_scanner#(resource)%20url_scanner.scans%20%3E%20(model)%20scan_bulk_create_response%20%3E%20(schema)>)

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

account\_id: str

Account ID.

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

<details>

<summary>

body: Optional\[Iterable\[Body]]

List of urls to scan (up to a 100).

</summary>

url: str

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

agent\_readiness: Optional\[bool]

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: Optional\[str]

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>

custom\_headers: Optional\[Dict\[str, str]]

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: Optional\[str]

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>

screenshots\_resolutions: Optional\[List\[Literal\["desktop", "mobile", "tablet"]]]

Take multiple screenshots targeting different device types.

</summary>

One of the following:

"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>

"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>

"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: Optional\[Literal\["Public", "Unlisted"]]

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:

"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>

"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>

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

##### ReturnsExpand Collapse

<details>

<summary>

List\[ScanBulkCreateResponseItem]

</summary>

api: str

URL to api report.

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

result: str

URL to report.

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

url: str

Submitted URL

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

uuid: str

Scan ID.

formatuuid

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

<details>

<summary>

visibility: Literal\["public", "unlisted"]

Submitted visibility status.

</summary>

One of the following:

"public"

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

"unlisted"

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20scan_bulk_create_response%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(model)%20scan_bulk_create_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20visibility">Link to this property</a>

<details>

<summary>

options: Optional\[ScanBulkCreateResponseItemOptions]

</summary>

useragent: Optional\[str]

<a href="#(resource)%20url_scanner.scans%20%3E%20(model)%20scan_bulk_create_response%20%3E%20(schema)%20%3E%20(items)%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)%20scan_bulk_create_response%20%3E%20(schema)%20%3E%20(items)%20%3E%20(property)%20options">Link to this property</a>

</details>

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

### Bulk create URL Scans

Python

HTTPTypeScriptPythonGoTerraform

```
import os
from cloudflare import Cloudflare

client = Cloudflare(
    api_token=os.environ.get("CLOUDFLARE_API_TOKEN"),  # This is the default and can be omitted
)
response = client.url_scanner.scans.bulk_create(
    account_id="account_id",
)
print(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"
    }
  }
]
```