Rome2Rio API Scraper avatar

Rome2Rio API Scraper

Pricing

from $1.00 / 1,000 route option rows

Go to Apify Store
Rome2Rio API Scraper

Rome2Rio API Scraper

Search Rome2Rio for transport routes between any two places worldwide. Get detailed route options including duration, price, transport modes, operators, segments, and geo coordinates.

Pricing

from $1.00 / 1,000 route option rows

Rating

0.0

(0)

Developer

R.L.

R.L.

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

1

Monthly active users

a day ago

Last modified

Categories

Share

Rome2Rio Scraper 🚆 — Scrape Rome2Rio.com Trains, Buses, Flights, Ferries & Fares

Rome2Rio Scraper — Find every way to get from A to B worldwide — train, bus, flight, ferry, rideshare, drive and walk — via Rome2Rio's private mobile API. Each route option carries its segments, operators, duration, distance and indicative price, plus optional timetabled departures and bookable fares. It reads Rome2Rio's own API directly, so it's fast, reliable and complete — no flaky HTML parsing, no headless browser. Export to JSON, CSV, Excel, or an API.

Get from anywhere to anywhere — compare every train, bus, flight, ferry and drive option between any two places on earth, with real timetables and bookable fares.


✨ Why use this Rome2Rio Scraper?

  • 🟢 No code required — set your input, click Start, download your data.
  • Fast & accurate — reads Rome2Rio's own private API and returns structured JSON, not scraped HTML.
  • 🧾 Rich, structured data — every field below, clean and ready to use.
  • 🔁 Batch trips — queue many origin→destination pairs in one run, up to your maxItems cap.
  • 💸 Transparent pay-per-result pricing — pay only for the rows you get.
  • 📤 Export anywhere — JSON, CSV, Excel, XML, or pull it live via the Apify API.

🎯 What can you do with Rome2Rio data?

  • Market & competitor research — analyse Rome2Rio travel routes at scale.
  • Price & availability monitoring — track changes over time.
  • Data science & trend analysis — build clean datasets.
  • Lead generation & enrichment — feed Rome2Rio data into your own tools.

📥 What data does the Rome2Rio Scraper extract?

Each row includes: recordType, origin, destination, routeName, modes, durationMinutes, distanceKm, priceLow, priceHigh, priceCurrency, originStation, destinationStation, segmentCount, segments …and more. See the full Data table below.


🚀 How to scrape Rome2Rio.com (3 steps)

  1. Set your input — provide trips or origin (see the table below; defaults work out of the box).
  2. Pick options — filters, a proxyConfiguration, and a maxItems cap.
  3. Run & export — click Start, then download the dataset as JSON/CSV/Excel or fetch it via the API.

🌐 Proxies — what's actually needed

Measured against the live API (100 requests direct + 105 through Apify Proxy):

Successp50 latencyThroughput @6 concurrent
Datacenter (default)20/20 (100%)0.28 s~890 searches/min
Residential94% (75/80 over 4 back-to-back waves)1.62 s~112 searches/min

Rome2Rio's mobile API applies no IP-reputation blocking — not a single 403/429 came back from datacenter IPs, and a full 8-trip platform run finished in 54 s with zero retries. So the default datacenter proxy is the right choice; it is ~6x faster and doesn't touch your residential GB quota.

Choose RESIDENTIAL only when you want a specific country's pricing/availability. Budget ~133 KB of residential transfer per trip (with timetables on) — roughly 78,000 trips per 10 GB. The residential failures above were transient proxy-side errors (ProxyError/SSLError), not target blocks, and the actor's transport retries them automatically. Avoid pinning one sticky session: a reused residential exit IP died after ~7 requests, while per-request rotation (what this actor does by default) held at 94–100% indefinitely.


⚙️ Input

FieldTypeDefaultDescription
tripsarray of string['London -> Paris']One trip per line as "Origin -> Destination", e.g. "London -> Paris". Place names, addresses, airports or "lat,lng" coordinates all work. Takes priority over the single Origin/Destination fields below.
originstringLondonSingle-trip origin — a place name, address, airport or "lat,lng". Ignored when Trips is set.
destinationstringParisSingle-trip destination — a place name, address, airport or "lat,lng". Ignored when Trips is set.
includeSchedulesbooleanfalseAdd real departure times for each schedulable route (train/bus/ferry). One extra API call per route.
includeBookablebooleanfalseAdd bookable departures with fares and partner booking deep links (Omio and friends). One extra API call per route.
departureDatestringDate for the timetables, as YYYY-MM-DD (optionally YYYY-MM-DDTHH:MM). Defaults to now. Only used when departures or fares are enabled.
currencystringUSDISO currency code for indicative prices and fares, e.g. USD, EUR, GBP.
languagestringenISO language code for place and route names, e.g. en, de, fr.
maxItemsinteger100Maximum route rows to return across all trips. 0 = no limit.
includeHotelsbooleanfalseAfter the routes for a trip, emit hotel rows for its destination — name, stars, review score and nightly rate from Rome2Rio's hotel provider (Booking.com). Billed as a separate hotel-row event.
checkInstringCheck-in date as YYYY-MM-DD. Defaults to 30 days from the run. Only used when hotels are enabled.
checkOutstringCheck-out date as YYYY-MM-DD. Defaults to two nights after check-in. Only used when hotels are enabled.
hotelAdultsinteger2Number of adults for the hotel availability search.
maxHotelsPerTripinteger20How many hotel rows to emit for each destination.
proxyConfigurationobjectApify ProxyRoute requests through a proxy (Apify Proxy by default).

Example input

