API reference

HTS APIs

Every endpoint, schema and error code, rendered from the published OpenAPI files, in the order you integrate them.

GET/flights-price-prediction/v1/forecastOther

Get price forecast for a specific flight search

https://fintech.staging.htsapis.com/flights-price-prediction/v1/forecast

Get a price forecast for a specific flight search

Parameters

filters
query · array of TripFilter
origin
query · string · {airport|city}/<code>
required
destination
query · string · {airport|city}/<code>
required
departureDate
query · string · date
required
returnDate
query · string · date
forecastOn
query · string · date
currency
query · string
required

Responses

200
Content-Type
response header
Exactly one of the following, selected by outcome:
Available (Available) Available
forecastOn
string · date-time
required
outcome
string
required
series
ForecastSeries
required
Show fields
future
array of FutureDate
required
Show fields
Array of FutureDate
date
string · date
required
priceTarget90
number
required
past
array of PastDate
required
Show fields
Array of PastDate
date
string · date
required
price
number
required
shops
integer · int32
required
values
ForecastValues
required
Show fields
goodPrice
number
required
targetPrice
number
required
dangerDate
string · date
dangerPrice
number
warningDate
string · date
warningPrice
number
priceTrend
PriceTrend
Show fields
upwardsProbability
number · double
required

Represent how likely the price will go up after forecast time. 0 = not likely, 1 = very likely.

buyNeutralThreshold
number · double

Threshold use to create the low buy confidence.

lowBuyConfidence
boolean

Represent if this is a buy neutral recommendation.

lowWaitConfidence
boolean

Represent if this is a wait neutral recommendation.

waitNeutralThreshold
number · double

Threshold use to create the low wait confidence.

Unavailable (Unavailable) Unavailable
forecastOn
string · date-time
required
outcome
string
required
reason
string
required
400Invalid value for: query parameter filters, Invalid value for: query parameter origin, Invalid value for: query parameter destination, Invalid value for: query parameter departureDate, Invalid value for: query parameter returnDate, Invalid value for: query parameter forecastOn, Invalid value for: query parameter currency
No body.
default
Content-Type
response header
message
string
required
Example
{
  "message": "string"
}
Request
curl -X GET "https://fintech.staging.htsapis.com/flights-price-prediction/v1/forecast"
Response 200
{
  "forecastOn": "2026-12-10T15:00:00Z",
  "outcome": "string",
  "priceTrend": {
    "buyNeutralThreshold": 1,
    "lowBuyConfidence": true,
    "lowWaitConfidence": true,
    "upwardsProbability": 1,
    "waitNeutralThreshold": 1
  },
  "series": {
    "future": [
      {
        "date": "2026-12-10",
        "priceTarget90": 1
      }
    ],
    "past": [
      {
        "date": "2026-12-10",
        "price": 1,
        "shops": 1
      }
    ]
  },
  "values": {
    "dangerDate": "2026-12-10",
    "dangerPrice": 1,
    "goodPrice": 1,
    "targetPrice": 1,
    "warningDate": "2026-12-10",
    "warningPrice": 1
  }
}

Examples are generated from the schema where the spec publishes none; field values are illustrative.