Sample display
Trend API Inputs
* indicates required input parameter. Additional parameter definitions are included in the documentation page for each specific API.
Price Outputs (used for sample display)
In this example, the sample display leverages the predictionMin (lowest predicted price) and outboundDTD (number of days until departure) parameters to display an interactive graph plotting the predicted minimum price for every day until the day of departure so users can see how prices are expected to change over time.
Additionally, the summary block (lines 53 - 62) indicates the booking window to get the lowest price of $433.42 (line 61) is March 12 - March 18, 2024 (lines 56-57).
Price API response (snippet only to show sample)
{
"items": [
{
"airline": "HA",
"aggregate": "airline",
"currency": "USD",
"searchClass": "E",
"updatedAt": "2024-01-05",
"data": [
{
"outboundDTD": 148,
"predictionAvg": 598.3224999999999,
"predictionMax": 807.7,
"predictionMin": 457.7440000000001
},
{
"outboundDTD": 147,
"predictionAvg": 598.902174634754,
"predictionMax": 809.9658153101461,
"predictionMin": 458.0590590427434
},
{
"outboundDTD": 146,
"predictionAvg": 599.5190984401654,
"predictionMax": 812.3314217033068,
"predictionMin": 458.44620100976465
},
{
"outboundDTD": 145,
"predictionAvg": 600.1439260001556,
"predictionMax": 814.6969947317103,
"predictionMin": 458.88687528509
},
{
"outboundDTD": 144,
"predictionAvg": 600.7468690372491,
"predictionMax": 816.9561745606729,
"predictionMin": 459.36061676871736
},
{
"outboundDTD": 143,
"predictionAvg": 601.2999190760089,
"predictionMax": 819.0026221094327,
"predictionMin": 459.846313397965
},
{
"outboundDTD": 142,
"predictionAvg": 601.7790765283768,
"predictionMax": 820.7371886297009,
"predictionMin": 460.32353515443975
},
],
"summary": [
{
"bookingRange": {
"minDate": "2024-03-12",
"maxDate": "2024-03-18"
},
"bookingDate": "2024-03-15",
"confidence": 98,
"lowestTrendPrice": 433.4210479690491,
"trend": "desc"
}
]
}
],
"pagination": null,
"search": {
"aggregate": "airline",
"airline": [
"HA"
],
"departureDate": "2024-06-01",
"destination": "HNL",
"includeSummary": false,
"locale": "en-US",
"maxStops": null,
"minStops": null,
"origin": "JFK",
"returnedDate": null,
"searchClass": [
"E"
],
"searchId": "202496",
"searchDate": "2024-01-11",
"modelVersion": 4
}
}