{"uid":"cap_RTbD2IkZ2OBBUNtBkV8RK","slug":"x-pay-ip-lookup-e5be80bc","name":"X Pay IP Lookup","description":"Return the requester IP address","url":"https://www.api-xpay.com/x402/ip?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"headers":{"type":"object","additionalProperties":{"type":"string"}},"queryParams":{"type":"object","additionalProperties":{"type":"string"}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"ip":"203.0.113.10","asset":"USDC","network":"base","success":true}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__usDkcjPbbQyp1X1tNtXv","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the public IP address of the calling client, paid per-request via x402 USDC on Base.","exampleAgentPrompt":"What's the public IP address this request is coming from? Use the X Pay pay-per-request IP lookup.","exampleUseCases":[{"title":"Agent self-identification via IP","prompt":"What public IP address is my AI agent making requests from right now? I need to know for allowlisting purposes."},{"title":"Geolocation pipeline bootstrapping","prompt":"Look up the current public IP address of this process so I can feed it into a geolocation service to figure out what region we're running in."},{"title":"Debugging outbound network routing","prompt":"Can you check what public IP address is being seen by external servers when this agent makes outbound calls? I'm trying to debug a routing issue."}],"resultDescription":"Returns a JSON object containing the detected public IP address of the caller ('ip'), the payment asset used ('asset', e.g. 'USDC'), the network ('base'), and a boolean success flag. Example: {\"ip\":\"203.0.113.10\",\"asset\":\"USDC\",\"network\":\"base\",\"success\":true}.","failureModes":["Payment not received or insufficient USDC balance — returns HTTP 402 Payment Required","Invalid HTTP method (only GET, HEAD, DELETE are accepted) — returns 405 or schema validation error","Network or server error — returns 5xx with no IP data","Malformed request headers — may result in failed schema validation"],"whenToPreferThis":"Choose this endpoint when you need a simple, programmatic public IP lookup and are already operating in a web3 / x402 micropayment context with USDC on Base. It is ideal for agents that need to self-identify their outbound IP without managing API keys, relying instead on per-call USDC payments. Prefer alternatives if you need geolocation data beyond raw IP, bulk lookups, or if you are not set up for x402 payments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T03:19:49.604Z","isFirstParty":false,"canonicalSlug":"x-pay-ip-lookup-e5be80bc"}