Search + K

Command Palette

Search for a command to run...

Sign In

Get screenshot

Deprecated
GET /accounts/{account_id}/urlscanner/scan/{scan_id}/screenshot
Copy endpoint
https://api.cloudflare.com/client/v4

Get scan's screenshot by resolution (desktop/mobile/tablet).

Parameters

path Path Parameters

Name Type
scan_id required

Scan UUID.

string
account_id required

Account ID.

string

query Query Parameters

Name Type
resolution

Target device type.

"desktop" | "mobile" | "tablet"

Responses

200 image/png

Returns the scan's requested screenshot.

string
202 application/json

Scan is in progress. Check current status in result.scan.task.status. Possible statuses: Queued,InProgress,InPostProcessing,Finished.

{
errors: { message: string; }[];
messages: { message: string; }[];
result: { scan: { task: { ... }; }; };
success: boolean;
}

Client Errors

400 application/json

Invalid params.

{ errors: { message: string; }[];messages: { message: string; }[];success: boolean; }
404 application/json

Scan not found.

{ errors: { message: string; }[];messages: { message: string; }[];success: boolean; }