Get a preview of the content downloaded during a URL analysis

When a URL Analysis downloads a non-binary response (HTML, JSON, XML, plain text, …), this endpoint returns UTF-8 plain-text preview slices of that content.

The endpoint pages through the file: each request returns up to limit bytes starting at cursor, and reports a new cursor in the response so you can continue from where you left off.

{
  "data": "<preview text>",
  "meta": {
    "cursor": 65536
  }
}

Note that only the first page (cursor == 0) consumes intelligence download quota; subsequent paged calls do not.

Path Params
string
required

URL analysis ID. Must match the format u-<sha256>-<suffix>. File analyses do not have a preview.

Query Params
int32
Defaults to 3,145,728 bytes (3MB)

The maximum number of bytes to return in this request. Max value 3,145,728 bytes (3MB).

int32
Defaults to 0

Byte offset to start from

Headers
string
required

Your API key

Responses

Language
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json