BACK HOME

CityBikes API

Welcome to the CityBikes API documentation page. This is a brief explanation on how to use CityBikes data.

Syntax

The system currently supports only JSON and HTML format

You can add a callback parameter to use it with JSONP

http://api.citybik.es/<call>.<format>

Calls

Networks

This call provides a list of the networks supported in CityBikes

JSON

http://api.citybik.es/networks.json

This returns a JSON Array with a set of JSON objects with these variables:

HTML

http://api.citybik.es/networks.html

Result

System

This call, given a system name id, provides the list of stations and availability

JSON

http://api.citybik.es/<system>.json

http://api.citybik.es/

There are some variables that all systems share:

And sometimes, there are Community Bike systems that provide more info than usual (for example in Wien). In these cases you will see more info in the feed, like:

The point here is, use whatever available you need on the feed you use :)

HTML

Let's say you want to include the list of stations in your blog (who doesn't?). Just call the html, or render it inside an iframe

http://api.citybik.es/<system>.html

http://api.citybik.es/

Terms of Service

CityBikes is a cost free service. However, it HAS a license (LGPL). Basically:

If your project is using this API (as in, doing calls), you should indicate it on your app, or website, linking the project page.

If your project is using PyBikes (as in, downloading the external data by yourself) you should also mention it.

Source, source, source

Happy Hacking!

Source

CityBikes API has an LGPL license.

Feel free to check the code @github

Examples using the API

gmaps_helper.js: Javascript functions used in the main page to render the map

CityBikes: Open Source App to display this information on android.