# Busbud Routes Scraper (`parsebird/busbud-routes-scraper`) Actor

Scrape Busbud bus, train and ferry departures for any route and date: live fares with fees, times with timezones, operators, seats left, amenities and transfers. 30 currencies. Export JSON, CSV or Excel.

- **URL**: https://apify.com/parsebird/busbud-routes-scraper.md
- **Developed by:** [ParseBird](https://apify.com/parsebird) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.49 / 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 Routes Scraper

Busbud Routes Scraper extracts every bus, train and ferry departure that [Busbud](https://www.busbud.com) sells on a route, for the dates you choose, with live fares, times, operators, seats left and transfer stations.

<table><tr>
<td style="border-left:4px solid #1C1917;padding:12px 16px;font-weight:600">
Paste Busbud route URLs or type city pairs like "Mexico City > Oaxaca", pick exact dates or a rolling window, and get one row per departure with 38 fields: price split into base fare and fees in any of 30 currencies, ISO times with timezones, operator, vehicle type, class, seats left, amenities and transfer stations.
</td>
</tr></table>

##### Copy to your AI assistant

Copy this block into ChatGPT, Claude, Cursor, or any LLM to start using this actor.

```text
Apify actor parsebird/busbud-routes-scraper scrapes bus, train and ferry departures with live fares from Busbud (busbud.com). Call it with the apify-client package: client.actor("parsebird/busbud-routes-scraper").call(run_input={"routeQueries": ["Boston > New York"], "departureDates": ["2026-12-24"], "currency": "USD", "maxItems": 200}). Inputs: startUrls (array of {"url": ...}: Busbud route pages like https://www.busbud.com/en/bus-boston-new-york-city/r/drt2yz-dr5reg, station or airport pages with /i/, /bus-schedules-results/ search URLs, or deeplinks); routeQueries (array of strings "Origin > Destination", each name looked up in Busbud's place index; add a region to disambiguate, e.g. "Portland, Maine > Boston"); maxItems (integer, default 100, max departures saved); departureDates (array of "YYYY-MM-DD"; past dates and dates more than 365 days ahead are skipped); daysAhead (integer 1-365, default 1, used when departureDates is empty: searches each of the next N days starting tomorrow UTC); currency (one of USD, EUR, GBP, CAD, AUD, NZD, MXN, BRL, ARS, CLP, COP, PEN, ZAR, MAD, TRY, CHF, CZK, DKK, NOK, SEK, PLN, RUB, ILS, INR, CNY, HKD, JPY, KRW, SGD, THB; default USD); adults (integer 1-9, default 1, price is for the whole group); directOnly (boolean, default false); vehicleTypes (array of "bus", "train", "ferry", "shuttle", "van", "carpool"; empty = all); proxyConfiguration (object, default {"useApifyProxy": true}). Output: one dataset item per departure with routeName, bookingUrl, departureId, originCity, originRegion, originCountry, originStation, destinationCity, destinationRegion, destinationCountry, destinationStation, operator, departureTime, arrivalTime (ISO with UTC offset), departureDate, departureTimezone, arrivalTimezone (IANA), durationMinutes, duration, transfers, isDirect ("Yes"/"No"), price, priceCurrency, basePrice, feesAndTaxes, passengers, availableSeats, isBookable ("Yes"/"No"), bookableUntil (UTC), vehicleType, serviceClass, serviceName, serviceNumber, operators, amenities, transferStations, scrapedAt, error (set only on rows reporting a failed search or a route that could not be found). API docs: https://apify.com/parsebird/busbud-routes-scraper/api. Get a token: https://console.apify.com/settings/integrations
```

### What is Busbud Routes Scraper?

**Busbud Routes Scraper** is a **Busbud scraper** that turns Busbud route searches into clean, structured **bus and train schedule data with live fares**. [Busbud](https://www.busbud.com) is a travel marketplace that sells intercity bus, train and ferry tickets from many operators in one search. This actor works as a **Busbud API alternative**: it needs no Busbud account or API key.

To try it, keep the prefilled Boston to New York City route and click **Start**. You get 10 priced departures for tomorrow, each with the operator, station, departure and arrival time, fare, fees, seats left and a link to book it on Busbud.

It asks Busbud's own search service for each route and date, the same one the Busbud website uses, so you get every departure Busbud returns for that search, not only the few shown on a route's landing page.

### What can Busbud Routes Scraper do?

- 🔗 **Two ways to name a route**: paste Busbud URLs (route pages, station and airport pages, search results URLs, deeplinks), or type `Origin > Destination` and the actor looks both places up in Busbud's own place index.
- 🚌 **Every departure in the search**: in our tests (November 2026), one day of Boston to New York City returned 177 to 223 departures, London to Manchester 230, Mexico City to Oaxaca 80 and Johannesburg to Cape Town 79.
- 💵 **Live fares, split up**: each row has the total price for your group, the base fare and the fees and taxes, so you can compare operators that add booking fees with ones that don't.
- 💱 **30 currencies**: Busbud converts the fare before it answers, so routes in South Africa, Mexico and the US can land in one currency column.
- 🕒 **Times you can compute with**: departure and arrival as ISO timestamps with the UTC offset, plus the IANA timezone at each end and the duration in minutes.
- 🔁 **Transfers made explicit**: connecting trips carry the number of changes and the names of the transfer stations. Turn on **Direct departures only** to drop them.
- 🚆 **Bus, train, ferry and more**: `vehicleType` says which it is (bus, train, ferry, shuttle, van or carpool), and you can keep only the types you want.
- 📅 **Many dates at once**: list exact dates or search the next N days. Each route and date is one search.

Apify platform features come with it: run on a [schedule](https://docs.apify.com/platform/schedules) to track fares over time, call it through the [Apify API](https://docs.apify.com/api/v2), connect it to [integrations](https://apify.com/integrations) such as Google Sheets, Slack, Zapier, Make or n8n, and export results as JSON, CSV, Excel, XML or HTML.

### What data can you extract from Busbud?

| Field | What it holds |
|-------|---------------|
| `routeName` | Origin to destination, as Busbud names them |
| `operator`, `operators` | Carrier running the trip (all carriers on a connecting trip) |
| `originStation`, `destinationStation` | Stop, terminal or station the trip leaves from and arrives at |
| `originCity`, `originRegion`, `originCountry` | City, state or region, and country of the departure station (same for destination) |
| `departureTime`, `arrivalTime` | ISO timestamps with the local UTC offset |
| `departureTimezone`, `arrivalTimezone` | IANA timezone, for example `America/New_York` |
| `durationMinutes`, `duration` | Total trip time including transfers, as minutes and as `4h 30m` |
| `transfers`, `isDirect`, `transferStations` | Number of changes, `Yes`/`No`, and where you change |
| `price`, `basePrice`, `feesAndTaxes`, `priceCurrency` | Total fare for the group, fare before fees, fees and taxes, currency code |
| `passengers` | Adults the fare was priced for |
| `availableSeats` | Seats left on the fullest leg, when the operator shares it |
| `isBookable`, `bookableUntil` | Whether Busbud still sells the seat, and the UTC time sales close |
| `vehicleType` | Bus, Train, Ferry, Shuttle, Van or Carpool (`Bus + Train` for mixed trips) |
| `serviceClass`, `serviceName`, `serviceNumber` | Fare class (for example Classic, Business Class Seat), named service and train number |
| `amenities` | Wifi, power outlets, toilet, AC and others, as Busbud lists them |
| `bookingUrl` | Busbud link that opens this departure |
| `departureId` | Busbud's id for the physical trip. Different fare classes of the same train share it |

### How to scrape Busbud

1. Open [Busbud Routes Scraper](https://apify.com/parsebird/busbud-routes-scraper) in Apify Console and click **Try for free** (you need a free Apify account).
2. Under **Busbud route URLs**, paste a route page from busbud.com, such as `https://www.busbud.com/en/bus-boston-new-york-city/r/drt2yz-dr5reg`. Or, under **City pairs**, type routes such as `Mexico City > Oaxaca`.
3. Under **Dates**, add exact **Travel dates** (`2026-12-24`) or set **Days ahead** to search the next few days.
4. Optionally pick the **Fare currency**, number of **Adult passengers**, **Direct departures only** and **Vehicle types**.
5. Set **Max departures** and click **Start**.
6. When the run finishes, open the **Output** tab and download the departures as JSON, CSV, Excel, XML or HTML.

### Input parameters

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `startUrls` | array | No\* | — | Busbud URLs: route pages (`/r/`), station or airport pages (`/i/`), search results URLs (`/bus-schedules-results/`) or deeplinks. A results URL with `outbound_date` is searched on that date unless you set travel dates. |
| `routeQueries` | array of strings | No\* | — | Routes as `Origin > Destination`. Add a region to pick between same-named places: `Portland, Maine > Boston`. Station and airport names work too. |
| `maxItems` | integer | No | 100 | Stop after saving this many departures |
| `departureDates` | array of strings | No | — | Exact dates in `YYYY-MM-DD`. Past dates and dates more than 365 days ahead are skipped |
| `daysAhead` | integer | No | 1 | Used when no dates are set: search each of the next N days (1–365), starting tomorrow (UTC) |
| `currency` | string | No | `USD` | One of 30 currencies (USD, EUR, GBP, CAD, AUD, MXN, BRL, ZAR, JPY and more) |
| `adults` | integer | No | 1 | Adults priced in each search (1–9). The price is for the whole group |
| `directOnly` | boolean | No | `false` | Keep only departures with no change |
| `vehicleTypes` | array | No | all | Keep only `bus`, `train`, `ferry`, `shuttle`, `van` or `carpool` departures |
| `proxyConfiguration` | object | No | Apify Proxy | Proxy settings for reaching Busbud |

\* Add at least one route URL or one city pair.

### Output example

Each departure is one dataset item. Here are three real rows from a Boston to New York City run (a bus, a train and a connecting trip):

```json
[
  {
    "routeName": "Boston to New York City",
    "bookingUrl": "https://www.busbud.com/en/deeplink/drt2yz/dr5reg/eyJsZWdfaGFzaGVzIjpbImQ4ZTk1MWVhIl0sInJvdXRlX2lkcyI6WzM5ODk3NzQyXSwic2VhcmNoX2lkIjoiZTcxYTVkNmE3YjFkNDUxNWVlYjk2MGU1OWNjNGJkYWM0MjE3ZThjYjAwYzRkMWJjMmJjOTFjYmQ1MmJlNjg5ZCIsInZlcnNpb24iOjJ9?outbound_date=2026-11-25&adults=1",
    "departureId": "f1ef9c9ace74793398d3fe38edd3df7af01a4c2187fa6c60df92ff599c054579",
    "originCity": "Boston",
    "originRegion": "Massachusetts",
    "originCountry": "United States",
    "originStation": "Boston (South Station)",
    "destinationCity": "New York City",
    "destinationRegion": "New York",
    "destinationCountry": "United States",
    "destinationStation": "NYC Midtown (31st St & 8th Ave)",
    "operator": "FlixBus",
    "departureTime": "2026-11-25T01:00:00-05:00",
    "arrivalTime": "2026-11-25T05:30:00-05:00",
    "departureDate": "2026-11-25",
    "departureTimezone": "America/New_York",
    "arrivalTimezone": "America/New_York",
    "durationMinutes": 270,
    "duration": "4h 30m",
    "transfers": 0,
    "isDirect": "Yes",
    "price": 107.16,
    "priceCurrency": "USD",
    "basePrice": 99.99,
    "feesAndTaxes": 7.17,
    "passengers": 1,
    "availableSeats": 20,
    "isBookable": "Yes",
    "bookableUntil": "2026-11-25T05:55:00Z",
    "vehicleType": "Bus",
    "serviceClass": "Classic",
    "serviceName": null,
    "serviceNumber": null,
    "operators": ["FlixBus"],
    "amenities": ["Wifi", "Power outlets", "AC", "Average seat", "Toilet"],
    "transferStations": [],
    "scrapedAt": "2026-11-24T11:38:32.065Z",
    "error": null
  },
  {
    "routeName": "Boston to New York City",
    "bookingUrl": "https://www.busbud.com/en/deeplink/drt2yz/dr5reg/eyJsZWdfaGFzaGVzIjpbImZkZDk1NDIxIl0sInJvdXRlX2lkcyI6WzQ2ODI5OTQxXSwic2VhcmNoX2lkIjoiZTcxYTVkNmE3YjFkNDUxNWVlYjk2MGU1OWNjNGJkYWM0MjE3ZThjYjAwYzRkMWJjMmJjOTFjYmQ1MmJlNjg5ZCIsInZlcnNpb24iOjJ9?outbound_date=2026-11-25&adults=1",
    "departureId": "77af946101a7f3540df26d20ace3226d7a66fd058eae8ea77014d918d3d4c534",
    "originCity": "Boston",
    "originRegion": "Massachusetts",
    "originCountry": "United States",
    "originStation": "South Station (Train Terminal)",
    "destinationCity": "New York City",
    "destinationRegion": "New York",
    "destinationCountry": "United States",
    "destinationStation": "Penn Station, Moynihan Train Hall",
    "operator": "NextGen Acela",
    "departureTime": "2026-11-25T05:00:00-05:00",
    "arrivalTime": "2026-11-25T08:51:00-05:00",
    "departureDate": "2026-11-25",
    "departureTimezone": "America/New_York",
    "arrivalTimezone": "America/New_York",
    "durationMinutes": 231,
    "duration": "3h 51m",
    "transfers": 0,
    "isDirect": "Yes",
    "price": 318.96,
    "priceCurrency": "USD",
    "basePrice": 307.0,
    "feesAndTaxes": 11.96,
    "passengers": 1,
    "availableSeats": 72,
    "isBookable": "Yes",
    "bookableUntil": "2026-11-25T09:55:00Z",
    "vehicleType": "Train",
    "serviceClass": "Business Class Seat",
    "serviceName": "NextGen Acela",
    "serviceNumber": "2151",
    "operators": ["NextGen Acela"],
    "amenities": ["Wifi", "Power outlets", "Quiet zone", "Cafe", "AC", "Average seat", "Refreshment", "Toilet"],
    "transferStations": [],
    "scrapedAt": "2026-11-24T11:38:32.065Z",
    "error": null
  },
  {
    "routeName": "Boston to New York City",
    "bookingUrl": "https://www.busbud.com/en/deeplink/drt2yz/dr5reg/eyJsZWdfaGFzaGVzIjpbIjZlZTc3MWE4Il0sInJvdXRlX2lkcyI6WzEyNjA5NjEyMF0sInNlYXJjaF9pZCI6ImU3MWE1ZDZhN2IxZDQ1MTVlZWI5NjBlNTljYzRiZGFjNDIxN2U4Y2IwMGM0ZDFiYzJiYzkxY2JkNTJiZTY4OWQiLCJ2ZXJzaW9uIjoyfQ?outbound_date=2026-11-25&adults=1",
    "departureId": "94668c5bb120a50a5eb8ed26430bf6ecde21d4b507a32c3bb8b2fe4c69fb3a73",
    "originCity": "Boston",
    "originRegion": "Massachusetts",
    "originCountry": "United States",
    "originStation": "Boston (South Station)",
    "destinationCity": "New York City",
    "destinationRegion": "New York",
    "destinationCountry": "United States",
    "destinationStation": "Port Authority Bus Terminal",
    "operator": "Peter Pan",
    "departureTime": "2026-11-25T06:00:00-05:00",
    "arrivalTime": "2026-11-25T10:50:00-05:00",
    "departureDate": "2026-11-25",
    "departureTimezone": "America/New_York",
    "arrivalTimezone": "America/New_York",
    "durationMinutes": 290,
    "duration": "4h 50m",
    "transfers": 1,
    "isDirect": "No",
    "price": 81.12,
    "priceCurrency": "USD",
    "basePrice": 76.99,
    "feesAndTaxes": 4.13,
    "passengers": 1,
    "availableSeats": 2,
    "isBookable": "Yes",
    "bookableUntil": "2026-11-25T10:55:00Z",
    "vehicleType": "Bus",
    "serviceClass": "Economy",
    "serviceName": null,
    "serviceNumber": null,
    "operators": ["Peter Pan"],
    "amenities": ["AC", "Average seat", "Power outlets", "Toilet", "Wifi"],
    "transferStations": ["Harford Union Station"],
    "scrapedAt": "2026-11-24T11:38:32.065Z",
    "error": null
  }
]
```

Station names are written as Busbud writes them. Download the dataset as JSON, CSV, Excel, XML or HTML from the **Output** tab.

### Use cases

- **Fare monitoring**: schedule daily runs on the same routes to see how bus and train prices move as the travel date gets closer.
- **Competitor analysis**: compare operators on a corridor by departures per day, price, duration, fees and amenities.
- **Travel and trip-planning apps**: feed real departure times, stations and booking links into a route planner or chatbot.
- **Market research**: measure how many departures, operators and vehicle types serve a corridor, and how that changes by day of week or season.
- **Mobility and transport studies**: build timetables for city pairs across countries with times normalized to UTC.

### How it works

1. Each route URL is matched to Busbud's place ids. Each typed city pair is looked up in Busbud's place index, the same one behind its search box, and the run log shows which city or station each name matched.
2. For every route and date, the actor starts a search on Busbud and reads the results as Busbud collects fares from its operators.
3. Each departure becomes one row, sorted by departure time, with city, region and country names added for both ends. Your filters (direct only, vehicle types) are applied.
4. Rows are saved to the dataset after each search, until **Max departures** is reached. If a search fails, a row with the `error` field says which route and date, and that row is not charged.

### How much does it cost to scrape Busbud?

Busbud Routes Scraper uses pay-per-event pricing. You pay for each departure saved to your dataset, plus a small fee per run. Compute and proxy costs are included in the event price and aren't billed separately.

| Event | Free plan | Bronze | Silver | Gold |
|-------|-----------|--------|--------|------|
| Run start (`apify-actor-start`) | $0.005 | $0.005 | $0.005 | $0.005 |
| Departure saved (`departure-scraped`) | $0.00299 (**$2.99 / 1,000**) | $0.00249 (**$2.49 / 1,000**) | $0.00199 (**$1.99 / 1,000**) | $0.00149 (**$1.49 / 1,000**) |

One `departure-scraped` event is charged for each departure saved. Departures dropped by your filters and rows that report a failed search are free. For example, one day of Boston to New York City (about 200 departures) costs about $0.60 on the Free plan, plus $0.005 for the run. Apify's free plan includes monthly platform credits you can use for this actor. Set a **maximum cost per run** in the run options and the actor stops when it's reached.

### Using the Busbud scraper API in Python and JavaScript

You can run Busbud Routes Scraper from your own code with the Apify API client. Get your API token from [Apify Console > Settings > Integrations](https://console.apify.com/settings/integrations).

**Python** ([apify-client](https://docs.apify.com/api/client/python)):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")

run = client.actor("parsebird/busbud-routes-scraper").call(run_input={
    "routeQueries": ["Mexico City > Oaxaca", "Johannesburg > Cape Town"],
    "departureDates": ["2026-12-24", "2026-12-26"],
    "currency": "USD",
    "maxItems": 500,
})

for dep in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(dep["departureTime"], dep["operator"], dep["price"], dep["priceCurrency"])
```

**JavaScript** ([apify-client](https://docs.apify.com/api/client/js)):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });

const run = await client.actor('parsebird/busbud-routes-scraper').call({
    startUrls: [{ url: 'https://www.busbud.com/en/bus-boston-new-york-city/r/drt2yz-dr5reg' }],
    daysAhead: 7,
    directOnly: true,
    vehicleTypes: ['bus'],
    maxItems: 2000,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((d) => console.log(d.departureTime, d.operator, d.price, d.availableSeats));
```

The [API tab](https://apify.com/parsebird/busbud-routes-scraper/api) has ready-made examples for cURL, Python, JavaScript and the OpenAPI spec.

### Integrations and export

- **Export formats**: JSON, CSV, Excel, XML or HTML from the Output tab or the [dataset API](https://docs.apify.com/api/v2/dataset-items-get).
- **Scheduling**: track fares every hour, day or week with [Apify Schedules](https://docs.apify.com/platform/schedules).
- **Integrations**: send departures to [Google Sheets, Slack, Zapier, Make, n8n, Airbyte and more](https://apify.com/integrations), or trigger your own [webhook](https://docs.apify.com/platform/integrations/webhooks) when a run finishes.
- **AI agents**: use the actor as a tool through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) in Claude, Cursor or other MCP clients.

### FAQ

**Do I need a Busbud API key or account?**
No. Busbud Routes Scraper is a Busbud API alternative for schedule and fare data: you call it through the Apify API and get structured JSON back, with no Busbud account, partner agreement or API key.

**Which URLs can I paste?**
Route pages (`https://www.busbud.com/en/bus-boston-new-york-city/r/drt2yz-dr5reg`), station and airport pages (`…/bus-boston-south-station-new-york-city/i/drt2zjf-dr5reg`), search results URLs (`…/bus-schedules-results/…?outbound_date=2026-12-20`) and deeplinks, in any Busbud language. Station and airport pages search from that station only.

**How do I pick the right city when names repeat?**
When a name fits several cities (London, England and London, Ontario), the actor uses the pair with the most Busbud traveller reviews (or, if none has reviews, the closest pair Busbud sells tickets for), so `London > Manchester` means England. To choose yourself, add the state, region or country after a comma: `Portland, Maine > Boston`. The run log shows the full name each place was matched to.

**Why do some rows share a `departureId`?**
`departureId` identifies the physical trip. When an operator sells several fare classes on the same train or bus (for example Business and First on an Acela), each class is its own row with the same `departureId`. Use `departureId` plus `serviceClass` to tell them apart.

**Why is the price different from the operator's website?**
`price` is what Busbud charges for your group at the time of the run, in the currency you chose, including Busbud's and the operator's fees. Busbud converts from the operator's currency itself, so amounts in other currencies follow its exchange rate. Fares change often, so schedule runs if you need fresh prices.

**Why are `availableSeats` or `serviceNumber` sometimes empty?**
Not every operator shares seat counts, and service names and numbers exist mainly for trains. Missing values are `null`.

**How far ahead can I search?**
Dates up to 365 days ahead are searched; later ones are skipped with a message in the log. How far ahead operators publish schedules varies: in our tests, Boston to New York City had 64 departures 342 days ahead and none 351 days ahead.

**Can I get round trips?**
Add the reverse route as another city pair, for example `Boston > New York` and `New York > Boston`, each with its own dates.

**Something doesn't work. What should I do?**
Open an issue in the [Issues tab](https://apify.com/parsebird/busbud-routes-scraper/issues) with your run link and we'll look into it.

### Is it legal to scrape Busbud?

Busbud Routes Scraper collects only public schedule and fare information that anyone can see on busbud.com without logging in. It doesn't access accounts, bookings or personal data. Check Busbud's terms of use for your use case, and consult a lawyer if you're unsure. Read more in Apify's guide: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

### Related ParseBird actors

| Actor | What it scrapes |
|-------|-----------------|
| [Ryanair Flight Scraper](https://apify.com/parsebird/ryanair-flight-scraper) | Ryanair flights and fares |
| [Booking.com Rates Scraper](https://apify.com/parsebird/booking-rates-scraper) | Booking.com hotel room rates |
| [Agoda Hotel Scraper](https://apify.com/parsebird/agoda-hotel-scraper) | Agoda hotels and prices |
| [Hotels.com Scraper](https://apify.com/parsebird/hotels-com-scraper) | Hotels.com hotels and prices |
| [Airbnb Scraper & API](https://apify.com/parsebird/airbnb-scraper) | Airbnb listings, prices and hosts |

# Changelog

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

# Actor input Schema

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

Add route pages copied from busbud.com, for example https://www.busbud.com/en/bus-boston-new-york-city/r/drt2yz-dr5reg. Station and airport pages (…/i/…), search results URLs (…/bus-schedules-results/…) and deeplinks work too. A search results URL with an outbound_date is searched on that date unless you set travel dates below.

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

Type routes as "Origin > Destination", for example "Mexico City > Oaxaca" or "Johannesburg > Cape Town". Each name is looked up in Busbud's own place index, the same one behind its search box. When a name fits several cities, the route Busbud has the most traveller reviews for is used; add a region or country after a comma to choose, for example "Portland, Maine > Boston". Station and airport names work too.

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

Stop after saving this many departures across all routes and dates. You pay only for departures saved.

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

Search these exact departure dates, in YYYY-MM-DD, for example 2026-12-24. Leave empty to use Days ahead instead. Past dates and dates more than 365 days ahead are skipped.

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

Used only when no travel dates are set: search each of the next N days (up to 365), starting tomorrow (UTC). Each day is one search per route.

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

Currency Busbud quotes fares in. Busbud converts from the operator's own currency, so amounts follow its exchange rate.

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

Number of adult seats priced in each search. The price is the total for the whole group, so 2 adults is about double.

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

Keep only departures with no change. Leave off to also get connecting trips with their transfer stations.

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

Keep only departures where every leg uses one of these vehicle types. Leave empty to keep all.

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

Apify Proxy settings for reaching Busbud. The default works for most runs.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.busbud.com/en/bus-boston-new-york-city/r/drt2yz-dr5reg"
    }
  ],
  "routeQueries": [
    "Mexico City > Oaxaca",
    "Johannesburg > Cape Town"
  ],
  "maxItems": 10,
  "departureDates": [
    "2026-12-24"
  ],
  "daysAhead": 1,
  "currency": "USD",
  "adults": 1,
  "directOnly": false,
  "vehicleTypes": [],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `dataset` (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-boston-new-york-city/r/drt2yz-dr5reg"
        }
    ],
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("parsebird/busbud-routes-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-boston-new-york-city/r/drt2yz-dr5reg" }],
    "maxItems": 10,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("parsebird/busbud-routes-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-boston-new-york-city/r/drt2yz-dr5reg"
    }
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call parsebird/busbud-routes-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parsebird/busbud-routes-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/4siIHtVOQbN5G6iBa/builds/gGXd5H67Ni6J3mqLQ/openapi.json
