I’ve been working on aggregating data regarding the number of Barclays bikes there are available at certain docks. I had tried using some third-party Barclays Bike API sources because I didn’t realise that TFL already had easily accessible data for this.
The third-party API sources that I had tried proved to be unreliable and VERY slow so I looked to creating my own. I first had the idea to scrape the JSON data directly from the source of Barclays Cycle Hire map page until I found something much better.
Here is a direct link to an XML hosted by TFL of all cycle docks. An easy SimpleXML job in PHP got me exactly what I wanted.