Pages

Screenshot Capture

Capture high-quality screenshots of any webpage using headless browser. Price: $0.008.

post/screenshot

Request

  • Base URL: https://api.weblens.dev
  • URL: https://api.weblens.dev/screenshot
  • Auth: API key in header Payment-Signature

Request body

urlstring uri required

The URL to process

widthnumber

Viewport width in pixels

heightnumber

Viewport height in pixels

fullPageboolean

Capture the whole scrollable page, not just the viewport

selectorstring

CSS selector to capture

timeoutnumber

Request timeout in milliseconds

Example request

{
  "url": "https://example.com",
  "selector": "p",
  "timeout": 10000
}

Response

PNG screenshot of a page, base64-encoded.

urlstring

Screenshotted URL

imagestring

Base64-encoded PNG image

capturedAtstring

ISO timestamp

dimensionsobject
requestIdstring

Changes

No recorded changes to this operation across all 1 revision of this API.