Skip to main content
AI Studio  add-on for Spider.
Travel
rome2rio.com Verified

Rome2Rio Scraper

Extract multi-modal route comparisons, transit options, durations, and fare estimates from Rome2Rio trip planner. Built on spider-browser .

Get started Docs
target
rome2rio.com
success rate
99.9%
latency
~4ms
POST /fetch/rome2rio.com/
return_format
curl -X POST https://api.spider.cloud/fetch/rome2rio.com/ \
  -H "Authorization: Bearer $SPIDER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"return_format": "json"}'
200 OK · cache hit · response shape
{
  "url": "https://rome2rio.com/",
  "status": 200,
  "data": {
    "route": "string",
    "transport_mode": "string",
    "duration": "string",
    "price_estimate": "string",
    "transfers": "string",
    "provider": "string",
    "distance": "string"
  }
}
Quick start

Extract data in minutes.

Structured JSON from rome2rio.com with a single POST. AI-resolved selectors, cached on the first call.

rome2rio-scraper.ts
import { SpiderBrowser } from "spider-browser";

const spider = new SpiderBrowser({
  apiKey: process.env.SPIDER_API_KEY!,
  stealth: 2,
});

await spider.connect();
const page = spider.page!;
await page.goto("https://www.rome2rio.com/s/London/Paris");
await page.content(10000);

const data = await page.evaluate(`(() => {
  const routes = [];
  document.querySelectorAll(".SearchResultRoute").forEach(el => {
    const mode = el.querySelector(".TransportModeName")?.textContent?.trim();
    const duration = el.querySelector(".RouteDuration")?.textContent?.trim();
    const price = el.querySelector(".RoutePrice")?.textContent?.trim();
    const provider = el.querySelector(".ProviderName")?.textContent?.trim();
    if (mode) routes.push({ mode, duration, price, provider });
  });
  return JSON.stringify({ total: routes.length, routes: routes.slice(0, 10) });
})()`);

console.log(JSON.parse(data));
await spider.close();
ready to run · spider-browser · TypeScript
Extraction

Fields you can pull.

RouteTransport modeDurationPrice estimateTransfersProviderDistance
Pricing

Dynamic rate capture

Session-aware scraping captures pricing on rome2rio.com that changes per visitor.

Rendering

Complex SPA handling

Full browser rendering for React/Next.js booking interfaces and search results.

Scale

Destination coverage

Scrape listings across thousands of destinations and date ranges concurrently.

Related

More Travel scrapers.

Start

Start scraping rome2rio.com.

Grab an API key and call the endpoint above. The first request resolves the config; every request after hits cache.