Discover/rfi.it API
live

rfi.it APIrfi.it

Access live Italian train departures/arrivals, station search with region filters, circulation alerts, and station service details via the RFI.it API.

Endpoints
5
Updated
3mo ago
Try it

No input parameters required.

api.parse.bot/scraper/776b2149-49fb-4540-acd6-822e63ec0345/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/776b2149-49fb-4540-acd6-822e63ec0345/get_station_mappings' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 5 totalclick to expand

Retrieve the complete station name to placeId mapping used by the live monitor. Returns all Italian railway station names mapped to their numeric place IDs.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "total": "integer count of stations in mappings",
    "mappings": "object mapping uppercase station names to string place IDs"
  },
  "sample": {
    "data": {
      "total": 3,
      "mappings": {
        "ROMA TERMINI": "2416",
        "MILANO CENTRALE": "1728",
        "FIRENZE SANTA MARIA NOVELLA": "1325"
      }
    },
    "status": "success"
  }
}

About the rfi.it API

The RFI.it API covers Italy's national railway network across 5 endpoints, returning live departure and arrival boards, station metadata, and real-time circulation alerts. The get_live_monitor endpoint streams current train status — including delay, platform, and carrier — for any Italian station identified by name or numeric place ID. Companion endpoints handle station search with geographic filters, detailed service listings, and the full station-to-placeId mapping table.

Live Train Boards

The get_live_monitor endpoint returns the real-time departures or arrivals board for a given station. Pass either a place_id (numeric string from get_station_mappings) or a full uppercase station_name such as ROMA TERMINI. The response includes an array of train objects, each carrying carrier, category, train_number, destination (or origin for arrivals), scheduled_time, delay, and platform. The type field in the response confirms whether you received a departures or arrivals board.

Station Search and Details

search_stations queries the RFI GIS service and supports filtering by region (e.g. Lombardia), province, municipality, and a partial-match query string. Each result includes name, region, province, municipality, type, passenger_service, and manager. The limit parameter caps the result count. For richer per-station data, get_station_details accepts a station_slug (e.g. roma-termini) and returns arrays of services (such as Bar, caffetteria, ristorazione or Bici) and accessibility features.

Station Mappings and Alerts

get_station_mappings returns the complete lookup table that maps uppercase station names to their numeric place_id strings — useful for building autocomplete or validating station names before calling get_live_monitor. The get_infomobilita_alerts endpoint pulls the current Infomobilità ticker from the RFI homepage and returns an alerts array of plain-text strings describing active line disruptions, speed restrictions, and service updates across the network.

Common use cases
  • Build a departure board widget for Italian stations using get_live_monitor with real-time delay and platform data.
  • Filter stations by region or province via search_stations to populate a geographic station picker.
  • Display current service disruptions in a travel app by polling get_infomobilita_alerts for active circulation messages.
  • Map station names to place IDs at startup using get_station_mappings to avoid manual lookup tables.
  • Show accessible station options to mobility-impaired travellers using the accessibility array from get_station_details.
  • Aggregate delay statistics across multiple stations by periodically calling get_live_monitor and recording the delay field per train.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does RFI have an official public developer API?+
RFI does not publish a documented public developer API for live train data or station information. The data accessed through this API comes from rfi.it directly.
What does `get_live_monitor` return, and how do I identify the station?+
It returns a trains array where each object contains carrier, category, train_number, destination (or origin for arrivals), scheduled_time, delay, and platform, plus a top-level station name and type field. You identify the station with either a place_id string (from get_station_mappings) or a full uppercase station_name such as MILANO CENTRALE.
Does the API cover historical train schedules or only the current live board?+
get_live_monitor reflects the current real-time board only; no historical departure or arrival records are returned. The API covers live status, station metadata, and current alerts. You can fork it on Parse and revise it to add an endpoint targeting historical timetable data if that surface becomes available.
Can I filter `get_infomobilita_alerts` by specific line or region?+
The endpoint returns all current alerts as a flat array of text strings with no built-in filter parameters. Filtering by line or region would need to be done client-side on the alerts array. You can fork the API on Parse and revise it to add server-side filtering logic.
Are international trains (e.g. routes to France or Switzerland) included in the live monitor?+
The live monitor covers stations in the Italian national railway network as managed by RFI. International segments operated outside Italy are not exposed as separate station entries. Trains with cross-border routes may appear on a departure board at their Italian origin station. You can fork the API on Parse and revise it to integrate timetable data from partner networks for international coverage.
Page content last updated . Spec covers 5 endpoints from rfi.it.
Related APIs in TravelSee all →
opentable.ca API
Search and discover restaurants on OpenTable, view detailed information like menus and reviews, and check real-time dining availability across metro areas. Find top-rated restaurants in your location and instantly see which tables are open for your preferred date and time.
fandango.com API
Search for movies and retrieve nearby theater listings with showtimes by ZIP code and date, plus showtimes for a specific movie at nearby theaters.
data.lime.bike API
Access real-time availability data for Lime bikes and scooters, including station locations, vehicle status, system alerts, and geofencing zones across multiple cities. Monitor micromobility inventory and service information to find nearby vehicles or plan your trips effectively.
turo.com API
Search for peer-to-peer car rentals across Turo by location and dates to browse available vehicles with pricing, specifications, and real-time availability. Get detailed information on specific cars to compare features and make rental decisions.
reservation.pc.gc.ca API
Access real-time campground availability and reservation data from the Parks Canada booking system. Search locations, retrieve available campsites and cabins, filter by equipment type, and review operating date schedules across the national park network. Includes detailed resource metadata and map-based availability overviews.
bahn.com API
Search German train schedules and stations, find connections between destinations, and compare ticket prices across Deutsche Bahn routes. Get real-time station information and transit association details to plan your train journey efficiently.
united.com API
Search United Airlines flights, check real-time flight status, and view detailed seat maps to plan your perfect trip. Compare fare options and use airport autocomplete to quickly find your departure and arrival cities.
thetrainline.com API
Search UK train stations and find the cheapest fares across date ranges, then generate direct booking links to complete your purchase on Trainline.com. Get real-time journey information to compare prices and book your tickets in seconds.