POST

Load a web page in an isolated worker and return a screenshot, DOM, or both, with optional interactions and viewport. Powered by Playwright

/v1/agent/browse

Powered by Playwright

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/agent/browse
Content-Type: application/json

{
  "url": "https://tools402.dev",
  "return": "screenshot"
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Load a web page in an isolated worker and return a screenshot, DOM, or both, with optional interactions and viewport. Powered by Playwright.

Open-source browser automation and testing framework by Microsoft.

Request schema

Body: JSON · application/json

FieldTypeDescription
urlstringrequired
wait_forstring | integeroptional
viewportobjectoptional
returnstringrequiredenum: screenshot, dom, both
interactionsarrayoptional
headersobjectoptional
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/agent/browse \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://tools402.dev",
  "return": "screenshot"
}'

402 payment flow omitted — see Integrations for settlement.