# Busbud Scraper: Bus, Train & Ferry Fares, Routes, Schedules (`getascraper/busbud-fares-scraper`) Actor

Export every bookable Busbud departure for a route and date: live fares split into base and fees, operators, transfers, seats, amenities and ISO times across buses, trains and ferries. Filter by price, transfers, time, operator or amenity, or track the cheapest fare per route daily.

- **URL**: https://apify.com/getascraper/busbud-fares-scraper.md
- **Developed by:** [GetAScraper](https://apify.com/getascraper) (community)
- **Categories:** Travel, Automation, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.80 / 1,000 departures

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## 🚌 Busbud Scraper: Bus, Train & Ferry Fares, Routes, Schedules

**Turn any Busbud route into a full, priced timetable.**

Export every bookable departure for a route and date from Busbud, the global marketplace for intercity coach and rail travel. Built for operators, travel startups and price teams who need live fares, operators, transfers, seats and amenities across buses, trains and ferries.

### ✨ What you get

- **The whole day:** Every departure Busbud can sell for your route and date, not the sample the public page shows.
- **Live, split fares:** Base fare, fees and taxes, and price per passenger in the currency you pick.
- **Filters that bite:** Max transfers, time window, price ceiling, operator and amenity.
- **Monitor mode:** Keep only the cheapest fare per route and date for a clean daily feed.

### 🎯 What does it do?

You give it routes (paste a Busbud route link, or write "Mexico City > Oaxaca") and the dates you care about. It returns one row per bookable departure, in time order, with the fare Busbud would charge right now.

- **Full schedule, not a teaser.** The public route page shows a handful of departures. This Actor returns every one Busbud can sell on your dates.
- **Live, split fares.** Each row carries the total for your party, broken into base fare and fees plus taxes, with a bookable-until deadline and a per-passenger figure.
- **Buses, trains and ferries, labelled.** A vehicle-type column says which is which, and you can keep only the ones you want.
- **Transfers made explicit.** Connecting journeys carry the transfer count, the transfer stations in order, and per-leg detail, so a two-change itinerary is never mistaken for a direct one.
- **Thirty currencies.** Ask for USD, EUR, ZAR, MXN, BRL, JPY and more, and the fare comes back converted, so a South African and a Mexican corridor land in the same column.
- **No account, no key.** It reads the same public data a logged-out visitor sees.

It goes further than other Busbud scrapers where it counts for real work:

- Price **children and seniors** alongside adults in one search.
- Keep itineraries by a **numeric transfer ceiling**, not just all-or-nothing direct.
- Narrow to a **time-of-day window**, a **fare ceiling**, a specific **operator**, or **required amenities** like wifi and power outlets.
- Flip on **Lowest Fare Only** and schedule a daily run to build a fare curve with no extra work.
- Get **station coordinates, geohashes and per-leg structure** in the output, not just names.

It is built for:

- **Bus and coach operators** watching competitor departures, fares and seat pressure on their corridors.
- **Travel and mobility startups** seeding a route database with real schedules and prices.
- **Price-intelligence and revenue teams** tracking a fare curve from months out down to the day of travel.
- **Travel comparison and metasearch builders** comparing coach, rail and ferry on the same route.
- **Transport researchers and planners** measuring service frequency and journey times between cities.

### 🚀 How to use it

1. Enter your routes: paste Busbud route links, or write city pairs like "Johannesburg > Cape Town".
2. Pick dates and filters: set travel dates, party size, currency, and any filters you need.
3. Run it, then export CSV, Excel, JSON or XML, or pull the dataset into your own tools.

To build a fare curve, run the same route every morning for the same travel date with Lowest Fare Only on. The price and scrapedAt columns are all a time series needs.

### 🧩 Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `startUrls` | array of URLs | No | Busbud route, results or deeplink URLs. The two city geohashes are read from the URL. |
| `routeQueries` | array of strings | No | Routes written as "Origin > Destination", resolved against Busbud's city index. |
| `departureDates` | array of strings | No | Exact travel dates, YYYY-MM-DD. Past dates and dates beyond about 330 days are dropped. |
| `daysAhead` | integer | No | When no exact dates are given, search this many days from tomorrow. |
| `currency` | string | No | ISO currency code for the fare quote, for example USD, EUR, MXN. |
| `adults` | integer | No | Adult passengers to price. |
| `children` | integer | No | Child passengers to price. |
| `seniors` | integer | No | Senior passengers to price. |
| `directOnly` | boolean | No | Keep only non-stop departures. |
| `maxTransfers` | integer | No | Keep only departures with at most this many transfers. |
| `departAfter` | string | No | Keep only departures leaving at or after this local time, HH:MM. |
| `departBefore` | string | No | Keep only departures leaving at or before this local time, HH:MM. |
| `maxPrice` | number | No | Keep only departures at or below this total price. |
| `operators` | array of strings | No | Keep only carriers whose name contains one of these. |
| `requiredAmenities` | array of strings | No | Keep only departures that publish all of these amenities. |
| `vehicleTypes` | enum array | No | Keep only these modes: bus, train, ferry, shuttle, van, carpool. |
| `lang` | string | No | Two-letter interface language, for example en, es, fr. |
| `lowestFareOnly` | boolean | No | Return only the cheapest bookable departure per route and date. |
| `maxItems` | integer | No | Maximum departure rows to write in total. |
| `proxyConfiguration` | object | No | Proxy settings. Residential is on by default and recommended. |

### 📊 Data table

| Field | Type | Description |
| --- | --- | --- |
| `routeName` | string | Origin city to destination city. |
| `bookingUrl` | string | Busbud deeplink that opens this exact departure. |
| `searchUrl` | string | The Busbud results page for this route and date. |
| `departureId` | string | Stable journey hash, used to deduplicate across dates. |
| `originCity` / `originRegion` / `originCountry` | string | Where the service leaves from. |
| `originStation` | string | Stop or terminal at the origin. |
| `originGeohash` / `originLat` / `originLng` | string / number | Origin location keys and coordinates. |
| `destinationCity` / `destinationRegion` / `destinationCountry` | string | Where the service arrives. |
| `destinationStation` | string | Stop or terminal at the destination. |
| `destinationGeohash` / `destinationLat` / `destinationLng` | string / number | Destination location keys and coordinates. |
| `operator` | string | Primary carrier running the journey. |
| `operators` | array | Every carrier on the journey. |
| `departureTime` / `arrivalTime` | string | ISO timestamps with the local UTC offset. |
| `departureDate` | string | Travel date searched, YYYY-MM-DD. |
| `departureTimezone` / `arrivalTimezone` | string | IANA timezones at each end. |
| `durationMinutes` / `duration` | number / string | Total journey time, transfers included. |
| `transfers` / `isDirect` | number / string | Number of changes, and a Yes or No direct flag. |
| `legs` | array | Per-leg operator, mode, stations and times. |
| `transferStations` | array | Stops where you change, in order. |
| `price` / `pricePerPassenger` | number | Total fare for the party, and per passenger. |
| `priceCurrency` | string | ISO currency code of the fare. |
| `basePrice` / `feesAndTaxes` | number | Fare before fees, and the fees plus taxes. |
| `passengers` | number | Passengers the fare was priced for. |
| `availableSeats` | number | Seats left where the operator publishes it. |
| `isBookable` / `bookableUntil` | string | Whether Busbud will still sell it, and until when. |
| `vehicleType` | string | Bus, Train, Ferry, Shuttle, Van or Carpool. |
| `serviceClass` / `serviceName` / `serviceNumber` | string | Fare class, and named service details for trains. |
| `amenities` | array | Wifi, power outlets, toilet, AC and the rest, as published. |
| `scrapedAt` | string | UTC timestamp of the run. |

A sample departure row:

```json
{
  "routeName": "Boston to New York City",
  "bookingUrl": "https://www.busbud.com/en/deeplink/drt2yz/dr5reg/eyJsZWdfaGFzaGVzIjpbImNiZTRhZjZhIl0sInJvdXRlX2lkcyI6WzM5ODk3NzQyXSwic2VhcmNoX2lkIjoiOTc0ZTUxMGMiLCJ2ZXJzaW9uIjoyfQ",
  "departureId": "7628a87a2e23e3c5542d11a6c9e6d38f28534f0d773267fcfe63c5fcba4ca225",
  "originCity": "Boston",
  "originStation": "Boston (South Station)",
  "originGeohash": "drt2yz",
  "destinationCity": "New York City",
  "destinationStation": "NYC Midtown (31st St & 8th Ave)",
  "destinationGeohash": "dr5reg",
  "operator": "FlixBus",
  "operators": ["FlixBus"],
  "departureTime": "2026-09-10T01:00:00-04:00",
  "arrivalTime": "2026-09-10T05:30:00-04:00",
  "departureDate": "2026-09-10",
  "departureTimezone": "America/New_York",
  "durationMinutes": 270,
  "duration": "4h 30m",
  "transfers": 0,
  "isDirect": "Yes",
  "legs": [{ "operator": "FlixBus", "vehicleType": "Bus", "fromStation": "Boston (South Station)", "toStation": "NYC Midtown (31st St & 8th Ave)", "departureTime": "2026-09-10T01:00:00-04:00", "arrivalTime": "2026-09-10T05:30:00-04:00" }],
  "transferStations": [],
  "price": 50.16,
  "pricePerPassenger": 50.16,
  "priceCurrency": "USD",
  "basePrice": 42.99,
  "feesAndTaxes": 7.17,
  "passengers": 1,
  "availableSeats": 20,
  "isBookable": "Yes",
  "bookableUntil": "2026-09-10T04:55:00Z",
  "vehicleType": "Bus",
  "serviceClass": "Classic",
  "amenities": ["Wifi", "Power outlets", "Ac", "Toilet"],
  "scrapedAt": "2026-09-09T19:38:05.571Z"
}
```

### 💰 Pricing

This Actor is pay per result. You pay only for the departures you keep, so empty searches and routes with no service are not billed, and there are no subscriptions. See the pricing panel on this page for current rates.

### ⭐ Enjoying Busbud Scraper?

If it saved you a stack of browser tabs, a quick rating helps other travellers and teams find it.

[Rate this Actor on Apify](https://apify.com/getascraper/busbud-fares-scraper/reviews)

### ❓ FAQ

#### Do I need a Busbud account or an API key?

No. The Actor reads the same anonymous data a logged-out visitor sees. There is no login, key or cookie to provide.

#### How far into the future can I search?

About 11 months. Busbud sells roughly 330 days ahead, so later dates are dropped with a message rather than returning an empty file.

#### Are the prices real fares or estimates?

Real fares. Each row is what Busbud would charge for that seat at the moment of the run, split into base fare and fees plus taxes. Prices move, so a row is a snapshot, not a held quote.

#### Does it cover trains and ferries too?

Yes, wherever Busbud sells them. The vehicle-type column labels each row, and the vehicle filter lets you keep only buses, only trains, or only ferries.

#### Can I get a whole country or operator in one run?

Busbud prices per city pair and date, so give the Actor the routes you care about. Many routes and dates can run in one job.

### 🔗 Other actors

- [Award Flights Scraper: Miles, Taxes, Seats & Cabins, No Login](https://apify.com/getascraper/award-flights-scraper) ↗ - Find award seat availability and mileage prices across cabins.
- [Google Hotels Scraper: Hotel Prices, OTA Rates & Price Alerts](https://apify.com/getascraper/google-hotels-scraper) ↗ - Compare live hotel rates across booking sites.
- [Choice Hotels Scraper: Room Rates, Reviews & Rate-Drop Alerts](https://apify.com/getascraper/choice-hotels-scraper) ↗ - Track room rates and watch for price drops.
- [Ctrip Attractions & Tickets Scraper: Prices and Ratings](https://apify.com/getascraper/ctrip-attractions-ticket-catalog) ↗ - Pull attraction ticket prices and ratings for a destination.
- [Agoda Hotel Reviews Scraper: Guest Reviews, Replies, New Only](https://apify.com/getascraper/agoda-hotel-reviews-scraper) ↗ - Collect guest reviews and operator replies for hotels.

# Changelog

This Actor's version history is a separate document: https://apify.com/getascraper/busbud-fares-scraper/changelog.md

# Actor input Schema

## `startUrls` (type: `array`):

Busbud route, results or deeplink URLs. The two city geohashes are read straight from the URL path, so any valid Busbud route link works. Leave the default to scrape the Boston to New York corridor.

## `routeQueries` (type: `array`):

Routes written as "Origin > Destination", for example "Mexico City > Oaxaca". Each side is resolved to a Busbud city. Use this when you do not have a route URL to hand.

## `departureDates` (type: `array`):

Exact travel dates in YYYY-MM-DD form. Past dates and dates beyond Busbud's roughly 330-day horizon are dropped with a log message. Leave empty to use Days Ahead instead.

## `daysAhead` (type: `integer`):

When no exact dates are given, search this many consecutive days starting tomorrow. Keep it small: each day is a separate fare search.

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

ISO currency code Busbud should quote fares in. Always sent explicitly so a run does not silently inherit a currency guessed from the proxy IP.

## `adults` (type: `integer`):

Number of adult passengers the fare is priced for. The price field is the total for the whole party.

## `children` (type: `integer`):

Number of child passengers to price. Competing Busbud scrapers price adults only, so this exposes the family and group fares they cannot quote.

## `seniors` (type: `integer`):

Number of senior passengers to price, where the operator offers a senior fare. Priced alongside adults and children in one search.

## `directOnly` (type: `boolean`):

Keep only non-stop departures with zero transfers.

## `maxTransfers` (type: `integer`):

Keep only departures with at most this many transfers. A numeric ceiling other Busbud scrapers do not offer: they stop at a simple direct-only toggle, so a 1-change itinerary cannot be kept while dropping 3-change ones. Leave empty for any.

## `departAfter` (type: `string`):

Keep only departures leaving at or after this local time, 24-hour HH:MM. Useful for filtering out overnight or very early services.

## `departBefore` (type: `string`):

Keep only departures leaving at or before this local time, 24-hour HH:MM. Combine with Depart At Or After to keep a daytime window.

## `maxPrice` (type: `number`):

Fare ceiling: keep only departures whose total price is at or below this value, in the chosen currency. A budget filter the incumbent scrapers leave to post-processing.

## `operators` (type: `array`):

Keep only departures run by a carrier whose name contains one of these, for example "FlixBus" or "Amtrak". Case-insensitive. Leave empty to keep every operator.

## `requiredAmenities` (type: `array`):

Keep only departures that publish all of these amenities, for example "Wifi" and "Power outlets". Lets you shop by onboard comfort, which the incumbent scrapers only return as raw text.

## `vehicleTypes` (type: `array`):

Keep only these vehicle types. Leave empty for all.

## `lang` (type: `string`):

Two-letter interface language Busbud answers in, for example en, es, fr. Affects city and station names.

## `lowestFareOnly` (type: `boolean`):

Return only the single cheapest bookable departure per route and date. Purpose-built for daily price monitoring: schedule the run, keep one row per day, and you have a clean fare curve without post-processing. Off by default.

## `maxItems` (type: `integer`):

Maximum number of departure rows to write across all routes and dates. Keep it modest while testing; raise it for a full timetable export.

## `proxyConfiguration` (type: `object`):

Busbud answers plain datacentre addresses with an empty search, so residential proxy is on by default and strongly recommended. Changing this is a paid-feature setting.

## `debug` (type: `boolean`):

Log the raw backend status and payload shape for troubleshooting. Leave off for normal runs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.busbud.com/en/bus-schedules-results/drt2yz/dr5reg/boston-new-york"
    }
  ],
  "routeQueries": [
    "Mexico City > Oaxaca"
  ],
  "departureDates": [],
  "daysAhead": 1,
  "currency": "USD",
  "adults": 1,
  "children": 0,
  "seniors": 0,
  "directOnly": false,
  "operators": [],
  "requiredAmenities": [],
  "vehicleTypes": [],
  "lang": "en",
  "lowestFareOnly": false,
  "maxItems": 25,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "debug": false
}
```

# Actor output Schema

## `departures` (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 = {
    "startUrls": [
        {
            "url": "https://www.busbud.com/en/bus-schedules-results/drt2yz/dr5reg/boston-new-york"
        }
    ],
    "routeQueries": [
        "Mexico City > Oaxaca"
    ],
    "departureDates": [],
    "daysAhead": 1,
    "currency": "USD",
    "adults": 1,
    "children": 0,
    "seniors": 0,
    "directOnly": false,
    "operators": [],
    "requiredAmenities": [],
    "vehicleTypes": [],
    "lang": "en",
    "lowestFareOnly": false,
    "maxItems": 25,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    },
    "debug": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("getascraper/busbud-fares-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 = {
    "startUrls": [{ "url": "https://www.busbud.com/en/bus-schedules-results/drt2yz/dr5reg/boston-new-york" }],
    "routeQueries": ["Mexico City > Oaxaca"],
    "departureDates": [],
    "daysAhead": 1,
    "currency": "USD",
    "adults": 1,
    "children": 0,
    "seniors": 0,
    "directOnly": False,
    "operators": [],
    "requiredAmenities": [],
    "vehicleTypes": [],
    "lang": "en",
    "lowestFareOnly": False,
    "maxItems": 25,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
    "debug": False,
}

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

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

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

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://www.busbud.com/en/bus-schedules-results/drt2yz/dr5reg/boston-new-york"
    }
  ],
  "routeQueries": [
    "Mexico City > Oaxaca"
  ],
  "departureDates": [],
  "daysAhead": 1,
  "currency": "USD",
  "adults": 1,
  "children": 0,
  "seniors": 0,
  "directOnly": false,
  "operators": [],
  "requiredAmenities": [],
  "vehicleTypes": [],
  "lang": "en",
  "lowestFareOnly": false,
  "maxItems": 25,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  },
  "debug": false
}' |
apify call getascraper/busbud-fares-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,getascraper/busbud-fares-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2f6YoMOO9B7vSH2x6/builds/WdRUbhgeSQK0eqAdJ/openapi.json
