Screenshot
https://api.deepinfo.com/v1/lookup/screenshotOpens a web page in a real browser and returns a link to a screenshot of it. Options control the viewport, full-page capture, mobile emulation, image format and how long to wait for the page.
Use it to see what a site shows right now, for example to review a suspicious or look-alike domain without visiting it yourself. A request takes a few seconds (about 5 s in our tests).
All options are query parameters; the defaults give a 1366 × 768 JPEG of the visible part of the page. To send the options as a JSON body instead (for long values such as custom_html), use Screenshot (POST).
Authentication
Send your API key in the apikey request header.
Query Parameters
| Parameter | Required | Description |
|---|---|---|
url | Required | Web page to capture, e.g. https://www.deepinfo.com. It can be left out only when custom_html is sent.Example https://www.deepinfo.com |
width | Optional | Browser viewport width, in pixels. Range 100–3000. Default 1366.Example 1366 |
height | Optional | Browser viewport height, in pixels. Range 100–3000. Default 768.Example 768 |
full_ | Optional | Capture the whole page, not only the visible viewport. Default false.Example false |
mobile | Optional | Emulate a mobile device. The viewport then defaults to 360 × 740. Default false.Example false |
landscape | Optional | Emulate landscape orientation. Default false.Example false |
touchscreen | Optional | Emulate a touch screen. Default false.Example false |
retina | Optional | Render at twice the pixel density for a sharper image. Ignored when scale is set. Default false.Example false |
scale | Optional | Device pixel ratio: how many screen pixels draw one CSS pixel. Range 0.5–4. |
image_ | Optional | Image format. One of jpeg, png. Default jpeg.Example jpeg |
quality | Optional | JPEG quality. Used only when image_output is jpeg. Range 0–100. |
thumbnail_ | Optional | Resize the image to this width, keeping the aspect ratio. Must not be larger than the screenshot width. Minimum 50. |
mode | Optional | fast captures as soon as the HTML document has loaded (domcontentloaded); slow waits until network activity stops. One of fast, slow. Default fast.Example fast |
timeout | Optional | Maximum time to wait for the page to load, in milliseconds. Range 0–90000. Default 30000.Example 30000 |
delay | Optional | Extra wait after the page has loaded, in milliseconds, before the screenshot is taken. Maximum 30000. Default 0.Example 0 |
lazy_ | Optional | Scroll through the whole page first, so that lazy-loaded images are rendered. Default false.Example false |
block_ | Optional | Block advertisements. Default false.Example false |
no_ | Optional | Hide cookie consent banners. Default false.Example false |
no_ | Optional | Disable JavaScript on the page. Default false.Example false |
selector | Optional | CSS selector of one element, e.g. body > .container > .logo. When it matches, only that element is captured. |
scroll_ | Optional | CSS selector of an element to scroll to before the screenshot, e.g. body > .footer. |
accept_ | Optional | Browser Accept-Language value. Default en-US.Example en-US |
latitude | Optional | Latitude reported by the browser's Geolocation API. Requires longitude. Range -80–80. |
longitude | Optional | Longitude reported by the browser's Geolocation API. Requires latitude. Range -180–180. |
user_ | Optional | Browser user agent string. |
cookies | Optional | Cookies to set in the browser, e.g. name1=value1; name2=value2. |
headers | Optional | Extra request headers, e.g. Header-1:value1; Header-2:value2. |
css | Optional | CSS code to inject into the page, e.g. h1 { color: red }. |
css_ | Optional | URL of a stylesheet to inject into the page. |
custom_ | Optional | HTML to render instead of loading url. For long HTML, use Screenshot (POST). |
proxy | Optional | Proxy to load the page through, in the form user:password@host:port. |
Response Fields
| Field | Description |
|---|---|
url | The requested URL |
redirected_ | The URL the browser ended up on after redirects |
screenshot_ | Link to the image (JPEG, or PNG with image_output=png). It is a signed link that expires after 7 days: download the image if you need to keep it |
connection_ | success when the page was loaded |
check_ | When the screenshot was taken (UTC) |
Response Schema
Inferred from examples Built from the saved 2xx example response: the fields it contains, with the types seen there. It is not a contract.
| Field | Type | Example |
|---|---|---|
url | string | "https://www.deepinfo.com" |
redirected_url | string | "https://www.deepinfo.com/" |
check_date | string | "2026-09-23T14:44:23.198Z" |
connection_status | string | "success" |
screenshot_url | string | "https://diss-999.storage.googleapis…" |
Errors
400 (10400) if url is missing or invalid (and no custom_html is sent), or an option is out of range. The validation error currently names the parameter domain, although the request parameter is url (see the example). 500 for an unexpected error. 503 means the service is busy or out of memory: retry shortly. See Getting Started → Errors.
Examples
Saved examples from the Deepinfo API. Selecting one loads it into the request and response panels.
Worked Examples
Worked examples of this endpoint, each on its own page with the exact request and the response it returns.
- Default ScreenshotA screenshot of www.deepinfo.com with the defaults: a 1366 × 768 JPEG of the visible part of the page.
- Full-Page ScreenshotA full-page screenshot (full_page=true): the whole page from top to bottom, not only the first screen.
- Mobile DeviceA mobile screenshot (mobile=true): the page on a phone-sized 360 × 740 viewport.
- PNG Instead of JPEGA PNG screenshot (image_output=png): screenshot_url now ends in .png instead of .jpeg.
- One Element OnlyA capture of one element (selector=h1) on example.com: only the heading, not the page.