Fetches a script detected by Page Shield by script ID.
/zones/{zone_id}/page_shield/scripts/{script_id}
get
Page Shield
page-shield-get-a-page-shield-script
{
"business": true,
"enterprise": true,
"free": false,
"pro": true
} null [
{
"in": "path",
"name": "zone_id",
"required": true,
"schema": {
"description": "Identifier",
"example": "023e105f4ecef8ad9ca31a8372d0c353",
"maxLength": 32,
"readOnly": true,
"type": "string"
}
},
{
"in": "path",
"name": "script_id",
"required": true,
"schema": {
"description": "The ID of the resource.",
"example": "c9ef84a6bf5e47138c75d95e2f933e8f",
"maxLength": 32,
"minLength": 32,
"type": "string"
}
}
] null {
"200": {
"content": {
"application/json": {
"schema": {
"allOf": [
{
"properties": {
"added_at": {
"example": "2021-08-18T10:51:10.09615Z"
},
"domain_reported_malicious": {
"example": false
},
"fetched_at": {
"example": "2021-09-02T10:17:54Z"
},
"first_page_url": {
"example": "blog.cloudflare.com/page"
},
"first_seen_at": {
"example": "2021-08-18T10:51:08Z"
},
"hash": {
"example": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"host": {
"example": "blog.cloudflare.com"
},
"id": {
"example": "c9ef84a6bf5e47138c75d95e2f933e8f"
},
"js_integrity_score": {
"example": 10
},
"last_seen_at": {
"example": "2021-09-02T09:57:54Z"
},
"page_urls": {
"example": [
"blog.cloudflare.com/page1",
"blog.cloudflare.com/page2"
]
},
"url": {
"example": "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/js/bootstrap.min.js"
},
"url_contains_cdn_cgi_path": {
"example": false
}
}
},
{
"properties": {
"versions": {
"example": [
{
"fetched_at": "2021-08-18T10:51:08Z",
"hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b423",
"js_integrity_score": 2
}
],
"items": {
"description": "The version of the analyzed script.",
"properties": {
"fetched_at": {
"description": "The timestamp of when the script was last fetched.",
"nullable": true,
"type": "string"
},
"hash": {
"description": "The computed hash of the analyzed script.",
"maxLength": 64,
"minLength": 64,
"nullable": true,
"type": "string"
},
"js_integrity_score": {
"description": "The integrity score of the JavaScript content.",
"maximum": 99,
"minimum": 1,
"nullable": true,
"type": "integer"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
}
}
}
]
}
}
},
"description": "Get a Page Shield script response"
},
"4XX": {
"content": {
"application/json": {
"schema": {
"allOf": [
{
"allOf": [
{
"properties": {
"added_at": {
"example": "2021-08-18T10:51:10.09615Z"
},
"domain_reported_malicious": {
"example": false
},
"fetched_at": {
"example": "2021-09-02T10:17:54Z"
},
"first_page_url": {
"example": "blog.cloudflare.com/page"
},
"first_seen_at": {
"example": "2021-08-18T10:51:08Z"
},
"hash": {
"example": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
},
"host": {
"example": "blog.cloudflare.com"
},
"id": {
"example": "c9ef84a6bf5e47138c75d95e2f933e8f"
},
"js_integrity_score": {
"example": 10
},
"last_seen_at": {
"example": "2021-09-02T09:57:54Z"
},
"page_urls": {
"example": [
"blog.cloudflare.com/page1",
"blog.cloudflare.com/page2"
]
},
"url": {
"example": "https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.6.0/js/bootstrap.min.js"
},
"url_contains_cdn_cgi_path": {
"example": false
}
}
},
{
"properties": {
"versions": {
"example": [
{
"fetched_at": "2021-08-18T10:51:08Z",
"hash": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b423",
"js_integrity_score": 2
}
],
"items": {
"description": "The version of the analyzed script.",
"properties": {
"fetched_at": {
"description": "The timestamp of when the script was last fetched.",
"nullable": true,
"type": "string"
},
"hash": {
"description": "The computed hash of the analyzed script.",
"maxLength": 64,
"minLength": 64,
"nullable": true,
"type": "string"
},
"js_integrity_score": {
"description": "The integrity score of the JavaScript content.",
"maximum": 99,
"minimum": 1,
"nullable": true,
"type": "integer"
}
},
"type": "object"
},
"nullable": true,
"type": "array"
}
}
}
]
},
{
"properties": {
"errors": {
"allOf": [
{
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
}
],
"example": [
{
"code": 7003,
"message": "No route for the URI"
}
],
"minLength": 1
},
"messages": {
"allOf": [
{
"example": [],
"items": {
"properties": {
"code": {
"minimum": 1000,
"type": "integer"
},
"message": {
"type": "string"
}
},
"required": [
"code",
"message"
],
"type": "object",
"uniqueItems": true
},
"type": "array"
}
],
"example": []
},
"result": {
"enum": [
null
],
"nullable": true,
"type": "object"
},
"success": {
"description": "Whether the API call was successful",
"enum": [
false
],
"example": false,
"type": "boolean"
}
},
"required": [
"success",
"errors",
"messages",
"result"
],
"type": "object"
}
]
}
}
},
"description": "Get a Page Shield script response failure"
}
} [
{
"api_email": [],
"api_key": []
}
]