{"uid":"cap_fTyWIS0WyNnaxfg-qTAh9","slug":"primeapi-geo-distance-calculator-450d798e","name":"PrimeAPI Geo Distance Calculator","description":"Crypto, AI, Social Media, Finance, Weather, Tools &amp; more. Pay per call in USDC on Base. No API keys.","url":"https://prime-api-seven.vercel.app/api/geo/distance","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"query":{"type":"string","description":"Search query or input parameter"}}},"responseSchema":{"type":"object","description":"API response data"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.117955","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.117955/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.117955","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.117955","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_-G7MG7sIwF94bhxRw008D","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.117955","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the geographic distance between two coordinate points or locations","exampleAgentPrompt":"What is the geographic distance between New York City and Los Angeles?","exampleUseCases":[{"title":"Logistics route distance estimation","prompt":"How far is it from Chicago, IL to Dallas, TX? I need the distance in miles to estimate shipping costs."},{"title":"Travel planning distance check","prompt":"Can you tell me the distance between Paris, France and Rome, Italy? I'm trying to figure out if it makes sense to drive."},{"title":"Nearest location finder support","prompt":"Calculate the distance between coordinates 40.7128° N, 74.0060° W and 34.0522° N, 118.2437° W so I can compare which of my two warehouses is closer to a customer."}],"resultDescription":"Returns a computed geographic distance value between two input locations or coordinate pairs, typically including the numeric distance and the unit of measurement (e.g. kilometers or miles).","failureModes":["Invalid or unrecognizable location names returned as error","Ambiguous location names causing incorrect geocoding","Missing required input coordinates or query resulting in 400 error","Payment failure via x402 protocol blocking the request","Service unavailability returning 5xx error"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call distance computation without managing API keys. Ideal for AI agents that need geographic distance on demand within a multi-tool workflow, especially when already using USDC on Base for other PrimeAPI calls. Best for point-to-point distance lookups rather than full routing or turn-by-turn directions.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T01:00:27.856Z","isFirstParty":false}