# FlixBus City Detail API Documentation

<p><strong>FlixBus City Detail API Documentation</strong> Get one city by id: name, both id formats, country code, subdivision code and the time zone offset in seconds.</p>

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

## 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 | City UUID from the cities endpoint. Example: 40d8f682-8646-11e6-9066-549f350fcb0c. |

## Example response

```json
{
    "data": {
        "city": {
            "id": "40d8f682-8646-11e6-9066-549f350fcb0c",
            "name": "Berlin",
            "legacy_id": 88,
            "country_code": "DE",
            "subdivision_code": null,
            "timezone_offset_seconds": 7200
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "city_detail"
    },
    "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. 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)
