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": {}
}
}X402 payment endpoint. First request returns 402 with payment requirements. Retry with PAYMENT-SIGNATURE header containing cryptographic proof to get the actual data. See https://x402.gitbook.io/x402 for protocol details.
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": {}
}
}Base64-encoded JSON containing payment proof (x402Version, resource, accepted payment method, and cryptographic payload with signature and payer address)
Was this page helpful?