{"uid":"cap_hjtZQIR__WxV12QN5iJMF","slug":"ip402-xyz-ip-geolocation-api-f64dbd9c","name":"ip402.xyz IP Geolocation API","description":"Paid IP intelligence endpoint returning normalized geolocation and ASN data for a single IPv4 or IPv6 address.","url":"https://ip402.xyz/v1/geo","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"],"type":"string"},"queryParams":{"type":"object","required":["ip"],"properties":{"ip":{"type":"string","examples":["8.8.8.8","2001:4860:4860::8888"],"description":"IPv4 or IPv6 address to classify and enrich."},"lang":{"type":"string","default":"en","examples":["en","zh-CN"],"description":"Optional response language for localized GeoIP names."},"bundle":{"type":"integer","examples":[5],"description":"Optional: pay n x $0.01 once (2 <= n <= 100) and receive n lookup credits (1 hour TTL) bound to the paying wallet, spendable via SIWX signatures. Example: bundle=5 costs $0.05."}},"additionalProperties":false}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["schema_version","ip","ip_version","scope","resolution_status","data_source","geo","network"],"properties":{"ip":{"type":"string"},"geo":{"type":["object","null"]},"scope":{"type":"string"},"network":{"type":["object","null"]},"ip_version":{"type":"integer"},"data_source":{"type":"object"},"schema_version":{"type":"integer"},"resolution_status":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"ip":"8.8.8.8","geo":{"country":{"name":"United States","iso_code":"US"},"location":{"latitude":37.751,"longitude":-97.822,"time_zone":"America/Chicago","accuracy_radius_km":1000},"continent":{"code":"NA","name":"North America"}},"scope":"public","network":{"asn":15169,"organization":"Google LLC"},"ip_version":4,"data_source":{"edition":"city+asn","provider":"ip402","build_epoch":1760000000},"schema_version":2,"resolution_status":"ok"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_t48jf9W7cwKFhtVsCGW3l","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 data for a given IP address, billed per-lookup via x402 micropayment protocol with no API keys required","exampleAgentPrompt":"Where in the world is the IP address 203.0.113.42 located — what country and city does it resolve to?","exampleUseCases":null,"resultDescription":"Returns geolocation data for the queried IP address including country, region, city, and likely coordinates, delivered after a $0.01 USDC micropayment via x402 — no API key or account required.","failureModes":["Invalid or malformed IP address returns an error response","Private/reserved IP ranges (e.g. 192.168.x.x) may return no location data","Payment failure via x402 results in a 402 Payment Required response with no data","Unsupported language code in lang parameter may fall back to default or error"],"whenToPreferThis":"Choose this endpoint when you need pay-per-use IP geolocation with no account setup, API key management, or subscription — ideal for agents making occasional or low-volume lookups that benefit from x402 micropayment billing, or when avoiding credential management overhead is a priority.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T06:36:50.722Z","isFirstParty":false}