Yaanmitra
Compare every way to travel between two places in India (train, bus, flight, cab, self-drive, rental bike, rideshare) with fares read from public travel sites. Free, no sign-in, read-only.
Hosted MCP Server
npx add-mcp 'https://yaanmitra.in/mcp'Installs into Claude Code, Codex, Cursor and more
Documentation
A free, read-only way to compare every way of travelling in India — flights, trains, buses, outstation cabs, self-drive cars, rental bikes and rideshares — and bikes or cars on rent in a city. No key, no sign-up.
What the data is
Every option is read from a travel site's public page and names that site. A fare marked listed is as the site lists it for that date (train fares from ConfirmTkt, for example); estimated means indicative (another day's bus fare, a route-level "from" cab fare, a rental tariff × days). Booking is always a hand-off to the operator through bookingLinks; Yaanmitra never sells tickets.
Answers come from stored results (at most 48 hours old, "data": "snapshot") when there is one. A route that has none starts one live search ("data": "live"), which can take up to a minute and is limited, so that the travel sites are not loaded.
REST API
Base URL https://yaanmitra.in/api/public/v1. GET only, JSON, CORS open to every origin. Full description: /openapi.json (OpenAPI 3.1).
| Endpoint | What it does |
|---|---|
GET /places?q=vizag | Resolve a place name, alias or station/airport code: id, name, state, airport and stations. |
GET /routes/{from}/{to}?date=YYYY-MM-DD&passengers=1 | Every way to travel, grouped by mode, with the cheapest and fastest, fare labels, sources, booking links, notes and readAt. |
GET /rentals/{city}?kind=bike|car&days=2 | Bikes and self-drive cars on rent in a city, from the rental sites' city pages. |
curl https://yaanmitra.in/api/public/v1/routes/delhi/jaipur
curl "https://yaanmitra.in/api/public/v1/places?q=guntur"
curl "https://yaanmitra.in/api/public/v1/rentals/goa?kind=bike&days=3"
MCP server
For AI assistants: https://yaanmitra.in/mcp, Streamable HTTP transport (stateless; POST only). Tools: search_places, compare_trip, rental_options, each returning a short text summary plus structured content with the same fields as the REST API.
{ "mcpServers": { "yaanmitra": { "type": "http", "url": "https://yaanmitra.in/mcp" } } }
Limits
- 30 requests a minute per client (REST and MCP together).
- 6 live searches a minute per client; live searches across everyone are also capped per hour and a few at a time (HTTP 503 with
Retry-Afterwhen busy). Stored routes and cached answers do not count. - Identical live questions within about 15 minutes are answered from a cache. Over a limit: HTTP 429 with
Retry-After. - Errors are JSON:
{ "error": "...", "code": "unknown_place" }.
Attribution
Data via Yaanmitra (yaanmitra.in); fares from the named operators' public pages. Confirm on the operator's site before booking.
Show that line (or "data via Yaanmitra") wherever you show these fares, keep each option's source name, and send travellers to the operator's site to book. Prices change; never present them as a quote or a booking.
Free to use for apps, research and assistants. Please do not crawl every route: use stored routes, cache answers, and respect the limits.