Skip to main content
Enable formats.bytes. bytes.data contains contentType and base64 for the original HTTP body after transport decompression. Browser actions, waiting, and content filters do not alter these bytes.

Download a resource

Abridged response:
Decode base64 with your language’s base64 decoder and save the resulting bytes without text conversion.

Keep a file and its text

For an image that requires a referring page, set sharedParams.headers.Referer to that page’s URL. See location and headers. Request html as well as bytes to compare rendered HTML with the original response.

Limits

The decoded body must fit within 20 MiB; bytes are never returned in a partial form. Targets must be public HTTP(S) URLs. Credentials are removed on cross-origin redirects. Page metadata is available for HTML, not arbitrary binary files.