get_latest_prices
Retrieve recently found flight prices for dates or routes, grouped by dates or directions and sorted by price to compare travel options.
Instructions
Recently found prices for a period (v3/get_latest_prices): dates or directions, sorted by price.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_latest_prices"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| limit | No | ||
| origin | No | IATA code of departure city/airport, e.g. MOW. | |
| one_way | No | ||
| sorting | No | ||
| currency | No | Currency code: rub, usd, eur (default from env TRAVELPAYOUTS_CURRENCY). | |
| group_by | No | ||
| destination | No | IATA code of destination city/airport, e.g. IST. | |
| period_type | No | ||
| beginning_of_period | No | YYYY, YYYY-MM-DD. |