City Bikes API

Beginner's Pick Sports & Fitness / No Auth Required Beginner HTTPS
Free to Use 300 per window (294 remaining at test time)
82 A
Measured Score 0 50 100 Speed 12/30 Consistency 20/20 Security 20/20 Browser access 15/15 Transparency 15/15 TESTED 2026-08-10

Overview

City Bikes API gives you real-time data on bike-sharing stations across hundreds of cities worldwide. You can check how many bikes are available at each station and see station locations on a map. It requires no API key, so you can start experimenting right away.

Beginner Tip

Start by fetching the full network list at /v2/networks to find the network ID for your city, then drill into /v2/networks/{id} to get live station data.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://api.citybik.es/v2/networks?fields=id,name,location
Result
HTTP 200 · application/json · 110,890 bytes · compressed
Response time
304 ms (median of 3) · fastest 303 ms
Transport
TLSv1.3 · TLS_AES_256_GCM_SHA384 · certificate issued by Let's Encrypt
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Rate limit
300 per window (294 remaining at test time)
Served by
nginx/1.18.0 (Ubuntu)
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
networks array [1 item]

Captured Response

Captured from a real request to https://api.citybik.es/v2/networks?fields=id,name,location on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "networks": [
    {
      "id": "abu-dhabi-careem-bike",
      "name": "Abu Dhabi Careem BIKE",
      "location": {
        "…": "(4 more fields)"
      }
    }
  ]
}

Field Reference

id Unique identifier for the bike network, used in subsequent requests
name Human-readable name of the bike-sharing network

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://api.citybik.es/v2/networks?fields=id,name,location";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

How This API Fails

We deliberately sent this API a broken request and recorded exactly what came back on 2026-08-10. Knowing the shape of an error before you hit it makes error handling much easier to write.

HTTP 404 Requesting a path that does not exist text/plain
Not Found

Common Errors & Troubleshooting

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

Empty stations array Some networks require a separate request with ?fields=stations to include station details
Append ?fields=stations to your network request: /v2/networks/{id}?fields=stations
Network ID not found You guessed a network ID instead of looking it up from the networks list
First GET /v2/networks to retrieve valid IDs, then use the correct id field
CORS error in browser The API does not send CORS headers for all endpoints
Make requests from a backend server or a CORS proxy during development

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 12/30
Consistency 20/20
Security 20/20
Browser access 15/15
Transparency 15/15
Endpoint Response Time 304ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Sports & Fitness
Difficulty Beginner
Endpoint last called: 2026-08-10

Similar APIs

View All →