Pages

Fetch Webpage (Pro)

Fetch webpage with full JavaScript rendering using headless browser. Perfect for SPAs, React/Vue apps, and dynamic content that requires JS execution. Price: $0.006, up to 3x on bot-protected or complex sites (70% off when served from cache); an x402 payment is at least $0.004.

post/fetch/pro

Request

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

Request body

urlstring uri required

The URL to process

timeoutnumber

Request timeout in milliseconds

cacheboolean

Serve a cached copy when one exists (cached responses are 70% off)

cacheTtlnumber

How long to cache this response, in seconds

waitForstring

CSS selector to wait for (Pro tier only)

Example request

{
  "url": "https://example.com",
  "timeout": 15000,
  "cache": true,
  "waitFor": "p"
}

Response

Same, but rendered in headless Chromium first — for SPAs.

urlstring

Fetched URL

titlestring

Page title

contentstring

Clean markdown content after JS rendering

tierstring
fetchedAtstring

ISO timestamp

cachedboolean

Present and true when the response was served from cache

requestIdstring

Changes

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