Skip to content
Start here

Snapshot

Capture multiple page formats.
POST/accounts/{account_id}/browser-rendering/snapshot
ModelsExpand Collapse
SnapshotCreateResponse object { accessibilityTree, content, json, 5 more }
accessibilityTree: optional object { role, autocomplete, checked, 23 more }

Accessibility tree node

role: string
autocomplete: optional string
checked: optional boolean or "mixed"
One of the following:
boolean
"mixed"
children: optional array of unknown
description: optional string
disabled: optional boolean
expanded: optional boolean
focused: optional boolean
haspopup: optional string
invalid: optional string
keyshortcuts: optional string
level: optional number
multiline: optional boolean
multiselectable: optional boolean
name: optional string
orientation: optional string
pressed: optional boolean or "mixed"
One of the following:
boolean
"mixed"
readonly: optional boolean
required: optional boolean
roledescription: optional string
selected: optional boolean
value: optional string or number
One of the following:
string
number
valuemax: optional number
valuemin: optional number
valuetext: optional string
content: optional string

HTML content.

json: optional map[unknown] or array of unknown

Data extracted from the page HTML by the requested prompt.

One of the following:
map[unknown]
array of unknown
markdown: optional string

Markdown content. Prefixed with YAML frontmatter (e.g. title) when the page provides that metadata.

pdf: optional string

Base64 encoded PDF.

scrape: optional array of object { results, selector }

Elements matched by the requested selectors.

results: array of object { attributes, html, left, 4 more }
attributes: array of object { name, value }
name: string
value: string
html: string
left: number
top: number
height: optional number
text: optional string
width: optional number
selector: string
screenshot: optional string

Base64 encoded image.

⌂ 换网址