url_resource

Represents a URLBehaviour's resource. The dictionary is made up of the following keys:

  • source_url: <string>
  • url: <string>
  • status_code: <integer>
  • net_error: <string> one of NET_ERROR_UNSPECIFIED, NET_ERROR_NAME_NOT_RESOLVED, NET_ERROR_ADDRESS_UNREACHABLE, NET_ERROR_CONNECTION_REFUSED, NET_ERROR_SSL_VERSION_OR_CIPHER_MISMATCH, NET_ERROR_CONNECTION_RESET, NET_ERROR_INVALID_RESPONSE, NET_ERROR_EMPTY_RESPONSE, NET_ERROR_CONNECTION_CLOSED, NET_ERROR_CONNECTION_TIMED_OUT, NET_ERROR_INVALID_HTTP_RESPONSE, NET_ERROR_HTTP, NET_ERROR_INVALID_REDIRECT, NET_ERROR_SSL_KEY_USAGE_INCOMPATIBLE, NET_ERROR_SSL_PROTOCOL_ERROR, NET_ERROR_SSL_UNRECOGNIZED_NAME_ALERT, NET_ERROR_TIMED_OUT, NET_ERROR_TOO_MANY_ACCEPT_CH_RESTARTS, NET_ERROR_TOO_MANY_REDIRECTS, NET_ERROR_UNEXPECTED_PROXY_AUTH or NET_ERROR_UNSAFE_PORT.
  • load_time: <integer> URL loading time (seconds).
  • remote_ip: <string>
  • headers: <list of dictionaries> Every item contains the following keys:
    • name: <string>
    • value: <string>
  • sha256: <string>
  • browser_type: <string> represents the context in which a resource was fetched in a web request. The possible values are BROWSER_RESOURCE_TYPE_OTHER, BROWSER_RESOURCE_TYPE_DOCUMENT, BROWSER_RESOURCE_TYPE_SCRIPT, BROWSER_RESOURCE_TYPE_FETCH, BROWSER_RESOURCE_TYPE_STYLESHEET, BROWSER_RESOURCE_TYPE_IMAGE, BROWSER_RESOURCE_TYPE_FONT, BROWSER_RESOURCE_TYPE_MEDIA, BROWSER_RESOURCE_TYPE_XHR, BROWSER_RESOURCE_TYPE_PING, BROWSER_RESOURCE_TYPE_MAIN_FRAME, BROWSER_RESOURCE_TYPE_SUB_FRAME, BROWSER_RESOURCE_TYPE_WEBSOCKET, BROWSER_RESOURCE_TYPE_OBJECT, BROWSER_RESOURCE_TYPE_OBJECT or BROWSER_RESOURCE_TYPE_CSP_REPORT.
  • size: <integer>
  • url_redirects: <list of strings>
  • method: <string > one of REQUEST_METHOD_UNSPECIFIED, REQUEST_METHOD_GET, REQUEST_METHOD_HEAD, REQUEST_METHOD_POST, REQUEST_METHOD_PUT, REQUEST_METHOD_DELETE, REQUEST_METHOD_TRACE, REQUEST_METHOD_OPTIONS, REQUEST_METHOD_CONNECT, REQUEST_METHOD_PATCH, REQUEST_METHOD_PROPFIND, REQUEST_METHOD_SETUP or REQUEST_METHOD_UNLOCK.
  • type: <string> one of UNKNOWN, HTML, CSS or JAVASCRIPT.
{
    "data": {
        "attributes": {
            "resources": [
              {
                "source_url":"<string>",
                "url":"<string>",
                "status_code":<int>,
                "net_error":"<string>",
                "load_time":<int>,
                "remote_ip":"<string>",
                "headers":[
                   {
                      "value":"<string>",
                      "name":"<string>"
                   },...
                ],
                "sha256":"<string>",
                "browser_type":"<string>",
                "size":<int>,
                "url_redirects":[
                   "<string>"
                ],
                "method":"<string>",
                "type":"<strint>"
           		},...
            ]
        }
    }
}
{
    "data": {
        "attributes": {
            "resources": [
              {
                "source_url":"https://www.google.com/",
                "url":"https://www.google.com/",
                "status_code":200,
                "net_error":null,
                "load_time":192,
                "remote_ip":"142.251.171.105",
                "headers":[
                   {
                      "value":"Ap+qNlnLzJDKSmEHjzM5ilaa908GuehlLqGb6ezME5lkhelj20qVzfv06zPmQ3LodoeujZuphAolrnhnPA8w4AIAAABfeyJvcmlnaW4iOiJodHRwczovL3d3dy5nb29nbGUuY29tOjQ0MyIsImZlYXR1cmUiOiJQZXJtaXNzaW9uc1BvbGljeVVubG9hZCIsImV4cGlyeSI6MTY4NTY2Mzk5OX0=\nAvudrjMZqL7335p1KLV2lHo1kxdMeIN0dUI15d0CPz9dovVLCcXk8OAqjho1DX4s6NbHbA/AGobuGvcZv0drGgQAAAB9eyJvcmlnaW4iOiJodHRwczovL3d3dy5nb29nbGUuY29tOjQ0MyIsImZlYXR1cmUiOiJCYWNrRm9yd2FyZENhY2hlTm90UmVzdG9yZWRSZWFzb25zIiwiZXhwaXJ5IjoxNjkxNTM5MTk5LCJpc1N1YmRvbWFpbiI6dHJ1ZX0=",
                      "name":"origin-trial"
                   },
                   {
                      "value":"CP=\"This is not a P3P policy! See g.co/p3phelp for more info.\"",
                      "name":"p3p"
                   },
                   {
                      "value":"Sec-CH-UA-Platform\nSec-CH-UA-Platform-Version\nSec-CH-UA-Full-Version\nSec-CH-UA-Arch\nSec-CH-UA-Model\nSec-CH-UA-Bitness\nSec-CH-UA-Full-Version-List\nSec-CH-UA-WoW64",
                      "name":"accept-ch"
                   },
                   {
                      "value":"private, max-age=0",
                      "name":"cache-control"
                   },
                   {
                      "value":"Tue, 06 Feb 2024 11:36:22 GMT",
                      "name":"date"
                   },...
                ],
                "sha256":"0bd5f4709d8f91b8f53047e0886dac863d53b1c541209bfa5a1367b85c9c949a",
                "browser_type":"BROWSER_RESOURCE_TYPE_DOCUMENT",
                "size":203821,
                "url_redirects":[
                   "https://google.com/"
                ],
                "method":"REQUEST_METHOD_GET",
                "type":"HTML"
           		},...
            ]
        }
    }
}