{"uid":"cap_grrlEZspxFD8kf8tz4oa1","slug":"onchainexpat-ip-lookup-api-4ce43a3e","name":"OnchainExpat IP Lookup API","description":"Pay-per-request AI, crypto, proxy, and utility APIs using x402 protocol","url":"https://x402.onchainexpat.com/api/x402-tools/ip/lookup","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ip":{"type":"string","description":"IPv4 or IPv6 address. Alias: 'address'. If omitted, looks up the requester's IP"}}},"responseSchema":{"type":"object","properties":{"ip":{"type":"string"},"isp":{"type":"string"},"lat":{"type":"number"},"lon":{"type":"number"},"city":{"type":"string"},"cached":{"type":"boolean"},"region":{"type":"string"},"country":{"type":"string"},"timezone":{"type":"string"}}},"example":{"request":{"pokemon":"pikachu"},"response":{"as":"AS14061 DigitalOcean, LLC","ip":"164.90.239.49","isp":"DigitalOcean, LLC","org":"DigitalOcean, LLC","zip":"60313","city":"Frankfurt am Main","cached":false,"region":"Hesse","country":"Germany","latitude":50.1169,"timezone":"Europe/Berlin","longitude":8.6837,"region_code":"HE","country_code":"DE","related_endpoints":[{"price":"$0.03","endpoint":"/api/x402-proxy/fetch/geo","description":"Fetch any URL through a proxy in a chosen country"},{"price":"$0.04","endpoint":"/api/x402-crypto/site-trust","description":"Risk/trust analysis of any website or domain"}]}},"exampleRequest":{"pokemon":"pikachu"},"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_rlm7xpSELzyVnl8Gb1FpO","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up geolocation and metadata for an IP address using a pay-per-request x402 protocol endpoint","exampleAgentPrompt":"Can you look up the geolocation and ISP info for IP address 203.0.113.45?","exampleUseCases":null,"resultDescription":"A JSON object containing geolocation details for the queried IP address, likely including country, city, region, ISP, latitude, longitude, and other IP metadata.","failureModes":["Invalid or malformed IP address returns an error","Private or reserved IP ranges may return no location data","Payment failure via x402 protocol blocks the request","Empty or missing IP input returns a validation error","Rate limiting or quota errors if payment is not processed correctly"],"whenToPreferThis":"Use this endpoint when you need pay-per-request IP geolocation lookups with no subscription required, paying only $0.01 USDC per call via the x402 protocol. Ideal for crypto-native workflows or agents operating with on-chain micropayments.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:06:04.322Z","isFirstParty":false}