Skip to main content
POST
/
x402
/
web
/
fetch
Fetch a web page with X402 payment
curl --request POST \
  --url https://api.hyperbrowser.ai/x402/web/fetch \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "stealth": "none",
  "outputs": {
    "formats": [
      {
        "type": "markdown"
      }
    ],
    "sanitize": "none",
    "includeSelectors": [
      "<string>"
    ],
    "excludeSelectors": [
      "<string>"
    ],
    "storageState": {
      "localStorage": {},
      "sessionStorage": {}
    }
  },
  "browser": {
    "screen": {
      "width": 1280,
      "height": 720
    },
    "profileId": "<string>",
    "solveCaptchas": "<string>",
    "location": {
      "country": "<string>",
      "state": "<string>",
      "city": "<string>"
    }
  },
  "navigation": {
    "waitUntil": "load",
    "timeoutMs": 123,
    "waitFor": 123
  },
  "cache": {
    "maxAgeSeconds": 123
  }
}
'
{
  "jobId": "<string>",
  "status": "completed",
  "error": "<string>",
  "data": {
    "metadata": {},
    "html": "<string>",
    "markdown": "<string>",
    "links": [
      "<string>"
    ],
    "screenshot": "<string>",
    "json": {}
  }
}

Headers

PAYMENT-SIGNATURE
string

Base64-encoded JSON containing payment proof (x402Version, resource, accepted payment method, and cryptographic payload with signature and payer address)

Body

application/json
url
string
required
stealth
enum<string>
Available options:
none,
auto,
ultra
outputs
object
browser
object
navigation
object
cache
object

Response

Page fetched successfully (after valid payment)

jobId
string
required
status
enum<string>
required
Available options:
completed,
failed,
pending,
running
error
string | null
data
object