0

0000402 · Fetch

by 0000402

POSTBase

$0.01

per call · USD Coin on Base

Pay $0.01 USDC to make an outbound HTTP request through the proxy. Supports all standard HTTP methods, custom headers (including auth), and JSON or raw bodies. Responses are returned as text or base64-encoded binary. Max response size 10 MB, timeout 30s. Each request performs one upstream fetch and returns the final URL plus response metadata.

Endpoint

POST https://proxy.0000402.xyz/fetch

27

Calls / 30d

3

Unique payers / 30d

Sep 10

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://proxy.0000402.xyz/fetch", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "body_json": {
      "hello": "world"
    },
    "method": "POST",
    "url": "https://httpbin.org/post"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://proxy.0000402.xyz/fetch" \
  -H "Content-Type: application/json" \
  -d '{"body_json":{"hello":"world"},"method":"POST","url":"https://httpbin.org/post"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "body": "{\"json\":{\"hello\":\"world\"}}",
  "body_base64": null,
  "elapsed_ms": 312,
  "headers": {
    "content-type": "application/json"
  },
  "is_binary": false,
  "redirects": 0,
  "status": 200,
  "url": "https://httpbin.org/post"
}

Payment details

Pay to0xee72b902af7466023595512e3359bb5bf312977c
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Other and the homepage with a featured placement.

Get featured →

More from 0000402 & similar services