# Rome2Rio Scraper (`parseforge/rome2rio-scraper`) Actor

Scrapes multi-modal travel routes from Rome2Rio for a given origin and destination. Returns each route option with transport mode, duration, price range, and operator name as a flat row.

- **URL**: https://apify.com/parseforge/rome2rio-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Travel, Real estate, E-commerce
- **Features:** Limited permissions
- **Stats:** 45 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $19.00 / 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/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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner-v4.webp)](https://apify.com/parseforge?fpr=vmoqkp)

### Rome2Rio Scraper

**Scrape multi-modal travel routes from Rome2Rio for any city pair, up to a million per run.** Each route returns flight, train, bus, ferry, and driving options with durations, price ranges, and operator details. Export to CSV, JSON, Excel, or XML.

Planning a trip means comparing flights, trains, buses, and ferries across dozens of sites. Rome2Rio aggregates all of them, but manual lookups do not scale. This Actor reads the public route results for any origin-destination pair you give it and returns every option in one structured dataset.

| Who uses it | What they scrape Rome2Rio for |
|---|---|
| Travel aggregators | Building a price-comparison database of intercity routes across transport modes. |
| Market researchers | Mapping which operators serve a corridor and how fares differ by season. |
| Data analysts | Feeding route graphs into network analysis or accessibility studies. |
| OTA developers | Enriching a booking flow with alternative transport options between two points. |

### What it does

This Actor collects multi-modal travel routes from Rome2Rio for a given origin and destination, and returns each route option as a flat row.

- 🚆 **Multi-modal routes:** flights, trains, buses, ferries, and driving options in one response.
- 💰 **Price ranges:** the low-to-high fare band Rome2Rio displays for each route.
- ⏱️ **Durations:** total travel time per option so you can rank by speed.
- 🏷️ **Operator names:** which company runs each leg of the journey.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with Rome2Rio data

**🗺️ Build a route graph.**

A transport researcher scrapes every route between 200 European cities to model multi-modal connectivity.

**💸 Monitor fare bands.**

A travel startup collects weekly price ranges for the London-Paris corridor to spot seasonal trends.

**🚌 Populate an alternative-transport widget.**

An OTA runs the Actor on every flight search to show train and bus alternatives alongside air results.

**📊 Compare operator coverage.**

A market analyst scrapes routes across Southeast Asia to see which bus and ferry companies dominate each leg.

### Why choose this scraper

|  | What you get |
|---|---|
| **No API key** | Reads the public Rome2Rio pages directly, no registration needed. |
| **Fixed schema** | Every route comes out with the same columns, ready for a database. |
| **Bulk runs** | Loop over hundreds of city pairs in one Actor call or task. |

### How it compares

This Actor and the Rome2Rio Multi-Modal Route Scraper both read route results from Rome2Rio; the table below compares the capabilities each listing describes.

| Feature | ParseForge | Rome2Rio Multi-Modal Route Scraper |
|---|---|---|
| Multi-modal routes (flight, train, bus, ferry, car, rideshare) | Yes | Yes |
| Price ranges per route | Yes | Yes |
| Operator names | Yes | Not listed |
| Configurable maximum routes per run | Yes | Not listed |
| Up to 1,000,000 routes per run | Yes | Not listed |

### Configure the run

Drive the Actor with an origin and a destination, and set a maximum number of routes to cap the run. The Input tab lists every parameter.

A first run with the defaults:

```json
{
  "origin": "London",
  "destination": "Paris",
  "maxItems": 10
}
```

A larger pull:

```json
{
  "origin": "London",
  "destination": "Paris",
  "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.021 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $2.10 |
| 1,000 results | $21.00 |
| 10,000 results | $210.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [Rome2Rio Scraper](https://apify.com/parseforge/rome2rio-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to Rome2Rio through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=parseforge/rome2rio-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check that both origin and destination are spelled correctly and are recognised places. Try a well-known city pair like 'London' to 'Paris' first. If the location is ambiguous, add a country name.

**The run times out before collecting all routes.**

Lower the 'Maximum routes' value or increase the run timeout in the Actor's settings. Very large route counts may need a longer timeout.

**Some route options are missing.**

Rome2Rio sometimes loads additional results dynamically. The Actor captures what is present on page load. If a specific mode is missing, it may not be available for that city pair on Rome2Rio.

**The price column is empty for some routes.**

Rome2Rio does not always display a price range. When the site shows 'Unknown' or omits the fare, the Actor leaves that field blank.

**I get an error about invalid input.**

Both origin and destination are required fields. Make sure you filled them in and that they contain plain text, not special characters that might break the URL.

### FAQ

| Question | Answer |
|---|---|
| What transport modes does this scraper return? | It returns every mode Rome2Rio shows for the route: flights, trains, buses, ferries, driving, and rideshare options when available. |
| Can I scrape multiple origin-destination pairs in one run? | One run handles one pair. To scrape many pairs, use the Actor in a loop from the Apify API or pass an array of inputs through a task. |
| Does it include prices? | Yes, it collects the price range Rome2Rio displays for each route option. These are indicative ranges, not live booking prices. |
| What format does the output come in? | You can export the dataset as CSV, JSON, Excel, or XML from the Apify console or via the API. |
| Do I need a Rome2Rio account or API key? | No. The Actor reads the public web pages, so no login or API key is required. |
| Can I filter by transport mode? | The Actor collects all modes Rome2Rio returns. Filter by mode after the run in your dataset using the mode column. |
| How many routes can I scrape? | You set the maximum with the 'Maximum routes' input field, up to 1,000,000 per run. |
| Does it return direct routes only or connections too? | It returns whatever Rome2Rio displays for the query, which includes direct routes and connections requiring a transfer. |
| Can I use city names or do I need airport codes? | City names work. You can also use specific addresses, train stations, or airport codes. Rome2Rio resolves them. |
| Is the scraper legal? | The Actor reads publicly available route data. You are responsible for complying with Rome2Rio's terms of service in your use case. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by Rome2Rio Pty Ltd. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `origin` (type: `string`):

Starting city or location (e.g. London, New York, Tokyo)

## `destination` (type: `string`):

Destination city or location (e.g. Paris, Los Angeles, Osaka)

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

How many routes to collect per run.

## Actor input object example

```json
{
  "origin": "London",
  "destination": "Paris",
  "maxItems": 10
}
```

# 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 = {
    "origin": "London",
    "destination": "Paris",
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/rome2rio-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 = {
    "origin": "London",
    "destination": "Paris",
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/rome2rio-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 '{
  "origin": "London",
  "destination": "Paris",
  "maxItems": 10
}' |
apify call parseforge/rome2rio-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/rome2rio-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/eOGjmkKakgk5Ws9mi/builds/yQlbiYfqyYCt5VAaO/openapi.json
