curl -X POST https://win.oneshotagent.com/v1/tools/web-read \
-H "Content-Type: application/json" \
-H "payment-signature: <base64 x402 payment>" \
-d '{
"url": "https://example.com"
}'
const response = await fetch("https://win.oneshotagent.com/v1/tools/web-read", {
method: "POST",
headers: {
"Content-Type": "application/json",
"payment-signature": paymentProof,
},
body: JSON.stringify({
url: "https://example.com",
}),
});
const result = await agent.webRead({
url: 'https://example.com',
});
console.log(result.markdown);
console.log(result.screenshot_url);
{
"success": true,
"data": {
"request_id": "uuid",
"receipt_id": "rcpt_...",
"status": "completed",
"tool": "web_read",
"url": "https://example.com",
"markdown": "# Example Domain\n\nThis domain is for use in illustrative examples...",
"screenshot_url": "https://storage.example.com/screenshot.png",
"metadata": {
"title": "Example Domain",
"description": "",
"statusCode": 200
},
"truncated": false,
"hidden_removed": 0
}
}
Web & Browser
Web Read
Read a web page and extract content as markdown with screenshot
POST
/
v1
/
tools
/
web-read
curl -X POST https://win.oneshotagent.com/v1/tools/web-read \
-H "Content-Type: application/json" \
-H "payment-signature: <base64 x402 payment>" \
-d '{
"url": "https://example.com"
}'
const response = await fetch("https://win.oneshotagent.com/v1/tools/web-read", {
method: "POST",
headers: {
"Content-Type": "application/json",
"payment-signature": paymentProof,
},
body: JSON.stringify({
url: "https://example.com",
}),
});
const result = await agent.webRead({
url: 'https://example.com',
});
console.log(result.markdown);
console.log(result.screenshot_url);
{
"success": true,
"data": {
"request_id": "uuid",
"receipt_id": "rcpt_...",
"status": "completed",
"tool": "web_read",
"url": "https://example.com",
"markdown": "# Example Domain\n\nThis domain is for use in illustrative examples...",
"screenshot_url": "https://storage.example.com/screenshot.png",
"metadata": {
"title": "Example Domain",
"description": "",
"statusCode": 200
},
"truncated": false,
"hidden_removed": 0
}
}
Authentication
Requires x402 payment in thepayment-signature header.
Request Body
Public HTTP or HTTPS URL of the web page to read. URLs with credentials, private, loopback, or link-local addresses are refused before a scraping provider is called. Hostnames must resolve exclusively to public addresses.
Response (200 OK)
Top-level envelope:success (boolean) and data (object). All fields below are nested under data.
Result
Also nested underdata, alongside the fields above.
Page content extracted as markdown (max 50KB). When source HTML is available, hidden subtrees and all comments are removed before local Markdown conversion; provider Markdown cannot reintroduce their text. Conversion prefers the visible
<main> element, or the full page when none exists. Literal markup rendered from source text stays escaped text. Markdown-only responses are filtered for embedded hidden HTML. Image alt text, zero-width characters and bidi controls are also removed before truncation.Screenshot URL. For private org artifacts, this is an authenticated reference: GET it with the org session to receive
{ download_url, expires_at }, then GET download_url with the same session within five minutes. Downloads recheck current membership; anonymous or revoked members cannot access the image. The agent that owns the goal fetches the same image with its own credential through GET /v1/compute/:goalId/artifacts/:jobId?object=… (same link lifetime, audited with the credential).Whether the markdown was truncated to 50KB, or the page was read in part: source HTML past 512KB, or Markdown past 64KB, is cut before conversion
Number of hidden segments removed, including metadata. Each removed subtree, comment, alt attribute or consecutive run of control characters counts once.
curl -X POST https://win.oneshotagent.com/v1/tools/web-read \
-H "Content-Type: application/json" \
-H "payment-signature: <base64 x402 payment>" \
-d '{
"url": "https://example.com"
}'
const response = await fetch("https://win.oneshotagent.com/v1/tools/web-read", {
method: "POST",
headers: {
"Content-Type": "application/json",
"payment-signature": paymentProof,
},
body: JSON.stringify({
url: "https://example.com",
}),
});
const result = await agent.webRead({
url: 'https://example.com',
});
console.log(result.markdown);
console.log(result.screenshot_url);
{
"success": true,
"data": {
"request_id": "uuid",
"receipt_id": "rcpt_...",
"status": "completed",
"tool": "web_read",
"url": "https://example.com",
"markdown": "# Example Domain\n\nThis domain is for use in illustrative examples...",
"screenshot_url": "https://storage.example.com/screenshot.png",
"metadata": {
"title": "Example Domain",
"description": "",
"statusCode": 200
},
"truncated": false,
"hidden_removed": 0
}
}
See Pricing for web read costs.
Notes
- Only the page’s main content is returned
- Markdown over 50KB is truncated. Very large pages are read in part (source HTML past 512KB, Markdown past 64KB) and flagged
truncated; a page over 16MB cannot be read - Screenshots are taken server-side
- Results return inline. The finished job stays available at
/v1/requests/{request_id}