webfetch — the fetch tool for agents. Give your agents access to the web. Endpoint POST https://api.webfetch.run/v1/scrape Auth Authorization: Bearer sk_live_... (paid plan; the free plan has the playground only) Body application/json Minimal call: {"url": "https://example.com", "formats": ["markdown"]} Formats (13): markdown, html, rawHtml, rawBase64, text, screenshot, links, images, metadata, branding, attributes, summary, json Read this before writing code against it: 0. THIS ENDPOINT IS PAID. The free tier is a browser playground, not the API: it has no API keys. A free account calling /v1/scrape gets 403 plan_requires_api. API access starts at $29. 1. `success: false` means no content came back. `blocked` is an HTTP 200 — check the field, not the status. 2. A wall, refusal or error is charged 0 credits. You are never billed for a failure. 3. On `blocked`, retry with egress "residential" and rotations 5. A refusal is an IP problem: changing the format or the URL will not help. 4. Keep metadata.session and send it back as `session` to the same host: repeat queries go from about 38 s to about 6-8 s. 5. Default timeout is 120000 ms; on expiry you get 504 and are charged 0. Full reference https://webfetch.run/elements-full.txt Human docs https://webfetch.run/docs Machine JSON https://webfetch.run/agent.json