## Get URL scan's HAR `client.urlScanner.scans.har(stringscanId, ScanHARParamsparams, RequestOptionsoptions?): ScanHARResponse` **get** `/accounts/{account_id}/urlscanner/v2/har/{scan_id}` Get a URL scan's HAR file. See HAR spec at http://www.softwareishard.com/blog/har-12-spec/. ### Parameters - `scanId: string` Scan UUID. - `params: ScanHARParams` - `account_id: string` Account ID. ### Returns - `ScanHARResponse` - `log: Log` - `creator: Creator` - `comment: string` - `name: string` - `version: string` - `entries: Array` - `_initialPriority: string` - `_initiator_type: string` - `_priority: string` - `_requestId: string` - `_requestTime: number` - `_resourceType: string` - `cache: unknown` - `connection: string` - `pageref: string` - `request: Request` - `bodySize: number` - `headers: Array
` - `name: string` - `value: string` - `headersSize: number` - `httpVersion: string` - `method: string` - `url: string` - `response: Response` - `_transferSize: number` - `bodySize: number` - `content: Content` - `mimeType: string` - `size: number` - `compression?: number` - `headers: Array
` - `name: string` - `value: string` - `headersSize: number` - `httpVersion: string` - `redirectURL: string` - `status: number` - `statusText: string` - `serverIPAddress: string` - `startedDateTime: string` - `time: number` - `pages: Array` - `id: string` - `pageTimings: PageTimings` - `onContentLoad: number` - `onLoad: number` - `startedDateTime: string` - `title: string` - `version: string` ### Example ```node import Cloudflare from 'cloudflare'; const client = new Cloudflare({ apiToken: process.env['CLOUDFLARE_API_TOKEN'], // This is the default and can be omitted }); const response = await client.urlScanner.scans.har('182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e', { account_id: 'account_id', }); console.log(response.log); ``` #### Response ```json { "log": { "creator": { "comment": "https://github.com/sitespeedio/chrome-har", "name": "chrome-har", "version": "0.13.1" }, "entries": [ { "_initialPriority": "VeryHigh", "_initiator_type": "other", "_priority": "VeryHigh", "_requestId": "DDC779F0CB3746BAF283EC1A51B0F2F8", "_requestTime": 114135.331081, "_resourceType": "document", "cache": {}, "connection": "33", "pageref": "page_1", "request": { "bodySize": 0, "headers": [ { "name": "Upgrade-Insecure-Requests", "value": "1" } ], "headersSize": 197, "httpVersion": "http/1.1", "method": "GET", "url": "http://example.com/" }, "response": { "_transferSize": 1071, "bodySize": 648, "content": { "mimeType": "text/html", "size": 1256, "compression": 608 }, "headers": [ { "name": "Content-Encoding", "value": "gzip" } ], "headersSize": 423, "httpVersion": "http/1.1", "redirectURL": "redirectURL", "status": 200, "statusText": "OK" }, "serverIPAddress": "2606:2800:220:1:248:1893:25c8:1946", "startedDateTime": "2023-05-03T17:05:13.196Z", "time": 268.64 } ], "pages": [ { "id": "page_1", "pageTimings": { "onContentLoad": 305.408, "onLoad": 305.169 }, "startedDateTime": "2023-05-03T17:05:13.195Z", "title": "http://example.com/" } ], "version": "1.2" } } ```