Flight prices across dates
search_flight_prices_by_dateReturn the cheapest Google Flights fare for each departure date between two airports across a range of at most 31 days (one results-page search per date, so a long range is slow). Each row has the date, the return date for round trips (departure plus trip_duration) and the lowest total USD price for all passengers; a date with no itineraries is omitted. degraded with an error means some or all dates failed and the list holds only the dates that answered. Prices change minute to minute. Requires a paid plan; one live search request, weight 2 on API plans, up to 25 s. Airports are IATA codes; is_round_trip needs trip_duration; passengers is 1-9. Read-only.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"origin": "<origin>",
"destination": "<destination>",
"start_date": "<start_date>",
"end_date": "<end_date>"
},
"name": "search_flight_prices_by_date"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| origin | Yes | IATA code for the departure airport, e.g. "JFK" | |
| end_date | Yes | End of the date range in YYYY-MM-DD format, at most 30 days after start_date | |
| jmespath | No | Optional JMESPath projection applied to the response. See initialize.instructions for grammar and examples. | |
| passengers | No | Number of passengers (1-9, default 1) | |
| start_date | Yes | Start of the date range in YYYY-MM-DD format | |
| cabin_class | No | Cabin class: "economy", "premium_economy", "business", or "first" (optional, default economy) | |
| destination | Yes | IATA code for the arrival airport, e.g. "LHR" | |
| is_round_trip | No | Whether to search round-trip prices (default false). Requires trip_duration when true. | |
| sort_by_price | No | Sort results by price ascending (default false, sorts by date) | |
| trip_duration | No | Trip duration in days — required when is_round_trip is true (e.g. 7 for a one-week trip) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||