Global Flights & Airfare Itinerary Search
Search live commercial flights, airfare prices in USD/EUR, airlines, flight durations, and cabin classes between any IATA origin and destination airports.
curl -sG "https://api.agentapigate.ai/v1/travel/flights/search" \ --data-urlencode "origin=JFK" \ --data-urlencode "destination=LAX" \ --data-urlencode "departure_date=2026-12-15" \ --data-urlencode "limit=10" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Global Flights & Airfare Itinerary Search (`travel.flights.search`) **origin**: JFK · **destination**: LAX · **departure_date**: 2026-12-15 · **lowest_price_usd**: 203 ## itineraries - [1] id: 20a1243e51420000e70a22f1_0, type: ONEWAY, price_usd: 222, currency: USD, duration_minutes: 378 - [2] id: 20a1243e51420000e0038a2d_0, type: ONEWAY, price_usd: 222, currency: USD, duration_minutes: 379 - [3] id: 20a1243e51420000e48ef69f_0, type: ONEWAY, price_usd: 222, currency: USD, duration_minutes: 379 - [4] id: 20a1243e51420000e54c9ca8_0, type: ONEWAY, price_usd: 222, currency: USD, duration_minutes: 381 - [5] id: 20a1243e51420000e3875e43_0, type: ONEWAY, price_usd: 223, currency: USD, duration_minutes: 375 - [6] id: 20a1243e514200002db9244a_0-20a1243e514200002db9244a_1, type: ONEWAY, price_usd: 207, currency: USD, duration_minutes: 608 - [7] id: 20a1243e514200005037d2d4_0-20a1243e514200005037d2d4_1, type: ONEWAY, price_usd: 207, currency: USD, duration_minutes: 630 - [8] id: 20a1243e51420000173a9706_0-20a1243e51420000173a9706_1, type: ONEWAY, price_usd: 203, currency: USD, duration_minutes: 665 - [9] id: 20a1243e51420000e6c848c6_0, type: ONEWAY, price_usd: 269, currency: USD, duration_minutes: 380 - [10] id: 20a1243e51420000ec5665cc_0, type: ONEWAY, price_usd: 269, currency: USD, duration_minutes: 382
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:travel.flights.search · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| origin | string | required | JFK | Origin IATA airport or city code (e.g. "JFK", "LHR", "SFO", "SIN") |
| destination | string | required | LAX | Destination IATA airport or city code (e.g. "LAX", "CDG", "NRT", "DXB") |
| departure_date | string | required | 2026-12-15 | Departure date in YYYY-MM-DD format (e.g. "2026-12-15") |
| return_date | string | optional | — | Optional return date YYYY-MM-DD for round-trip flights |
| limit | number | optional | 10 | Max flight itineraries returned (1-20) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0025 / call | $0/mo · Balance never expires |
| Remote MCP Tool | travel_flights_search | OAuth 2.1 Hub & /mcp/local |
| x402 Base USDC | $0.0025 / call | Zero-signup USDC enabled |
| P50 Latency | 857 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 8338t → 354t (-96%) | Partner credit: paid_usd / x402 |
More travel.flights Sibling Endpoints
Frequently Asked Questions
How do I call Global Flights & Airfare Itinerary Search (travel.flights.search) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/travel/flights/search with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool travel_flights_search on https://mcp.agentapigate.ai/mcp.
What does travel.flights.search cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.0025 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on travel.flights.search?
Passing ?format=md transforms the response into normalized Markdown (~354 tokens vs ~8338 raw tokens, saving 96% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only local endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["local"], optional allowed_endpoints: ["travel.flights.search"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.