ItalyFare
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

ParameterRequiredDescription
fromYesOrigin city slug, e.g. rome, milan, florence
toYesDestination slug, e.g. venice, naples, bologna
transport_typeNoFilter by: train | bus | ferry
X-API-Key (header)YesYour 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.

No payment required. We reply within 24 hours.