Trenitalia API
trenitalia.com
Trenitalia - train route and station search with pricing, availability, and schedules.
- Actions
- 2
- Category
- Travel
- Login
- Not required
- Output
- JSON
Call the Trenitalia API
Submit a task, then poll the job until it settles. This example runs act_trenitalia_station_search.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "act_trenitalia_station_search",
"params": {
"station_name": "Roma Termini"
}
}'2 actions on trenitalia.com
Read
Station Search
act_trenitalia_station_searchread1 credit / callReturns a station name resolved to its location ID, timezone, and metadata.
- station_name
- string · required
- limit
- integer
Write
Write actions change state on trenitalia.com and run as the account you connect.
Train Route Search
act_trenitalia_train_route_solutionswrite2 credits / callReturns train routes between two stations with times, duration, pricing, and seat availability.
- departure_location_id
- integer · required
- arrival_location_id
- integer · required
- departure_time
- string · required
- adults
- integer
- children
- integer
- sort_order
- string
- offset
- integer
- limit
- integer
Trenitalia API questions
- Is there an API for Trenitalia?
- Trenitalia does not offer a public data API for this, but Anakin Wire provides 2 maintained endpoints for trenitalia.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape Trenitalia data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when trenitalia.com changes its markup, Anakin updates the action.
- Do I need a Trenitalia account?
- No. Every Trenitalia action listed here runs anonymously — no account and no credentials required.
- What does the Trenitalia API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Travel APIs
ADS-B Exchange
ADS-B Exchange - live flight tracking, aircraft positions, route history, and details.
Aeromexico
Aeromexico - flight and fare search, schedules, flight status, and destinations.
Afar
Travel destination guides, articles, and curated itineraries.
Agoda
Agoda - travel platform for hotels, vacation rentals, flights, and tours.
Airbnb
Airbnb - stay search by destination and dates with full property details.
Airbnb Portugal
Airbnb Portugal - stay search, listings, pricing, availability, and reviews.