Free for travel blogs
Partner API β Italy Transport Prices
Embed live train, bus and ferry prices on your Italy travel blog. Free access in exchange for a do-follow link to italyfare.com.
Get Free API Key βWhat you get
π
Live prices
Train, bus and ferry prices updated daily from FlixBus, Trenitalia, Italo and more.
β‘
Simple REST API
One GET request returns all options for a route, sorted by price.
π―
Embed widget
Drop two lines of HTML on your page β no backend needed.
API Reference
GET /api/v1/partner/prices
fetch("https://italyfare.com/api/v1/partner/prices?from=rome&to=florence", {
headers: { "X-API-Key": "YOUR_KEY" }
})
.then(r => r.json())
.then(data => {
const cheapest = data.results[0];
console.log(`${cheapest.transport_type} from β¬${cheapest.cheapest_eur}`);
});Parameters
| Parameter | Required | Description |
|---|---|---|
| from | Yes | Origin city slug, e.g. rome, milan, florence |
| to | Yes | Destination slug, e.g. venice, naples, bologna |
| transport_type | No | Filter by: train | bus | ferry |
| X-API-Key (header) | Yes | Your partner API key |
Response example
{
"route": {
"from": "rome",
"to": "florence",
"from_name": "Rome",
"to_name": "Florence",
"url": "https://italyfare.com/rome-to-florence"
},
"results": [
{
"transport_type": "bus",
"cheapest_eur": 4.99,
"options": [
{
"supplier": "flixbus",
"price_eur": 4.99,
"departure_time": "2026-06-13T21:00:00+02:00",
"duration_minutes": 205,
"book_url": "https://italyfare.com/rome-to-florence"
}
]
},
{
"transport_type": "train",
"cheapest_eur": 9.9,
"options": [ ... ]
}
],
"disclaimer": "Prices are approximate and may change.",
"attribution": "Data provided by italyfare.com"
}Embed Widget
Drop this snippet anywhere in your HTML β the widget renders a compact price table automatically.
HTML
<script src="https://cdn.italyfare.com/widget.js"></script> <div data-italyfare-widget data-from="rome" data-to="florence" data-apikey="YOUR_KEY" ></div>
Widget source and examples on GitHub.
Limits & Attribution
- β 1,000 free requests/day per key
- β All routes covered (100+ Italy city pairs)
- β Data updated daily
- β οΈ Attribution required: include βPrices via italyfare.comβ with a do-follow link near any widget or price table.
- β οΈ Prices are approximate β always link to italyfare.com for real-time booking.
Get Your Free API Key
Share your blog URL and we'll send you an API key within 24 hours.