81trust / 100

Fetch

by agproxy in Other

x402 APIPassing, checked 14 min ago

Fetch one URL from a residential IP and get the raw response as JSON: status, final URL, headers and body (text or base64), up to 10 MB. GET, HEAD or POST, your own headers, an optional country. No JavaScript rendering. You pay for the megabytes delivered; a fetch that fails is not charged. Pay per call in stablecoins.

POST https://agproxy.shveik.dev/x402/fetch

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
102 ms typical, 102 ms slowest 5%
Last check
14 min ago
Next check
in 14 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agproxy.shveik.dev/x402/fetch" \
  -H "content-type: application/json" \
  -d '{"max_mb":1,"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.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagproxy.shveik.dev%2Fx402%2Ffetch
const res = await pay("https://agproxy.shveik.dev/x402/fetch", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"max_mb":1,"url":"https://example.com/"}),
});
console.log(await res.json());

Example input

{
  "max_mb": 1,
  "url": "https://example.com/"
}

Example output

{
  "body": "<!doctyp…",
  "bytes": 577,
  "country": null,
  "elapsed_ms": 2309,
  "final_url": "https://…",
  "headers": {},
  "status": 200,
  "truncated": false,
  "wire_bytes": 8685
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
14 min agoPassed402136 ms$0.016
5 h agoPassed402102 ms$0.016