{"openapi":"3.1.0","info":{"title":"Rai Rai — Andhra Pradesh buses & trips","version":"1.0.0","description":"Read-only lookups for APSRTC city buses and travel in Andhra Pradesh (India): bus stops, numbered bus lines (e.g. 400Y in Visakhapatnam/Vizag), places to visit with the nearest bus stop, and links that open a live trip plan in the Rai Rai app."},"servers":[{"url":"https://rairai.aastee.com"}],"paths":{"/api/v1/stops":{"get":{"operationId":"searchStops","summary":"Find bus stops by name (English, Telgish or Telugu script)","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string"},"description":"Stop or area name, e.g. 'Gajuwaka', 'RTC Complex', 'గాజువాక'"}],"responses":{"200":{"description":"Matching stops","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/bus":{"get":{"operationId":"getBusLine","summary":"Route, stops, first/last bus and frequency of a numbered city bus","parameters":[{"name":"number","in":"query","required":true,"schema":{"type":"string"},"description":"Public bus number, e.g. 400Y, 900K, 10K, 28R"}],"responses":{"200":{"description":"Bus line details or suggestions","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/places":{"get":{"operationId":"findPlaces","summary":"Places to visit in Andhra Pradesh with timings, entry fee, best time and nearest bus stop","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"},"description":"Place name or kind, e.g. 'Araku', 'waterfall', 'beach', 'temple', 'fort'"},{"name":"region","in":"query","required":false,"schema":{"type":"string"},"description":"Region, e.g. vizag, araku, godavari, krishna, tirupati, kadapa"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20}}],"responses":{"200":{"description":"Places","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/api/v1/plan-link":{"get":{"operationId":"getPlanLink","summary":"A link that opens the live bus trip plan (next buses, live buses, changes, fares) between two places","parameters":[{"name":"from","in":"query","required":false,"schema":{"type":"string"},"description":"Start (omit to use the rider's location)"},{"name":"to","in":"query","required":true,"schema":{"type":"string"},"description":"Destination stop or place"}],"responses":{"200":{"description":"Plan link","content":{"application/json":{"schema":{"type":"object"}}}}}}}}}