The Best Flight Price widget
What is it?
The best price widget will show your visitors the flight price from their current location to the destination. The destination can be freely set. The best flight price widget is a powerful tool for encouraging your visitors to travel to your event.
Using on your own website
Feel free to use the following code on your own website to embed the best flight prices widget. The widget is free to use as is. The widget's creator will get the affiliate bonus from SkyScanner.
<div
data-widget="BestFlightPriceWidget"
data-currency="EUR"
data-origin-geo-lookup="true"
data-destination-name="Helsinki"
data-origin-name="Berlin"
data-flight-inbound-date="2025-03-28"
data-flight-outbound-date="2025-03-26">
</div>
<script src=" https://bestpricewidget.com/home/flightswidgetjs" async></script>
Supported parameters
data-widget: Must always be BestFlightPriceWidget. This is used to find the element when loading the widget.
data-currency: Set to any three letter ISO 4217 currency code. Leave empty to allow automatic resolving.
data-destination-name: Name of the destination city. This will be automatically resolved to the closest airport in the city.
data-destination-iata-code: Airport IATA code for the destination. If IATA code is present, it will override data-destination-name. You should still always provide also the data-destination-name as it is used to show nicer error message if there is problems retrieving the flights.
data-origin-name: Name of the origin. If data-origin-iata-code is present. This will be used as an origin and resolved automatically to nearest airport.
data-origin-iata-code: IATA code of the origin. If this is present, this will override data-origin-name. However, it is still recommended to set the data-origin-name as it will be used in case there is problems retrieving the flights.
data-origin-geo-lookup: If set to true, the origin will be resolved based on client's ip address. If this is present, this will override data-origin-name and data-origin-iata-code. However, it is still recommended to set the data-origin-name as it will be used in case there is problems retrieving the flights.
data-flight-outbound-date: The outbound date in format yyyy-MM-dd. Must not be empty. Must not be after inbound date.
data-flight-inbound-date: The inbound date in format yyyy-MM-dd. Must not be empty. Must not be before outbound date.