pickthebus

API for agents and developers

Everything on the site is also plain JSON, static and free to use under the ODbL with attribution ("Data: pickthebus.com, from official open timetables"). No key, no rate limit beyond fair use.

EndpointReturns
/api/v1/cities.jsonEvery city: id, name, country, coordinates, population, its main bus stops, nearby airports, its pickthetrain id (train), trainFrom when pickthetrain has a "trains from" page for it (pickthetrain.com/from/{id}/), aka, the other names people write for it (Londonderry for Derry, Praha for Prague), and for a city in the United Kingdom (cc GB) its own country in nation: GB-ENG England, GB-SCT Scotland, GB-WLS Wales, GB-NIR Northern Ireland
/api/v1/routes.jsonEvery city pair with a direct bus across a border: buses a day (the busier direction), fastest minutes, whether a night bus runs, the operators
/api/v1/from/{city}.jsonEvery direct destination abroad from one city, each with all its buses: dep/arr (local minutes after midnight; plus = days later), dur, op + opUrl, book (the company's own page for the bus's route, where there is one; bookDate names its date parameter), line, the stops, via, night, days and on (one character per day of the window from window.start: 1 = leaves that day; a destination with its own days shows that many, because one of its companies has published its timetable only that far). depOn/arrOn: times that differ on a date (the night the clocks change). d2d, on a route with its own page: its bus's door-to-door sum as the page adds it up (total minutes, its parts from city centre to city centre, and that bus's night, dep and arr).
/api/v1/live/{date}.jsonEvery international bus on the road that UTC day, for the live map: runs = [trip, start minute, then per stop: stop index, minutes to arrive, minutes stopped], stops in /api/v1/live/stops.json as [lon, lat]
/api/v1/meta.jsonWhen the timetables were last checked, the window they cover, the build date
/api/v1/sources.jsonEvery timetable source: operator, what it covers, licence, the publisher's page and the date of each file the site uses

City ids are lowercase slugs, the same as pickthetrain's where both have the city: zurich, new-york, frankfurt. Example: /api/v1/from/zurich.json. Human pages: /bus/{from}-to-{to}/ for the busier pairs (else /bus/?from=&to=) and /from/{city}/. See also llms.txt and intents.md.