What it does
The CityBikes API gives live data about bike-sharing systems in cities around the world: the networks, their stations, and the free bikes and empty docks at each one, for example to show the nearest available bike on a map. Ask for the list of networks or one network and get JSON; GBFS feeds are also offered. Free, no key needed, up to 300 requests per hour; you must credit CityBikes with a link. For higher limits, ask the project.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free, no key needed, up to 300 requests per hour; you must credit CityBikes with a link.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- docs.citybik.es
More information: https://docs.citybik.es/api/
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://api.citybik.es/v2/networks/velib?fields=stations'
JavaScript
const response = await fetch("https://api.citybik.es/v2/networks/velib?fields=stations");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://api.citybik.es/v2/networks/velib?fields=stations",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.