Pages

Fetch Webpage (Basic)

Fetch and convert any webpage to clean markdown. Fast, no JavaScript rendering. Perfect for static content, articles, and documentation. Price: $0.002 (70% off when served from cache); an x402 payment is at least $0.004.

post/fetch/basic

Request

  • Base URL: https://api.weblens.dev
  • URL: https://api.weblens.dev/fetch/basic
  • 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,
  "cache": true,
  "cacheTtl": 3600
}

Response

Any webpage as clean markdown, no JavaScript rendering.

urlstring

Fetched URL

titlestring

Page title

contentstring

Clean markdown content

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.