{"uid":"cap_SFBlNzGJeNNsXoSWpBP1A","slug":"ip-asn-geolocation-lookup-de0063b7","name":"IP ASN & Geolocation Lookup","description":"Looks up ASN and geolocation for any IPv4 or IPv6 address: ASN number, ASN org, ISP, country, region, city, postal, latitude/longitude, and timezone. Primary backend: ipapi.co (1k req/day free); fallback: ip-api.com (45 req/min free). Both are free public APIs with no auth. Use it as an IP-to-ASN, IP geolocation, IP-to-ISP lookup, WHOIS for IP, or cloud-provider attribution tool.","url":"https://x402.agentutility.ai/ip-asn","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["ip"],"properties":{"ip":{"type":"string","description":"IPv4 or IPv6 address."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"ip":{"type":"string"},"asn":{"type":"integer"},"city":{"type":"string"},"postal":{"type":"string"},"region":{"type":"string"},"source":{"type":"string"},"asn_org":{"type":"string"},"country":{"type":"string"},"latitude":{"type":"number"},"timezone":{"type":"string"},"longitude":{"type":"number"},"country_code":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"ip":"8.8.8.8","asn":15169,"city":"Mountain View","postal":"94043","region":"California","source":"ipapi.co","asn_org":"Google LLC","country":"United States","latitude":37.4056,"timezone":"America/Los_Angeles","longitude":-122.0775,"country_code":"US"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_O5JRVkrPxIugildRf6J7e","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves any IPv4 or IPv6 address to its ASN number, ASN org, ISP, country, region, city, postal code, lat/lon, and timezone","exampleAgentPrompt":"Can you look up the geolocation and ASN info for IP address 203.0.113.42 — I need the country, city, ISP, and ASN org.","exampleUseCases":[{"title":"Threat intel enrichment for security logs","prompt":"I have a suspicious IP 185.220.101.34 showing up in our access logs — can you find out what country it's from, which ASN owns it, and whether it looks like a hosting or residential ISP?"},{"title":"Cloud provider attribution for scraped traffic","prompt":"We're seeing traffic from 52.84.0.1 — can you tell me which organization and ASN own that IP so I can confirm if it's coming from AWS or another cloud provider?"},{"title":"User geolocation for analytics","prompt":"I need to geolocate 2001:4860:4860::8888 — give me the country, region, city, and timezone so I can bucket it in our analytics dashboard."}],"resultDescription":"Returns a JSON object containing ASN number, ASN organization name, ISP name, country, region/state, city, postal code, latitude, longitude, and timezone for the queried IP address.","failureModes":["Invalid or malformed IP address returns an error","Private/reserved IP ranges (e.g. 10.x.x.x, 192.168.x.x) may return no geolocation data","Rate limit exceeded on upstream providers (1k/day for ipapi.co, 45/min for ip-api.com) may cause failures","IPv6 addresses may have incomplete geolocation data in some regions","Network timeouts from upstream APIs"],"whenToPreferThis":"Choose this endpoint when you need combined ASN + full geolocation data (city, region, ISP, lat/lon, timezone) in a single call for any IPv4 or IPv6 address, especially in agentic or automated workflows that require USDC micropayment settlement via x402 and MCP compatibility. Prefer this over raw ipapi.co/ip-api.com calls when you need a managed, rate-limit-abstracted, agent-native interface with automatic fallback between providers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T07:12:59.883Z","isFirstParty":false}