{"uid":"cap_XC7Ymm2nJJ13S3VLsL-cJ","slug":"ip-geolocation-distance-calculator-35a57a40","name":"IP Geolocation Distance Calculator","description":"Great-circle distance (km and miles) between two IP addresses, with each endpoint's city/country/lat/lng.","url":"https://ip-geo-api-production.up.railway.app/lookup/distance","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"ip1":{"type":"string","description":"First IP address, e.g. '8.8.8.8'."},"ip2":{"type":"string","description":"Second IP address, e.g. '1.1.1.1'."}}},"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_iJ2oO4ZpMLajhOJzTdPNG","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":"Calculates great-circle distance (in km and miles) between two IP addresses, returning city, country, and lat/lng for each.","exampleAgentPrompt":"What's the great-circle distance between IP 8.8.8.8 and 1.1.1.1, and which cities and countries are they located in?","exampleUseCases":[{"title":"Server latency proximity check","prompt":"Can you tell me how far apart 104.21.3.200 and 185.60.216.35 are geographically, and what cities they're in? I want to understand if network latency between them makes sense."},{"title":"Fraud detection distance check","prompt":"A user logged in from 203.0.113.42 and then 5 minutes later from 198.51.100.77 — how many kilometers apart are those two IPs? I need to know if that's physically possible."},{"title":"CDN node proximity analysis","prompt":"I have two CDN nodes at IPs 151.101.1.140 and 13.32.99.250 — what's the distance between them in kilometers and miles, and which cities are they in?"}],"resultDescription":"Returns the great-circle distance in both kilometers and miles between the two IPs, along with each IP's resolved city, country, latitude, and longitude.","failureModes":["Invalid or malformed IP address returns an error indicating which IP failed validation","Private/reserved IP addresses (e.g. 192.168.x.x, 10.x.x.x) may not be geolocatable and return null or error","Missing ip1 or ip2 field in request body returns a 400 bad request","IPv6 addresses may have reduced geolocation accuracy","Geolocation database may not have coverage for all IPs, returning partial or null location data"],"whenToPreferThis":"Use this endpoint when you need both the geographic coordinates/city details AND the distance between two IPs in a single call, rather than making two separate single-IP lookups and computing distance yourself. Ideal for fraud detection, network analysis, CDN planning, or any scenario comparing the physical proximity of two network endpoints.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:32:25.654Z","isFirstParty":false}