{"uid":"cap_vIxD4VPK0PpvMXctERtu_","slug":"zeroworker-web-action-preflight-api-c0ce5a15","name":"ZeroWorker Web Action Preflight API","description":"Avoid unnecessary browser launches with a lightweight preflight for AI agents. ZeroWorker inspects public pages before browser automation and returns static forms, field constraints, CAPTCHA/SPA signals, DNS/public-network safety checks, and a 3-state routing verdict: http_candidate, browser_likely, or undetermined. Use it to choose direct HTTP or escalate to a browser. No API key required. $0.003 USDC per successful request via x402 on Base Mainnet.","url":"https://zeroworker-web-action-api.zeroworker-lab.workers.dev/v1/preflight?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"Absolute public HTTP(S) URL to inspect. Literal IPs, localhost/local hostnames, credentials, and non-standard ports are rejected."},"access":{"type":"object","properties":{"clientToken":{"type":"string","pattern":"^zw_a_[a-f0-9]{64}$","description":"Saved anonymous starter token. Omit on the first live request."}},"additionalProperties":false}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5jWbAzprbSUn5nGyWcJoz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Inspects a public web page before launching a browser session, returning HTML forms, field metadata, CAPTCHA/SPA signals, DNS safety results, and a browser-required heuristic as structured JSON.","exampleAgentPrompt":"Before we start the browser session, can you preflight the page at https://example.com/signup and tell me what forms are on it, whether it has a CAPTCHA, if it's a SPA, and whether a real browser will be needed?","exampleUseCases":[{"title":"Pre-check login form before automation","prompt":"Before I automate the login on https://acme.com/login, can you inspect the page and tell me what the form fields are called, whether there's a CAPTCHA, and if a full browser session will be required?"},{"title":"Discover checkout form fields","prompt":"I want to know what input fields and options are on the checkout page at https://shop.example.com/checkout before I build a script — can you pull the form structure and any constraints?"},{"title":"DNS and safety check before web action","prompt":"Can you run a preflight on https://somethirdpartysite.com/apply and let me know if the domain passes DNS safety checks, what forms are on the page, and whether it looks like a JavaScript-heavy SPA?"}],"resultDescription":"A machine-readable JSON response containing: all static HTML forms found on the page with their action URLs; each form field's label, name, type, current value, available options, and constraints; signals indicating whether a CAPTCHA is present; whether the page is a single-page application (SPA); DNS and public-network safety results; and a boolean heuristic indicating whether a full browser session is likely required to interact with the page.","failureModes":["URL is not publicly accessible or returns a non-200 status — preflight may return incomplete or empty form data","Page is fully JavaScript-rendered at load time — static HTML extraction may miss dynamically injected forms","DNS safety check failure — endpoint may flag or refuse the target URL","Network timeout fetching the target page — request returns an error","Malformed or non-HTTP URL provided — validation error returned","CAPTCHA detection is heuristic and may produce false positives or negatives for novel CAPTCHA implementations"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, deterministic inspection of a public web page before committing to a full browser automation session. It is ideal for agents that want to discover form structure, field names, and constraints without spinning up a headless browser, or when you need to quickly assess whether a CAPTCHA or SPA will block simple HTTP-based automation. Prefer it over direct scraping when you need structured JSON output about forms rather than raw HTML, and over full browser sessions when cost and latency matter and the page may be statically renderable.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T06:37:41.235Z","isFirstParty":false,"canonicalSlug":"zeroworker-web-action-preflight-api-c0ce5a15"}