{
"trips": [
"London -> Paris"
],
"origin": "London",
"destination": "Paris",
"includeSchedules": false,
"includeBookable": false,
"currency": "USD",
"language": "en",
"maxItems": 100,
"includeHotels": false,
"hotelAdults": 2,
"maxHotelsPerTrip": 20,
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": [
"RESIDENTIAL"
]
}
}

📤 Output

Each result is a JSON object like this:

{
"recordType": "route",
"origin": "London",
"destination": "Paris",
"routeName": "Train",
"modes": [
"train"
],
"durationMinutes": 148,
"distanceKm": 450.4,
"priceLow": 130.0,
"priceHigh": 230.0,
"priceCurrency": "EUR",
"originStation": "London St Pancras Intl",
"destinationStation": "Paris Nord",
"segmentCount": 1,
"segments": [
{
"index": 1,
"modes": [
"train"
],
"from": "London St Pancras Intl",
"to": "Paris Nord",
"durationMinutes": 148,
"distanceKm": 450.4,
"operators": [
"Eurostar"
],
"vehicles": [
"train"
]
}
],
"operators": [
"Eurostar"
],
"isConnectable": false,
"canonicalName": "Train",
"departures": [
{
"departure": "2026-08-21T09:31",
"arrival": "2026-08-21T12:55",
"durationMinutes": 144,
"transitKind": "train",
"from": "LONDON ST PANCRAS INTL",
"to": "PARIS NORD",
"operators": [
"Eurostar"
],
"changes": 0,
"itineraryId": "B0D0DFFC"
},
{
"departure": "2026-08-21T10:31",
"arrival": "2026-08-21T13:53",
"durationMinutes": 142,
"transitKind": "train",
"from": "LONDON ST PANCRAS INTL",
"to": "PARIS NORD",
"operators": [
"Eurostar"
],
"changes": 0,
"itineraryId": "C0C4897D"
},
"…+18 more"
],
"bookableFares": [],
"bookingLinks": [
{
"type": "tickets",
"providers": [
"Omio"
],
"urlTemplate": "https://www.rome2rio.com/redirects/omio/?oDateTime={oDateTime}&iDateTime={iDateTime}&adults={adults}&seniors={seniors}&youths={youths}&ages={ages}&checkoutEx…",
"templatedParameters": [
"adults",
"ages",
"…+5 more"
],
"originCanonical": "London St Pancras Intl",
"destinationCanonical": "Paris Nord"
}
],
"searchedAt": "2026-08-21T07:59:26Z"
}

🧾 Data table

FieldTypeDescription
recordTypetextType
origintextOrigin
destinationtextDestination
routeNametextRoute
modesarrayModes
durationMinutesnumberDuration (min)
distanceKmnumberDistance (km)
priceLownumberPrice low
priceHighnumberPrice high
priceCurrencytextCurrency
originStationtextDeparts from
destinationStationtextArrives at
segmentCountnumberSegments
segmentsarraySegment detail
operatorsarrayOperators
isConnectabletextConnectable
canonicalNametextCanonical name
departuresarrayTimetabled departures
bookableFaresarrayBookable fares
bookingLinksarrayBooking links
searchedAttextSearched at
hotelNametextHotel
hotelIdtextHotel ID
hotelRatingnumberStars
hotelReviewScorenumberReview score
hotelReviewCountnumberReviews
totalRatenumberTotal stay rate
pricePerNightnumberPrice / night
nightsnumberNights
hotelProvidertextProvider
hotelCitytextCity
latitudenumberLatitude
longitudenumberLongitude
checkIntextCheck-in
checkOuttextCheck-out
hotelDistricttextDistrict
freeCancellationtextFree cancellation
hotelImagelinkImage

💰 Pricing — pay per result

This actor uses pay-per-event pricing: you pay only for the rows it delivers.

You scrapePrice
Route option row$1.00 per 1,000 rows
Hotel row$1.00 per 1,000 rows

🔌 Use the Rome2Rio Scraper via API

Run it programmatically with the Apify API:

curl -X POST "https://api.apify.com/v2/acts/rome2rio-api-scraper/runs?token=YOUR_TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"trips": [
"London -> Paris"
],
"origin": "London",
"destination": "Paris",
"includeSchedules": false,
"includeBookable": false,
"currency": "USD",
"language": "en",
"maxItems": 100,
"includeHotels": false,
"hotelAdults": 2,
"maxHotelsPerTrip": 20,
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": [
"RESIDENTIAL"
]
}
}'

Or with the Apify CLI: apify call rome2rio-api-scraper -i input.json -o.


❓ FAQ

Do I need an account or API key for Rome2Rio?

No. The actor talks to Rome2Rio's public/mobile API for you — you only need an Apify account.

Do I need a proxy?

A proxy is recommended for reliable runs; set proxyConfiguration (Residential is safest for geo-restricted or bot-protected sites).

What export formats are supported?

JSON, CSV, Excel, XML, JSONL, RSS, or live via the Apify API and dataset endpoints.

Is scraping this legal?

You are responsible for how you use the data. Scrape only public travel route data and comply with Rome2Rio.com's Terms and applicable law (e.g. GDPR/CCPA for personal data).


🛠️ How it works

The actor impersonates Rome2Rio's official app/site and calls its private API the same way the app does, then normalises each response into the flat record above. No browser, no HTML scraping — just clean, structured data.


📌 Good to know

  • Scrape only public travel route data and respect Rome2Rio.com's Terms of Service and robots policy.
  • For personal data, comply with GDPR/CCPA and applicable law — you are the data controller.
  • Fields can be null when Rome2Rio doesn't expose them for a given record.

⭐ Found this useful?

Give the Rome2Rio Scraper a star on Apify and check out my other apify-*-api-scraper actors.