🇮🇹 Other Italy

Trenitalia Scraper

studio-amba/trenitalia-scraper

Scrape Trenitalia train schedules, prices, and availability. Search Italian rail routes to get Frecciarossa, Frecciargento, Frecciabianca, Intercity, and Regionale train times, fares by class, and duration. Covers all major Italian stations. No login or cookies required.

What data can you extract?

  • Pricing
  • Stock availability
  • Schedules
  • Data export

Output fields

Each result is a JSON object with these fields.

  • origin
  • destination
  • departureTime
  • arrivalTime
  • duration
  • trainType
  • trainNumber
  • price
  • currency
  • serviceClass
  • offerName
  • available
  • carrier
  • changes
  • url
  • scrapedAt

How to use

  1. Go to the actor page on Apify
  2. Click "Try for free" to open the actor in Apify Console
  3. Configure your input (search terms, URLs, or categories)
  4. Run the actor and download your data as JSON, CSV, or Excel

Input example

Paste this into the actor input on Apify Console, or send it as the body of an API run call.

{
  "origin": "Roma Termini",
  "destination": "Milano Centrale",
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "IT"
  }
}

Use via API

curl "https://api.apify.com/v2/acts/studio-amba~trenitalia-scraper/runs" \
  -X POST \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"origin":"Roma Termini","destination":"Milano Centrale","maxResults":10,"proxyConfiguration":{"useApifyProxy":true,"apifyProxyGroups":["RESIDENTIAL"],"apifyProxyCountry":"IT"}}'

Need this data delivered on a schedule?

We run Trenitalia extraction as a managed service: scheduled runs, deduplication, delta detection, and delivery straight to your inbox, Google Sheets, or API. No setup on your side, maintenance included. We can also build a custom version of this scraper for your exact fields and filters.