旅
CityBikes API
4 endpointsTravel, Maps & WeatherGlobalsocial:read4 real examples
Returns bike-share networks worldwide, live station bike and dock availability, and the networks and stations nearest a position.
View as Markdown| GET | /citybikes/networks | The bike-share networks of the world, optionally only those of one country. |
| GET | /citybikes/network | One bike-share network with its city and the live state of its stations. |
| GET | /citybikes/nearbyNetworks | The bike-share networks whose city is nearest a position, closest first, with the distance in kilometres. |
| GET | /citybikes/nearbyStations | The stations of one network nearest a position, closest first, with their bikes and free docks now. |
networks
GET
/v1/citybikes/networksThe bike-share networks of the world, optionally only those of one country.
scope social:read1 unitcached 6 hpaginated
Parameters
countrystring | ISO 3166 country code, such as FR. Empty lists every country. |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
city | string |
companies | Company[] |
name | string |
country | string |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
curl "https://api.hoshime.com/v1/citybikes/networks" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/citybikes/networks", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/citybikes/networks", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "city": "Abu Dhabi", "companies": [ { "name": "Careem" } ], "country": "AE", "id": "abu-dhabi-careem-bike", "latitude": 24.4866, "longitude": 54.3728, "name": "Abu Dhabi Careem BIKE" }, { "city": "Saguenay", "companies": [ { "name": "PBSC Urban Solutions" } ], "country": "CA", "id": "acces-velo-saguenay", "latitude": 48.433333, "longitude": -71.083333, "name": "Accès Vélo" } ], "meta": { "cached": false, "endpoint": "networks", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "citybikes", "requestId": "req_2Xb9kQ…", "units": 1 } }
network
GET
/v1/citybikes/networkOne bike-share network with its city and the live state of its stations.
scope social:read1 unitcached 1 min
Parameters
idstring required | Network id, such as velib or citi-bike-nyc. e.g. velib |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
16 fields
city | string |
companies | Company[] |
name | string |
country | string |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
stations | Station[] |
emptySlots | integer (int64) |
freeBikes | integer (int64) |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
reportedAt | string |
curl "https://api.hoshime.com/v1/citybikes/network?id=velib" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/citybikes/network?id=velib", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/citybikes/network?id=velib", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "city": "Paris", "companies": [ { "name": "Smovengo" } ], "country": "FR", "id": "velib", "latitude": 48.856614, "longitude": 2.3522219, "name": "Vélib' Métropole", "stations": [ { "emptySlots": 10, "freeBikes": 15, "id": "0003131bffcf527ba3a560fc46d38b6f", "latitude": 48.888559314669514, "longitude": 2.2642001509666447, "name": "Argenson - Château", "reportedAt": "2026-11-06T17:58:57Z" }, { "emptySlots": 13, "freeBikes": 12, "id": "000471e1f2b458a6e68a8ae732880557", "latitude": 48.83659148147257, "longitude": 2.2930556908249855, "name": "Saint Lambert - Blomet", "reportedAt": "2026-11-06T17:58:57Z" } ] }, "meta": { "cached": false, "endpoint": "network", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "citybikes", "requestId": "req_2Xb9kQ…", "units": 1 } }
nearbyNetworks
GET
/v1/citybikes/nearbyNetworksThe bike-share networks whose city is nearest a position, closest first, with the distance in kilometres.
scope social:read1 unitcached 6 hpaginated
Parameters
latstring required | Latitude, from -90 to 90, such as 48.8566. e.g. 48.8566 |
lonstring required | Longitude, from -180 to 180, such as 2.3522. e.g. 2.3522 |
limitinteger | Items per page, 1 to 50. default 10 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
9 fields
city | string |
companies | Company[] |
name | string |
country | string |
distanceKm | number (double) |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
curl "https://api.hoshime.com/v1/citybikes/nearbyNetworks?lat=48.8566&lon=2.3522" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/citybikes/nearbyNetworks?lat=48.8566&lon=2.3522", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/citybikes/nearbyNetworks?lat=48.8566&lon=2.3522", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "city": "Paris", "companies": [ { "name": "Smovengo" } ], "country": "FR", "distanceKm": 0, "id": "velib", "latitude": 48.856614, "longitude": 2.3522219, "name": "Vélib' Métropole" }, { "city": "Cergy", "companies": [ { "name": "Nextbike GmbH" } ], "country": "FR", "distanceKm": 29.16, "id": "velo2", "latitude": 49.03561699999999, "longitude": 2.060325, "name": "VélO2" } ], "meta": { "cached": false, "endpoint": "nearbyNetworks", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "citybikes", "requestId": "req_2Xb9kQ…", "units": 1 } }
nearbyStations
GET
/v1/citybikes/nearbyStationsThe stations of one network nearest a position, closest first, with their bikes and free docks now.
scope social:read1 unitcached 1 minpaginated
Parameters
networkstring required | Network id, such as velib. e.g. velib |
latstring required | Latitude, from -90 to 90, such as 48.8566. e.g. 48.8566 |
lonstring required | Longitude, from -180 to 180, such as 2.3522. e.g. 2.3522 |
limitinteger | Items per page, 1 to 50. default 10 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
8 fields
distanceKm | number (double) |
emptySlots | integer (int64) |
freeBikes | integer (int64) |
id | string |
latitude | number (double) |
longitude | number (double) |
name | string |
reportedAt | string |
curl "https://api.hoshime.com/v1/citybikes/nearbyStations?network=velib&lat=48.8566&lon=2.3522" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/citybikes/nearbyStations?network=velib&lat=48.8566&lon=2.3522", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/citybikes/nearbyStations?network=velib&lat=48.8566&lon=2.3522", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": [ { "distanceKm": 0.09, "emptySlots": 11, "freeBikes": 49, "id": "6b1f2d11be3fd0eca68fa47eb2831604", "latitude": 48.8562118, "longitude": 2.3532536, "name": "Lobau - Hôtel de Ville", "reportedAt": "2026-11-06T17:58:57Z" }, { "distanceKm": 0.1, "emptySlots": 1, "freeBikes": 13, "id": "a59f867a689ec8bab0b42e27b783d44f", "latitude": 48.8573314, "longitude": 2.351458, "name": "Place de l'Hôtel de Ville", "reportedAt": "2026-11-06T17:58:57Z" } ], "meta": { "cached": false, "endpoint": "nearbyStations", "fetchedAt": "2026-11-06T09:41:00Z", "pagination": { "nextCursor": "EpcDEgV…", "hasMore": true, "total": null }, "platform": "citybikes", "requestId": "req_2Xb9kQ…", "units": 1 } }