# FlixBus Bus Trips, Fares & Seat Availability Scraper (`scrapers_lat/flixbus-scraper`) Actor

Scrape FlixBus and FlixTrain intercity bus trips by route and date across 40+ countries in Europe and the US. Extract price, currency, seats available, transfers, duration, amenities and stations. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers\_lat/flixbus-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Travel, E-commerce, Automation
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $11.54 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

[![FlixBus Bus Trips, Fares & Seat Availability Scraper](https://scrapers.lat/banners/flixbus-scraper.png)](https://console.apify.com/actors/TBwZsEvj4DHYTe529/input)

## FlixBus Bus Trips, Fares & Seat Availability Scraper

> Extract FlixBus intercity bus trips, fares, seat availability and amenities by route and date across 40+ countries in Europe and the US

**📥 [Input](https://apify.com/scrapers_lat/flixbus-scraper/input-schema) · 📤 [Output](https://apify.com/scrapers_lat/flixbus-scraper/output-schema) · 💰 [Pricing](https://apify.com/scrapers_lat/flixbus-scraper/pricing) · ▶️ [Examples](https://apify.com/scrapers_lat/flixbus-scraper/examples)**

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Coverage](https://img.shields.io/badge/Coverage-Europe%20%26%20US-blue)
![Maintained](https://img.shields.io/badge/Maintained-Yes-brightgreen)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)

<table><tr>
<td align="center"><strong>30 fields</strong><br>per trip</td>
<td align="center"><strong>Europe &amp; US</strong><br>coverage</td>
<td align="center"><strong>JSON / CSV / Excel</strong><br>output formats</td>
</tr></table>

<br>

### Who is it for

| Use case | Who benefits |
|---|---|
| Track intercity bus fares over time | Price comparison and travel deal sites |
| Feed live trip and price data into an app | Travel and mobility app developers |
| Analyze routes, frequencies and durations | Transport and mobility analysts |
| Monitor seat availability and capacity | Tour operators and group travel planners |
| Benchmark coach fares against rail and air | Travel market researchers |

### Frequently Asked Questions

**Which countries and routes does the FlixBus scraper cover?**\
It covers the full FlixBus and FlixTrain network across more than 40 countries in Europe plus the United States. You enter any origin and destination city served by FlixBus and a travel date, and the scraper returns every trip on sale for that day.

**How many trips can I get per run?**\
One run covers a single origin, destination and date and returns every trip offered, commonly 20 to 80 results on busy corridors. The Max Items setting caps how many of those trips are saved. To cover several dates or routes, run the actor once per combination.

**Can I choose the currency and number of passengers?**\
Yes. You can pick from currencies such as EUR, USD, GBP, CHF and PLN, and set the number of adult passengers. Prices are returned for that party size and in the chosen currency, including the breakdown with the platform booking fee.

**Does it include transfers, seats and onboard amenities?**\
Yes. Each trip reports the number of transfers, the transfer stations, seats still available, remaining capacity, bike slots and onboard amenities like WiFi and power sockets. Trips with a connection also include a per-leg breakdown.

**What happens if a route has no trips on the chosen date?**\
The scraper returns a single record for the route with an error note saying no trips were found, along with the booking link, so the run still finishes cleanly and you can tell apart empty routes from failures.

### Example use cases

Ready-to-run example tasks, each preconfigured for a common scenario. Open one and press run, or use it as a template:

- [FlixBus Barcelona to Madrid Prices](https://apify.com/scrapers_lat/flixbus-scraper/examples/flixbus-barcelona-madrid-prices): Scrape FlixBus Barcelona to Madrid bus fares, departure and arrival times, trip duration, transfers and seat availability in EUR.
- [FlixBus Brussels to Paris Prices](https://apify.com/scrapers_lat/flixbus-scraper/examples/flixbus-brussels-paris-prices): Scrape FlixBus Brussels to Paris bus fares, departure and arrival times, trip duration, transfers and seat availability in EUR.
- [FlixBus Frankfurt to Berlin Prices](https://apify.com/scrapers_lat/flixbus-scraper/examples/flixbus-frankfurt-berlin-prices): Scrape FlixBus Frankfurt to Berlin bus fares, departure and arrival times, trip duration, transfers and seat availability in EUR.
- [FlixBus Hamburg to Cologne Prices](https://apify.com/scrapers_lat/flixbus-scraper/examples/flixbus-hamburg-cologne-prices): Scrape FlixBus Hamburg to Cologne bus fares, departure and arrival times, trip duration, transfers and seat availability in EUR.
- [FlixBus Milan to Rome Prices](https://apify.com/scrapers_lat/flixbus-scraper/examples/flixbus-milan-rome-prices): Scrape FlixBus Milan to Rome bus fares, departure and arrival times, trip duration, transfers and seat availability in EUR.
- [FlixBus New York to Washington DC Prices](https://apify.com/scrapers_lat/flixbus-scraper/examples/flixbus-new-york-washington-dc-prices): Scrape FlixBus New York to Washington DC bus fares, departure and arrival times, trip duration, transfers and seat availability in USD.
- [FlixBus Vienna to Prague Prices](https://apify.com/scrapers_lat/flixbus-scraper/examples/flixbus-vienna-prague-prices): Scrape FlixBus Vienna to Prague bus fares, departure and arrival times, trip duration, transfers and seat availability in EUR.
- [FlixBus Berlin to Munich Prices](https://apify.com/scrapers_lat/flixbus-scraper/examples/flixbus-berlin-munich-prices): FlixBus Berlin to Munich Prices
- [FlixBus Los Angeles to Las Vegas Prices](https://apify.com/scrapers_lat/flixbus-scraper/examples/flixbus-los-angeles-las-vegas-prices): FlixBus Los Angeles to Las Vegas Prices
- [FlixBus Paris to Amsterdam Prices](https://apify.com/scrapers_lat/flixbus-scraper/examples/flixbus-paris-amsterdam-prices): FlixBus Paris to Amsterdam Prices

### Export, API and AI agents (x402 + MCP)

Export the scraped data to **JSON, CSV or Excel**, pull it as a **dataset** through the Apify **API**, or wire it into your app with **no code**. This web scraper and data extractor also works for bulk data extraction and scheduled runs.

For AI agents: this Actor is available on **x402**, Apify's agentic payment standard built with Coinbase. An AI agent can discover, pay for and run it on its own with a funded wallet and a single HTTP request: no account, no subscription, no API key and no human in the loop. It also runs as an **MCP** tool inside Claude, Cursor and other AI clients out of the box. Learn more about [x402 agentic payments on Apify](https://docs.apify.com/platform/integrations/x402).

### Related scrapers

Need data from the same space? Here are other scrapers we build and maintain:

- [Eventbrite Event Listings Scraper](https://apify.com/scrapers_lat/eventbrite-scraper): Extract public events with venues, dates and ticket prices worldwide.
- [MercadoLibre Product Listings Scraper](https://apify.com/scrapers_lat/mercadolibre-scraper): Pull product listings, prices and sellers across Latin America.
- [Rappi Restaurants & Stores Scraper](https://apify.com/scrapers_lat/rappi-scraper): Collect stores, menus and prices from the Rappi delivery marketplace.
- [Google News Article Scraper](https://apify.com/scrapers_lat/google-news-scraper): Gather news headlines, sources and links for any topic or region.
- [Instagram Profile & Posts Scraper](https://apify.com/scrapers_lat/instagram-scraper): Extract public profiles, posts and engagement metrics from Instagram.
- [X (Twitter) Profiles & Tweets Scraper](https://apify.com/scrapers_lat/x-twitter-scraper): Collect public profiles and tweets with engagement data from X.

### More scrapers at scrapers.lat

This actor is built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for Latin American and US public platforms: real estate, jobs, e-commerce, company registries and government data. Browse the full catalog, see live sample output for each one, or ask us for a custom scraper at [scrapers.lat](https://scrapers.lat).

***

> This actor is an independent tool and has no affiliation with FlixBus. It only accesses data that is publicly available on the platform. Use it in accordance with FlixBus's terms of service.

# Actor input Schema

## `maxTrips` (type: `integer`):

Maximum number of trips to collect for the route and date. Optional.

## `fromCity` (type: `string`):

Origin city name, for example 'Berlin', 'Paris' or 'New York'. The scraper resolves it to the best matching FlixBus city.

## `toCity` (type: `string`):

Destination city name, for example 'Munich', 'Amsterdam' or 'Washington'. The scraper resolves it to the best matching FlixBus city.

## `departureDate` (type: `string`):

Travel date as YYYY-MM-DD. If left empty, the scraper uses a date about two weeks from today.

## `passengers` (type: `integer`):

Number of adult passengers. Prices are returned for this party size.

## `currency` (type: `string`):

Currency in which fares are returned.

## Actor input object example

```json
{
  "maxTrips": 10,
  "fromCity": "Berlin",
  "toCity": "Munich",
  "passengers": 1,
  "currency": "EUR"
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxTrips": 10,
    "fromCity": "Berlin",
    "toCity": "Munich",
    "passengers": 1
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/flixbus-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "maxTrips": 10,
    "fromCity": "Berlin",
    "toCity": "Munich",
    "passengers": 1,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/flixbus-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxTrips": 10,
  "fromCity": "Berlin",
  "toCity": "Munich",
  "passengers": 1
}' |
apify call scrapers_lat/flixbus-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapers_lat/flixbus-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/TBwZsEvj4DHYTe529/builds/W8cdjkxMHLqQ6MA9p/openapi.json
