{"uid":"cap_CT6CcgZ0-vpEIaPHkbKPA","slug":"ip-geolocation-lookup-api-4001ee4e","name":"IP Geolocation Lookup API","description":"Geolocate an IPv4/IPv6 address: country, region, city, postcode, lat/lng, timezone, ISP, org, ASN, and a datacenter heuristic.","url":"https://ip-geo-api-production.up.railway.app/lookup/ip","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ip":{"type":"string","description":"IPv4 or IPv6 address to geolocate, e.g. '8.8.8.8'."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_ho8etX6m-StUlu1lH8MtU","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Geolocates a single IPv4 or IPv6 address, returning country, region, city, postcode, lat/lng, timezone, ISP, organization, ASN, and datacenter detection.","exampleAgentPrompt":"Can you look up where 185.220.101.45 is located — I need the country, city, ISP, and whether it's coming from a datacenter?","exampleUseCases":[{"title":"Fraud detection for suspicious logins","prompt":"We just got a login attempt from IP 91.108.4.1 — can you geolocate it and tell me the country, ISP, and whether it's from a datacenter so I can decide if it looks suspicious?"},{"title":"Personalizing content by user region","prompt":"A visitor just hit our site from IP 203.0.113.42 — what city, country, and timezone are they in so we can serve them the right regional content?"},{"title":"Auditing server traffic origins","prompt":"Can you geolocate 104.21.0.55 and tell me its country, ASN, organization name, and whether it's a datacenter IP? I'm trying to audit where our API traffic is coming from."}],"resultDescription":"Returns a structured record for the queried IP including: country name and code, region, city, postcode, latitude, longitude, timezone, ISP name, organization name, ASN, and a boolean or heuristic flag indicating whether the IP belongs to a datacenter or hosting provider.","failureModes":["Invalid or malformed IP address returns a 4xx error","Private/reserved IP ranges (e.g. 192.168.x.x, 10.x.x.x) may return no geolocation data","Recently allocated or very new IPs may lack database coverage","Payment failure (x402) if USDC balance is insufficient","Service unavailability on Railway deployment infrastructure"],"whenToPreferThis":"Use this endpoint when you need detailed geolocation for a single IP address including ISP, ASN, organization, and a datacenter heuristic — especially useful for fraud detection, traffic auditing, or user personalization pipelines. Prefer the sibling batch endpoint when you have up to 20 IPs to resolve at once, or the distance endpoint when you need to compare two IP locations.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:36:32.000Z","isFirstParty":false}