City Bikes API

⭐ Beginner's Pick Sports & Fitness / No Auth Required Beginner HTTPS
Free to Use Varies (check documentation)

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.

Available Data

Use case: Integrate city bikes around the world data into web and mobile applications
City Bikes data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "match_id": 4521,
  "home_team": "Team A",
  "away_team": "Team B",
  "score": {
    "home": 2,
    "away": 1
  },
  "status": "Full Time",
  "date": "2025-01-15",
  "league": "Premier League"
}

Field Reference

id Unique identifier for the bike network, used in subsequent requests
name Human-readable name of the bike-sharing network
location.city City where the network operates
location.latitude Latitude of the network center
stations List of bike stations with availability and coordinates (included only when ?fields=stations is requested)
free_bikes Number of bikes currently available at a station

Implementation Example

// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://api.citybik.es/v2/";
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.

Common Errors & Troubleshooting

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

Matrix Score Breakdown

🌐 Reachability 30/30
⚡ Speed 15/20
🔒 Security 15/15
🛠 Developer XP 20/20
✓ Reliability 7/15
Response Time 295ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Category Sports & Fitness
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →