# FlixBus Reachable Cities API Documentation

<p><strong>FlixBus Reachable Cities API Documentation</strong> The cities that FlixBus connects to one city: average and shortest duration in minutes, whether the route needs a transfer, route popularity, transport modes and a price band (min, average, max) per currency. The band is a route statistic, not the fare of a day: use search or calendar for real fares.</p>

- **Documentation:** [https://scrappa.co/docs/flixbus-api/flixbus_routes](https://scrappa.co/docs/flixbus-api/flixbus_routes)
- **API group:** FlixBus API
- **Endpoint:** `GET https://scrappa.co/api/flixbus/routes`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `city_id` | string | Yes | Origin city UUID from the cities endpoint. Example: 40d8f682-8646-11e6-9066-549f350fcb0c. |
| `limit` | integer | No | Destinations to return, 1 to 200. Defaults to 50. |

## Example response

```json
{
    "data": {
        "count": 3,
        "limit": 3,
        "city_id": "40d8f682-8646-11e6-9066-549f350fcb0c",
        "destinations": [
            {
                "id": "40de8964-8646-11e6-9066-549f350fcb0c",
                "name": "Paris",
                "slug": "paris",
                "price": {
                    "EUR": {
                        "avg": 59.47,
                        "max": 123.97,
                        "min": 58.97
                    }
                },
                "location": {
                    "lat": 48.835335,
                    "lon": 2.380503
                },
                "legacy_id": 2015,
                "country_code": "FR",
                "search_volume": 32644900,
                "needs_transfer": false,
                "transport_modes": [
                    "bus"
                ],
                "route_popularity": 41900,
                "avg_duration_minutes": 981,
                "min_duration_minutes": 680
            },
            {
                "id": "40dfdfd8-8646-11e6-9066-549f350fcb0c",
                "name": "London",
                "slug": "london",
                "price": {
                    "EUR": {
                        "avg": 155.96,
                        "max": 172.98,
                        "min": 84.98
                    }
                },
                "location": {
                    "lat": 51.50735,
                    "lon": -0.1277583
                },
                "legacy_id": 3848,
                "country_code": "GB",
                "search_volume": 18302800,
                "needs_transfer": false,
                "transport_modes": [
                    "bus"
                ],
                "route_popularity": 5600,
                "avg_duration_minutes": 1120,
                "min_duration_minutes": 1120
            },
            {
                "id": "40de1ad1-8646-11e6-9066-549f350fcb0c",
                "name": "Prague",
                "slug": "prague",
                "price": {
                    "EUR": {
                        "avg": 35.97,
                        "max": 61.47,
                        "min": 14.48
                    }
                },
                "location": {
                    "lat": 50.08962,
                    "lon": 14.440946
                },
                "legacy_id": 1374,
                "country_code": "CZ",
                "search_volume": 15546800,
                "needs_transfer": false,
                "transport_modes": [
                    "bus"
                ],
                "route_popularity": 112900,
                "avg_duration_minutes": 303,
                "min_duration_minutes": 220
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "reachable_cities"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required query parameter is missing or invalid. This response is not billable. |
| 404 | Resource Not Found | The city id is unknown or has no routes. This response is not billable. |
| 503 | Service Unavailable | FlixBus could not be reached or answered with an unexpected shape. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
