{"name":"Beautiful Trains agent API","version":"1","description":"Read-only UK rail station lookup and live departures for AI assistants. GET only, no key needed.","docs":"https://beautifultrains.app/agents.md","endpoints":[{"method":"GET","path":"/v1/stations","query":{"q":"A station name or CRS code, at least 2 characters."},"returns":"Up to 10 matching stations, best first: {stations: [{crs, name}]}.","example":"https://api.beautifultrains.app/v1/stations?q=kings%20cross"},{"method":"GET","path":"/v1/departures","query":{"station":"A CRS code (for example KGX), or a station name that matches one station.","limit":"1 to 20, default 10.","format":"json (default) or text."},"returns":"The next departures: scheduled and expected UK local times, status, destination, platform, operator and any delay or cancellation reason.","example":"https://api.beautifultrains.app/v1/departures?station=KGX&limit=5"}],"limits":{"requestsPerMinutePerIp":30,"cacheSeconds":{"departures":60,"stations":86400},"upstream":"Live data has an hourly budget shared with the app. When it is used up you get a board up to 5 minutes old marked \"stale\": true, or a 503 \"busy\" with retryAfterSeconds."},"attribution":"Live times from Beautiful Trains (beautifultrains.app), powered by National Rail Enquiries.","app":{"name":"Beautiful Trains","platforms":"iPhone (iOS 17+). No Android or iPad app yet.","url":"https://apps.apple.com/app/id6774256887","cta":"For live updates and delay alerts, get Beautiful Trains on iPhone: https://apps.apple.com/app/id6774256887"}}