---
title: Scripts
---

[Skip to content](#%5Ftop) 

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

[Page Shield](https://developers.cloudflare.com/api/typescript/resources/page%5Fshield)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Scripts

##### [List detected scripts](https://developers.cloudflare.com/api/typescript/resources/page%5Fshield/subresources/scripts/methods/list)

client.pageShield.scripts.list(ScriptListParams { zone\_id, direction, exclude\_cdn\_cgi, 11 more } params, RequestOptionsoptions?): SinglePage<[ScriptListResponse](https://developers.cloudflare.com/api/typescript/resources/page%5Fshield#%28resource%29%20page%5Fshield.scripts%20%3E%20%28model%29%20script%5Flist%5Fresponse%20%3E%20%28schema%29) { id, added\_at, first\_seen\_at, 18 more } \>

GET/zones/{zone\_id}/page\_shield/scripts

##### [Get a detected script](https://developers.cloudflare.com/api/typescript/resources/page%5Fshield/subresources/scripts/methods/get)

client.pageShield.scripts.get(stringscriptID, ScriptGetParams { zone\_id } params, RequestOptionsoptions?): [ScriptGetResponse](https://developers.cloudflare.com/api/typescript/resources/page%5Fshield#%28resource%29%20page%5Fshield.scripts%20%3E%20%28model%29%20script%5Fget%5Fresponse%20%3E%20%28schema%29) { id, added\_at, first\_seen\_at, 19 more } | null

GET/zones/{zone\_id}/page\_shield/scripts/{script\_id}

##### ModelsExpand Collapse 

ScriptListResponse { id, added\_at, first\_seen\_at, 18 more } 

id: string

Identifier

maxLength32

added\_at: string

formatdate-time

first\_seen\_at: string

formatdate-time

host: string

last\_seen\_at: string

formatdate-time

url: string

url\_contains\_cdn\_cgi\_path: boolean

cryptomining\_score?: number | null

The cryptomining score of the JavaScript content.

maximum99

minimum1

Deprecateddataflow\_score?: number | null

The dataflow score of the JavaScript content. This field has been deprecated in favour of js\_integrity\_score.

maximum99

minimum1

domain\_reported\_malicious?: boolean

fetched\_at?: string | null

The timestamp of when the script was last fetched.

first\_page\_url?: string

hash?: string | null

The computed hash of the analyzed script.

maxLength64

minLength64

js\_integrity\_score?: number | null

The integrity score of the JavaScript content.

maximum99

minimum1

magecart\_score?: number | null

The magecart score of the JavaScript content.

maximum99

minimum1

malicious\_domain\_categories?: Array<string\>

malicious\_url\_categories?: Array<string\>

malware\_score?: number | null

The malware score of the JavaScript content.

maximum99

minimum1

Deprecatedobfuscation\_score?: number | null

The obfuscation score of the JavaScript content. This field has been deprecated in favour of js\_integrity\_score.

maximum99

minimum1

page\_urls?: Array<string\>

url\_reported\_malicious?: boolean

ScriptGetResponse { id, added\_at, first\_seen\_at, 19 more } 

id: string

Identifier

maxLength32

added\_at: string

formatdate-time

first\_seen\_at: string

formatdate-time

host: string

last\_seen\_at: string

formatdate-time

url: string

url\_contains\_cdn\_cgi\_path: boolean

cryptomining\_score?: number | null

The cryptomining score of the JavaScript content.

maximum99

minimum1

Deprecateddataflow\_score?: number | null

The dataflow score of the JavaScript content. This field has been deprecated in favour of js\_integrity\_score.

maximum99

minimum1

domain\_reported\_malicious?: boolean

fetched\_at?: string | null

The timestamp of when the script was last fetched.

first\_page\_url?: string

hash?: string | null

The computed hash of the analyzed script.

maxLength64

minLength64

js\_integrity\_score?: number | null

The integrity score of the JavaScript content.

maximum99

minimum1

magecart\_score?: number | null

The magecart score of the JavaScript content.

maximum99

minimum1

malicious\_domain\_categories?: Array<string\>

malicious\_url\_categories?: Array<string\>

malware\_score?: number | null

The malware score of the JavaScript content.

maximum99

minimum1

Deprecatedobfuscation\_score?: number | null

The obfuscation score of the JavaScript content. This field has been deprecated in favour of js\_integrity\_score.

maximum99

minimum1

page\_urls?: Array<string\>

url\_reported\_malicious?: boolean

versions?: Array<Version\> | null

cryptomining\_score?: number | null

The cryptomining score of the JavaScript content.

maximum99

minimum1

Deprecateddataflow\_score?: number | null

The dataflow score of the JavaScript content. This field has been deprecated in favour of js\_integrity\_score.

maximum99

minimum1

fetched\_at?: string | null

The timestamp of when the script was last fetched.

hash?: string | null

The computed hash of the analyzed script.

maxLength64

minLength64

js\_integrity\_score?: number | null

The integrity score of the JavaScript content.

maximum99

minimum1

magecart\_score?: number | null

The magecart score of the JavaScript content.

maximum99

minimum1

malware\_score?: number | null

The malware score of the JavaScript content.

maximum99

minimum1

Deprecatedobfuscation\_score?: number | null

The obfuscation score of the JavaScript content. This field has been deprecated in favour of js\_integrity\_score.

maximum99

minimum1