Pages

Resilient Fetch

Resilient fetch with automatic fallback. Tries the fast native scraper first, then re-fetches through headless Chromium for client-rendered pages and sites that refuse bare HTTP clients. The response reports which tier served it. Price: $0.008 (70% off when served from cache); an x402 payment is at least $0.004.

post/fetch/resilient

Request

  • Base URL: https://api.weblens.dev
  • URL: https://api.weblens.dev/fetch/resilient
  • 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": 10000
}

Response

Native fetch, falling back to headless Chromium when it fails.

urlstring

Fetched URL

titlestring

Page title

contentstring

Clean markdown content

tierstring
fetchedAtstring

ISO timestamp

providerobject

Provider info: id, name, isProxied, attemptsUsed

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.