Unified API and wildcards


#1

Is there any way of using wildcards in the URL of the API (e.g. https://api.tfl.gov.uk/vehicle/*/arrivals)?

We currently use this method with the legacy Countdown API, for loading into our database. Historical queries can then be done against the database (e.g. what was the largest gap in service for route 123 last Sunday; which routes has vehicle LTZ1234 been on in the last month; which days has tram 2551 not been in service in 2016; etc etc).


#2

We don’t support wildcards as you describe, but we do allow you to query all of the Arrivals by mode. So you could do something like:

https://api.tfl.gov.uk/mode/bus/arrivals