82trust / 100
Screenshot
by agdata in Documents & files
x402 APIPassing, checked 2 h ago
Screenshot API for AI agents: send {url} and get a JPEG, PNG, WebP or PDF of the page as base64 in JSON, with final URL, byte size and pixel size. Pick a desktop, mobile or tablet viewport, full page, dark mode, a delay or one element by CSS selector. It shows what a normal browser sees and does not get past bot protection (use unblock for those pages' text). A page that can't be captured, or renders blank, is not charged.
POST https://agdata.shveik.dev/x402/screenshot
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 107 ms typical, 107 ms slowest 5%
- Last check
- 2 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X POST "https://agdata.shveik.dev/x402/screenshot" \
-H "content-type: application/json" \
-d '{"format":"jpeg","url":"https://example.com/"}'import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client().register(
"eip155:8453",
new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? Preflight it first for $0.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagdata.shveik.dev%2Fx402%2Fscreenshot
const res = await pay("https://agdata.shveik.dev/x402/screenshot", {
method: "POST",
headers: { "content-type": "application/json" },
body: JSON.stringify({"format":"jpeg","url":"https://example.com/"}),
});
console.log(await res.json());Example input
{
"format": "jpeg",
"url": "https://example.com/"
}Example output
{
"bytes": 66615,
"capturedAt": "2026-10-…",
"contentType": "image/jp…",
"finalUrl": "https://…",
"format": "jpeg",
"fullPage": false,
"height": 1080,
"imageBase64": "/9j/4AAQ…",
"width": 1920
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 2 h ago | Passed | 402 | 107 ms | $0.019 |