{"uid":"cap_HxlRMlHk7MuE3CPVMavS1","slug":"agentgate-route-distance-api-0a2d0f4a","name":"AgentGate Route Distance API","description":"Machine-payable micro-APIs: web content extraction, airport data, route distances and DNS intelligence. No accounts, no API keys — AI agents pay $0.002–$0.005 per request in USDC on Base via the x402 protocol.","url":"https://agentgate-x402.netlify.app/api/route","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":["from","to"],"properties":{"to":{"type":"string","description":"destination IATA/ICAO code"},"from":{"type":"string","description":"origin IATA/ICAO code"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"to":{"iata":"LHR"},"from":{"iata":"JFK"},"distance":{"km":5540,"mi":3442,"nm":2991},"estimatedFlightTime":{"hours":7.09,"formatted":"7h 06m"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_cr69AH500TJqrt2kSB5cm","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns the great-circle distance and estimated flight time between two airports identified by IATA or ICAO codes","exampleAgentPrompt":"What's the great-circle distance and estimated flight time between JFK and LHR?","exampleUseCases":[{"title":"Flight route range planning","prompt":"How far is it from LAX to NRT in kilometers and nautical miles, and how long would the flight take?"},{"title":"Travel itinerary time estimation","prompt":"I'm planning a trip from CDG to SIN — can you tell me the distance and roughly how many hours the flight would be?"},{"title":"Aviation fuel and logistics calculation","prompt":"What's the route distance in miles and nautical miles between ORD and DXB, and what's the estimated flight duration?"}],"resultDescription":"A JSON object containing the origin and destination IATA codes, distance in kilometers, miles, and nautical miles, and estimated flight time as a decimal hours value and a formatted string (e.g. '7h 06m').","failureModes":["Invalid or unrecognized IATA/ICAO code returns an error","Missing required 'from' or 'to' query parameters returns a 400 error","Payment not included or insufficient USDC balance triggers a 402 Payment Required response","Network timeout if the endpoint is temporarily unavailable"],"whenToPreferThis":"Use this endpoint when you need quick, machine-payable airport-to-airport route distances and flight time estimates without setting up an account or API key. Ideal for AI agents that need on-demand aviation route data at $0.002 per call via USDC on Base. Prefer this over full flight search APIs when you only need distance/duration data, not schedules or pricing.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:38:46.391Z","isFirstParty":false}