Directory / Data APIs

Return the requester IP address

Return the requester IP address

not checked yetBaseGETx402 v2

Price per call
$0.005
Endpoint
https://www.api-xpay.com/x402/ip
Provider
www.api-xpay.com
Paid calls (30 days)
68k
Unique payers (30 days)
104
Last paid call
4 h ago
Health check
pending
Pays to
0x589a2314a2E05F45e40C4823Da3Ba58D421dB3d8
Listed here since
2026-11-23 (source: bazaar)

Input

{
  "method": "GET",
  "type": "http"
}

Example output

{
  "example": {
    "asset": "USDC",
    "ip": "203.0.113.10",
    "network": "base",
    "success": true
  },
  "type": "json"
}

Call it from an agent

import { wrapFetchWithPayment } from "x402-fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.AGENT_PRIVATE_KEY);
const paidFetch = wrapFetchWithPayment(fetch, account);

const res = await paidFetch("https://www.api-xpay.com/x402/ip", { method: "GET" });
console.log(await res.json()); // costs $0.005 in USDC on Base

Machine-readable: /api/tools/60cb84ed3717. Listings are informational; check a provider before sending large amounts.