Free flight fare widget for travel blogs
Show your readers the cheapest fares we've recently seen for a route or a city, in their language and currency. Paste two lines of HTML; the widget stays up to date by itself. It's free, needs no account, sets no cookies and loads a ~1 KB (gzipped) script plus one small cached page.
Build your widget
Use the city name as it appears in FareScout URLs (e.g. new-york, los-angeles) or a 3-letter IATA city code (NYC). Leave “To” empty to show the cheapest destinations from the city.
Embed code (recommended)
<div class="farescout-widget" data-from="istanbul" data-to="london">
<a href="https://getfarescout.com/flights/istanbul-to-london">Fares by FareScout</a>
</div>
<script async src="https://getfarescout.com/widget.js"></script>Plain iframe (no JavaScript)
<iframe src="https://getfarescout.com/embed/fares?from=istanbul&to=london" title="Flights from Istanbul to London" loading="lazy" sandbox="allow-scripts allow-same-origin allow-popups allow-popups-to-escape-sandbox" style="width:100%;max-width:560px;height:370px;border:0"></iframe>
<p><a href="https://getfarescout.com/flights/istanbul-to-london">Fares by FareScout</a></p>Live preview
What it shows
Route widget (data-from + data-to): the cheapest recent round-trip fare, the typical fare (median of the cheapest fare per departure date) and the cheapest departure dates, each with a booking button.
City widget (only data-from): the cheapest destinations from that city, linking to our route pages.
All prices are indicative: they come from the fare cache of our flight data partner (Aviasales, via Travelpayouts), built from recent searches, and are refreshed continuously. They are not live availability; the final price is confirmed on the booking site. We never show made-up prices: if we have no recent fares, the widget says so.
Options
| Attribute | Default | Meaning |
|---|---|---|
| data-from | required | Origin city: FareScout URL name (istanbul, new-york) or IATA city code (IST, NYC). |
| data-to | optional | Destination city. Leave out to list the cheapest destinations from the origin. |
| data-currency | USD | Display currency (ISO code, e.g. EUR, GBP, TRY). When we don't have enough fares in it, the widget shows USD and says so. |
| data-locale | en | Interface language: en, ar, cs, de, el, es, fr, he, hi, hu, id, it, ja, ko, ms, nl, pl, pt, ro, ru, sv, th, tr, uk, vi, zh-tw, zh. |
| data-theme | light | light or dark. |
| data-limit | 4 | Number of fare rows (1–6). |
| data-max-width | 560px | Maximum width of the widget (it always fits narrower containers). |
The plain iframe takes the same options as query parameters on https://getfarescout.com/embed/fares (from, to, currency, locale, theme, limit). Add format=json to get the same data as JSON (CORS-enabled) if you'd rather render it yourself; please keep the credit link and the “indicative” label.
Good to know
- Credit link. The snippet includes a visible “Fares by FareScout” link to the matching FareScout page. Please keep it; you're free to restyle it, and you may add
rel="nofollow"if your site's policy requires it. - Booking buttons are FareScout affiliate links. “Book” and “Kiwi.com” go through our redirect to our partners (Aviasales and Kiwi.com via Travelpayouts); if a reader books, FareScout may earn a commission at no extra cost to them. The widget doesn't pay commissions to the embedding site. See our affiliate disclosure.
- Privacy. No cookies, no trackers and no third-party scripts inside the widget. Booking clicks are counted on our side with a hashed IP and no personal data.
- Performance. The loader is about 1 KB gzipped, lazy-loads the iframe, and the widget page is cached at the edge (15 minutes), so it won't slow your page down.
- Security. The widget runs in a sandboxed cross-origin iframe; the loader only listens for its height message.
- Need data instead? See the FareScout Fare Index for downloadable aggregate route statistics and embeddable charts.