POST

Scrape a JS-rendered page; returns rendered HTML, extracted text, and optional per-selector fields. Powered by Playwright stealth

/v1/scrape/js

Powered by Playwright

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/scrape/js
Content-Type: application/json

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

// Endpoint-specific body after 402 settlement

Overview

Scrape a JS-rendered page; returns rendered HTML, extracted text, and optional per-selector fields. Powered by Playwright stealth.

Open-source browser automation and testing framework by Microsoft.

Request schema

Body: JSON · application/json

FieldTypeDescription
urlstringrequired
wait_forstringoptional
timeout_msintegeroptionalmin: 1000
selectorsobjectoptional
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/scrape/js \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://tools402.dev"
}'

402 payment flow omitted — see Integrations for settlement.