Screenshot Examples · Example 1 of 3 in What to Capture

A capture of one element (selector=h1) on example.com: only the heading, not the page.

Asks for only the h1 element of https://example.com (selector=h1).

When the CSS selector matches, the image shows just that element, here the page's main heading. The file name in screenshot_url starts with the host name and ends with a random part: example-com-KRtHxyMHRgA8gMlUSlbV7dC7.jpeg.

Request

What this example sends. Every parameter is documented on Screenshot; the exact request is in the code panel.

ParameterValue
urlqueryhttps://example.com
selectorqueryh1

Reference updated