{"uid":"cap_Q1fKtt1Pq1XZQRXr56YES","slug":"statepulse-transit-route-duration-9705f44d","name":"StatePulse Transit Route Duration","description":"Computes the shortest driving distance and duration between two coordinates using the public OSRM engine.","url":"https://statepulse-api.hahavoid0.workers.dev/transit/route-duration","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"result":{"distance_km":18.5,"duration_minutes":22.4},"supported":true,"confidence":"high"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qrt5cAR3G_KN186t-DZK9","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates the estimated travel distance and duration for a transit route between two points","exampleAgentPrompt":"How long will it take to travel from downtown Chicago to O'Hare Airport by transit, and what's the distance in kilometers?","exampleUseCases":null,"resultDescription":"Returns a JSON object with distance_km (numeric kilometers between origin and destination), duration_minutes (estimated travel time in minutes), a supported boolean indicating whether the route is calculable, and a confidence level string (e.g. 'high').","failureModes":["Unsupported route or region returns supported:false","Invalid or unparseable origin/destination inputs return 4xx error","Low-confidence estimates may return confidence:'low' with approximate values","Service unavailability from underlying transit data source returns 5xx error"],"whenToPreferThis":"Use this endpoint when you need a quick, pay-per-call transit route duration and distance estimate without managing API keys. Prefer it for AI agent workflows that need lightweight transit lookup at $0.02 per call, especially when integrating with x402/USDC micropayment flows on Base.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T18:36:47.968Z","isFirstParty":false}