Skip to content
Start here

Scripts

List Page Shield scripts
page_shield.scripts.list(ScriptListParams**kwargs) -> SyncSinglePage[Script]
GET/zones/{zone_id}/page_shield/scripts
Get a Page Shield script
page_shield.scripts.get(strscript_id, ScriptGetParams**kwargs) -> ScriptGetResponse
GET/zones/{zone_id}/page_shield/scripts/{script_id}
ModelsExpand Collapse
class Script:
id: str

Identifier

maxLength32
added_at: datetime
formatdate-time
first_seen_at: datetime
formatdate-time
host: str
last_seen_at: datetime
formatdate-time
url: str
url_contains_cdn_cgi_path: bool
cryptomining_score: Optional[int]

The cryptomining score of the JavaScript content.

maximum99
minimum1
Deprecateddataflow_score: Optional[int]

The dataflow score of the JavaScript content. This field has been deprecated in favour of js_integrity_score.

maximum99
minimum1
domain_reported_malicious: Optional[bool]
fetched_at: Optional[str]

The timestamp of when the script was last fetched.

first_page_url: Optional[str]
hash: Optional[str]

The computed hash of the analyzed script.

maxLength64
minLength64
js_integrity_score: Optional[int]

The integrity score of the JavaScript content.

maximum99
minimum1
magecart_score: Optional[int]

The magecart score of the JavaScript content.

maximum99
minimum1
malicious_domain_categories: Optional[List[str]]
malicious_url_categories: Optional[List[str]]
malware_score: Optional[int]

The malware score of the JavaScript content.

maximum99
minimum1
Deprecatedobfuscation_score: Optional[int]

The obfuscation score of the JavaScript content. This field has been deprecated in favour of js_integrity_score.

maximum99
minimum1
page_urls: Optional[List[str]]
url_reported_malicious: Optional[bool]
class ScriptGetResponse:
id: str

Identifier

maxLength32
added_at: datetime
formatdate-time
first_seen_at: datetime
formatdate-time
host: str
last_seen_at: datetime
formatdate-time
url: str
url_contains_cdn_cgi_path: bool
cryptomining_score: Optional[int]

The cryptomining score of the JavaScript content.

maximum99
minimum1
Deprecateddataflow_score: Optional[int]

The dataflow score of the JavaScript content. This field has been deprecated in favour of js_integrity_score.

maximum99
minimum1
domain_reported_malicious: Optional[bool]
fetched_at: Optional[str]

The timestamp of when the script was last fetched.

first_page_url: Optional[str]
hash: Optional[str]

The computed hash of the analyzed script.

maxLength64
minLength64
js_integrity_score: Optional[int]

The integrity score of the JavaScript content.

maximum99
minimum1
magecart_score: Optional[int]

The magecart score of the JavaScript content.

maximum99
minimum1
malicious_domain_categories: Optional[List[str]]
malicious_url_categories: Optional[List[str]]
malware_score: Optional[int]

The malware score of the JavaScript content.

maximum99
minimum1
Deprecatedobfuscation_score: Optional[int]

The obfuscation score of the JavaScript content. This field has been deprecated in favour of js_integrity_score.

maximum99
minimum1
page_urls: Optional[List[str]]
url_reported_malicious: Optional[bool]
versions: Optional[List[Version]]
cryptomining_score: Optional[int]

The cryptomining score of the JavaScript content.

maximum99
minimum1
Deprecateddataflow_score: Optional[int]

The dataflow score of the JavaScript content. This field has been deprecated in favour of js_integrity_score.

maximum99
minimum1
fetched_at: Optional[str]

The timestamp of when the script was last fetched.

hash: Optional[str]

The computed hash of the analyzed script.

maxLength64
minLength64
js_integrity_score: Optional[int]

The integrity score of the JavaScript content.

maximum99
minimum1
magecart_score: Optional[int]

The magecart score of the JavaScript content.

maximum99
minimum1
malware_score: Optional[int]

The malware score of the JavaScript content.

maximum99
minimum1
Deprecatedobfuscation_score: Optional[int]

The obfuscation score of the JavaScript content. This field has been deprecated in favour of js_integrity_score.

maximum99
minimum1