Skip to content
Scrappa Get API key
FlixBus API 1 credit/request

FlixBus City Catalog API Documentation

GET https://scrappa.co/api/flixbus/city-catalog

FlixBus City Catalog API Documentation Browse the FlixBus city catalogue page by page: name, slug, coordinates, short description, activities, transport modes (bus, flixtrain, train) and search_volume, a demand figure that gives a popularity order. FlixBus gives no total: has_more is true when the page is full and next_offset is the offset of the next page.

FlixBus City Catalog API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/flixbus/city-catalog
Auth header
x-api-key
Cost
1 credit/request
Response preview
200 OK
{
    "data": {
        "count": 3,
        "limit": 3,
        "cities": [
            {
                "id": "40d8f682-8646-11e6-9066-549f350fcb0c",
                "name": "Berlin",
                "slug": "berlin",
                "location": {
                    "lat": 52.525017,
                    "lon": 13.369474
                },
                "legacy_id": 88,
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

This endpoint has no required query parameters.

2 optional filters available.

limit integer Optional

Cities per page, 1 to 200. Defaults to 50.

Example value 10
offset integer Optional

Number of cities to skip. Use next_offset of the previous page. Defaults to 0.

Example value 10

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "count": 3,
        "limit": 3,
        "cities": [
            {
                "id": "40d8f682-8646-11e6-9066-549f350fcb0c",
                "name": "Berlin",
                "slug": "berlin",
                "location": {
                    "lat": 52.525017,
                    "lon": 13.369474
                },
                "legacy_id": 88,
                "activities": [
                    "nightlife-and-entertainment",
                    "arts-and-culture",
                    "luxury-experiences"
                ],
                "description": "Visit iconic landmarks like the Brandenburg Gate and Museum Island; experience vibrant nightlife.",
                "country_code": "DE",
                "search_volume": 37347400,
                "transport_modes": [
                    "bus",
                    "flixtrain"
                ]
            },
            {
                "id": "40d91e53-8646-11e6-9066-549f350fcb0c",
                "name": "Hamburg",
                "slug": "hamburg",
                "location": {
                    "lat": 53.551765,
                    "lon": 10.011657
                },
                "legacy_id": 118,
                "activities": [
                    "nightlife-and-entertainment",
                    "arts-and-culture",
                    "beaches-and-waterfronts"
                ],
                "description": "Discover the Elbphilharmonie, stroll the Reeperbahn, and relax at Elbstrand beach.",
                "country_code": "DE",
                "search_volume": 15500100,
                "transport_modes": [
                    "bus",
                    "flixtrain",
                    "train"
                ]
            },
            {
                "id": "40d901a5-8646-11e6-9066-549f350fcb0c",
                "name": "Munich",
                "slug": "muenchen",
                "location": {
                    "lat": 48.135124,
                    "lon": 11.581981
                },
                "legacy_id": 94,
                "activities": [
                    "arts-and-culture",
                    "festivals-and-events",
                    "luxury-experiences"
                ],
                "description": "Attend Oktoberfest, explore Nymphenburg Palace, and shop along Maximilianstrasse.",
                "country_code": "DE",
                "search_volume": 14556600,
                "transport_modes": [
                    "bus"
                ]
            }
        ],
        "offset": 0,
        "has_more": true,
        "next_offset": 3
    },
    "meta": {
        "billable": true,
        "endpoint_family": "city_catalog"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A required query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "limit": [
            "The limit may not be greater than 200."
        ]
    },
    "message": "The request validation failed"
}
503

Service Unavailable

FlixBus could not be reached or answered with an unexpected shape. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "city_catalog"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The FlixBus API is temporarily unavailable. Please retry."
    },
    "success": false
}

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.