Im Matan, and for the past year I've been building FlightPowers on my own (a Google Flights data API that developers and AI agents call when they need the fare as it is right now). I get the same few questions from developers again and again, and almost all of them are about a few small design decisions that turned out to matter more than anything clever I did in the parser.
So here they are, with real requests I ran tonight and the responses that came back.
1. A round trip is one request, and the price belongs to the pair
Some flight APIs I looked at treat a round trip as two searches - you search the outbound leg, you get a list, and then you need a second call with a token from the first one to see the returns.
That model is fine for a booking UI where a human clicks one flight at a time. It's painful for code, because the price you actually care about is the total for a specific outbound AND a specific return, and on many routes I've checked that total isn't the sum of two one-way fares.
So in FlightPowers a round trip is a single POST, and every row that comes back is a complete pair with one total and one booking link:
curl -X POST "https://api.flightpowers.com/v1/flights/roundtrip" \ -H "Content-Type: application/json" \ -H "x-api-key: $FLIGHTPOWERS_API_KEY" \ -d '{"from_airport":"JFK","to_airport":"LIS", "departure_date":"2027-02-17","return_date":"2027-02-24", "currency":"USD","limit":3}' This is the top row of what came back at 20:26 UTC on 2026-11-27, after 5.5 seconds (buy link shortened):
{ "price_range_in_relation_to_other_periods": "high", "price_insights_low": 425, "price_insights_high": 540, "from_airport": "New York (JFK)", "to_airport": "Lisbon (LIS)", "departure_date": "2027-02-17", "return_date": "2027-02-24", "total_price": "$555", "total_price_as_number": 555, "total_stops": 0, "buy_link": "https://www.google.com/travel/flights?tfs=GjsSCjIwMjct...", "departure_flight_departure_description": "10:00 PM on Wed, Feb 17", "departure_flight_airline": "Tap Air Portugal | JetBlue", "departure_flight_duration": "7 hr", "return_flight_departure_description": "4:35 PM on Wed, Feb 24", "return_flight_airline": "Tap Air Portugal | JetBlue", "return_flight_duration": "8 hr 30 min" } No second call, no token to carry around, and the total is the number you would actually pay for that exact pair. I'm not the only one doing it this way (a couple of the newer MCP servers do too), but if you've ever written the two-step version you know how much glue code it removes.
2. A price means nothing without a range
Here's the thing that surprised me most when I started looking at real data.
I ran the same request for six Wednesdays in a row, February 3 to March 10, seven nights each, all six in parallel. The cheapest fare was the same nonstop at 555$ on every single date. If all you have is the price, those six results look identical.
But look at the first two fields of that response. Google keeps its own usual price range for most routes and periods, and it labels each fare low, typical or high against it. For the February dates the range was 425 to 540$, so 555$ came back "high". For the two March dates the range was 500 to 780$, and the exact same 555$ came back "typical".
That one field pair is the difference between a fare alert that spams people and one that is actually useful. Without it you'd have to store months of price history per route before you can say whether a price is good, and most side projects never get there. With it, the verdict arrives with the fare whenever Google shows one, on every plan (free tier included).
One gotcha I had to learn the hard way and now put in the docs - if you send a sort_type on a search, Google answers without the range and those fields come back null, so leave sorting to your own code when you want the verdict. The full field list is on the price insights page.
3. "No flights" and "the search did not finish" are different answers
This is the one Im proudest of, and nobody ever notices it until they need it.
A flight search behind an API depends on a page somebody else renders. Sometimes the page comes back fine and there really are no flights on that date. Sometimes the page comes back unreadable, and the search ends with nothing for reasons that don't have anything to do with availability. It's easy for an API to answer both cases the same way - HTTP 200 and an empty array - and your code happily tells a user "no flights" when the honest answer is "try again".
So every response from FlightPowers carries an X-Search-Status header with one of four values, and an empty array is only ever reported as empty when the page itself said there was nothing. These are the headers from one of tonight's six calls:
HTTP/2 200 x-search-status: ok x-search-attempts: 1 x-search-combinations: 1 x-search-results: 3 And this is roughly what the client side looks like:
const res = await fetch(url, { method: "POST", headers, body }); const status = res.headers.get("x-search-status"); const rows = res.ok ? await res.json() : []; if (status === "ok" || status === "partial") show(rows); // partial = real rows, knowingly short else if (status === "empty") showNoFlights(); // believe it else retryLater(); // degraded: says nothing about availability If you'd rather get an error than a header, send "strict": true and a degraded search comes back as an HTTP 503 instead, with a retry field that says whether resending can help. I wrote a longer explanation with a captured degraded run on the search status page.
The reason I care so much about this is boring. Most of my users are building fare alerts and AI travel agents, and both of them act on an empty result - an agent will tell someone "there are no flights to Lisbon that week", and an alert will skip a day. A false empty is worse than a slow answer.
4. Scanning a month is a fan-out, so make each request cheap to fire
The REST API takes one date pair per request, which keeps every response small and every row easy to cache on your side. When you want a month, you fan out.
Tonight's six requests went out at the same moment and all six were back within 11.2 seconds (the fastest in 5.1). On the PRO plan you can send 150 a minute, which covers a full month of departures for one route in well under a minute. PRO is 10$ for 2,500 requests, and the free plan is 50 requests a month with no card.
If you're wiring this into an AI assistant rather than your own code, the MCP servers do the fan-out for you - one tool call can take a date range, a list of destinations and a few trip lengths, and it'll come back with the cheapest row per destination plus Google's range on each.
What I'd tell someone building something similar
Getting the data was maybe half the work, and the other half was deciding what each response is allowed to claim. The pairing, the range and the honest empty cost me far less code than the parser did, and they are the ones developers mention when they write back.
If you want to try it, everything starts at flightpowers.com, and the free plan is enough to run the exact requests above on your own route :)
This post was drafted by the AI agent that helps me run FlightPowers. The requests and responses are real runs from 2026-11-27.


