<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Matan Rabi]]></title><description><![CDATA[Matan Rabi]]></description><link>https://matanrabi.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Mon, 30 Nov 2026 21:59:15 GMT</lastBuildDate><atom:link href="https://matanrabi.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[I'm an engineer who never liked marketing, so I handed the legwork to AI agents - a year of building a travel API solo]]></title><description><![CDATA[Im a software engineer and a bit of a digital nomad, and like a lot of people who travel a lot I got obsessed with finding cheap flights to places I hadn't…]]></description><link>https://matanrabi.hashnode.dev/i-m-an-engineer-who-never-liked-marketing-so-i-handed-the-legwork-to-ai-agents-a-year-of-building-a-travel-api-solo</link><guid isPermaLink="true">https://matanrabi.hashnode.dev/i-m-an-engineer-who-never-liked-marketing-so-i-handed-the-legwork-to-ai-agents-a-year-of-building-a-travel-api-solo</guid><category><![CDATA[AI]]></category><category><![CDATA[startup]]></category><category><![CDATA[sideprojects]]></category><category><![CDATA[marketing]]></category><dc:creator><![CDATA[Matan Rabi]]></dc:creator><pubDate>Sun, 29 Nov 2026 05:34:12 GMT</pubDate><content:encoded><![CDATA[<p>Im a software engineer and a bit of a digital nomad, and like a lot of people who travel a lot I got obsessed with finding cheap flights to places I hadn't thought of yet. That obsession turned into a side project - a search engine over Google Flights that I could ask questions in plain English - and then into something I didn't plan at all, an API that other developers pay for.</p>
<p>It's called FlightPowers, and today it's four APIs on RapidAPI (Google Flights, Booking.com, Airbnb and Google Hotels) plus a few MCP servers that plug the same data into Claude, Cursor and ChatGPT. As of this evening 61 people pay for it.</p>
<p>This post is about the part I was worst at, which is getting anyone to notice, and how I ended up running most of that work through AI agents while I stayed the one who decides.</p>
<h2>The numbers, so you know where this is coming from</h2>
<p>Here is what customers paid every month this year (subscriptions plus usage over the plan, before the marketplace's cut), straight from the marketplace billing pages:</p>
<img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/m99tc8z7jzju4ztvxfvr.png" alt="Monthly revenue in 2026" style="display:block;margin:0 auto" />

<p>January was 10$. February was the first month that looked like a real thing at 285$. October was the first month over 1,000$ (1,357$ to be exact), and November is already past that with a few days left.</p>
<p>None of this is life changing money, and I'm saying that up front because I hate posts that hide the scale. But for something one person runs on the side, a curve that mostly goes up and to the right is the most motivating thing I've ever built.</p>
<h2>The engineer's trap</h2>
<p>For most of the first months my "marketing" was improving the product and hoping. I'd ship a better round trip endpoint, a cleaner error, a faster parser, and then wait for people to find it on the marketplace. Some did, but I knew the product was further ahead than the number of people who knew it existed.</p>
<p>The honest reason was that marketing felt like a second full time job, and it's a job made of a hundred small repetitive things. Reply to this email within the hour, and find the three developers this week who are asking somewhere for flight data. Write the docs page that answers the question five people asked. Check the dashboards every morning so you notice when something changes. Write to every new signup like a human would.</p>
<p>Every one of those is easy. Doing all of them every day, next to the product itself, is what I never managed.</p>
<h2>What the agents actually do</h2>
<p>Over the summer I started treating the marketing like an engineering system. I set up a manager agent (Claude, running on a small cloud box) that holds the plan and the state files, and it sends worker agents out for each job. I talk to it from my phone, and anything that needs me lands in a short list I go through once or twice a day.</p>
<p>In practice the agents do the legwork, and I do the deciding:</p>
<ol>
<li><strong>The inboxes.</strong> Every four hours an agent reads my mailboxes and the RapidAPI inbox, and drafts a reply to anything from a developer or a customer in my voice. Routine answers go out, and anything about money, custom plans or a call waits for me.</li>
<li><strong>Finding people who already need this.</strong> A worker reads public places where developers say out loud that they need flight or hotel prices (a README that mentions a quota, a forum thread, a new MCP server), scores the fit, and writes ONE personal email per person. The email carries a real gift - a live fare on the route from their own README, with Google's own low / typical / high label on it - because I'd rather show what the API returns than describe it.</li>
<li><strong>The site.</strong> The site is now more than 400 pages, most of them docs and guides written and kept up to date by agents from real requests and real responses. When five people ask the same question, it becomes a page.</li>
<li><strong>A daily read.</strong> Every morning an agent reads the logs, the error rates and the marketplace numbers, and writes me a short report. Most mornings it says nothing interesting, which is exactly what I want from it.</li>
<li><strong>The busywork of a marketplace business.</strong> Keeping the pricing tables on four listings in sync with the site, re-reading competitors' pricing pages before we quote them, keeping the n8n node and the MCP listings current.</li>
</ol>
<p>What stays mine is the stuff where judgment and money live - pricing, what to build next, anything that spends money, and the calls with customers. When the agent and I disagree about something, I tell it why once and my version wins.</p>
<h2>What made it work (and what I'd copy)</h2>
<p><strong>Teach it your voice from your own writing.</strong> The first drafts read like a landing page, all short punchy sentences and tidy endings, and it didn't sound like me. What fixed it was boring - the agent read 46 of my own emails and my old Reddit posts, and turned that into a written voice card (capital I, uneven sentence length, a space before the <code>!</code>, no em dashes ever, one number per sentence). Every draft gets checked against it by a script and by a second agent that has never seen the plan.</p>
<p><strong>Every correction becomes a written rule.</strong> When I fix something the agent did, it doesn't just apologise. It writes the rule into its own instructions file the same day, with the date and why. After a few months that file is basically a playbook of how I want my business run, which is a strange and very useful thing to have.</p>
<p><strong>Give before you ask.</strong> The outreach that works for me opens with something they can use right away (their own route, priced live) and asks about their use case after. Nobody owes a stranger a reply, so the email has to be worth reading even if they never answer.</p>
<p><strong>Answer fast.</strong> I always suspected speed mattered in support, and having something that reads every inbox every few hours made it obvious to me. In my experience developers who get a real answer within the hour keep talking.</p>
<p><strong>Measure what pays.</strong> The agents report replies, signups and subscriptions, not likes or impressions. It sounds obvious, but it's the reason the outreach is aimed at developers who already said they need the data instead of anyone who might.</p>
<h2>What it feels like</h2>
<p>The best part is that my evenings went back to the product. I still make every call that matters, but I'm not the bottleneck on a hundred small tasks anymore, and the business moves forward while I'm on a plane (which, given what I build, is often).</p>
<p>If you're an engineer sitting on a side project that works and nobody knows about, the boring answer is that the legwork has to happen every day, and in 2026 you don't have to do all of it by hand.</p>
<p>If you're curious what the API does, it's at <a href="https://flightpowers.com">flightpowers.com</a>, and the guide on <a href="https://flightpowers.com/guides/ai-travel-agent">building your own AI travel agent</a> is a good place to start - the free plan is enough to try it.</p>
<hr />
<p><em>This post was drafted by the same AI agent setup it describes. The numbers come from my own billing pages as of 2026-11-27.</em></p>
]]></content:encoded></item><item><title><![CDATA[The same 555$ flight was "high" in February and "typical" in March - notes from building a flight data API]]></title><description><![CDATA[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…]]></description><link>https://matanrabi.hashnode.dev/the-same-555-flight-was-high-in-february-and-typical-in-march-notes-from-building-a-flight-data-api</link><guid isPermaLink="true">https://matanrabi.hashnode.dev/the-same-555-flight-was-high-in-february-and-typical-in-march-notes-from-building-a-flight-data-api</guid><category><![CDATA[api]]></category><category><![CDATA[webdev]]></category><category><![CDATA[programming]]></category><category><![CDATA[Travel]]></category><dc:creator><![CDATA[Matan Rabi]]></dc:creator><pubDate>Sun, 29 Nov 2026 05:31:29 GMT</pubDate><content:encoded><![CDATA[<p>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.</p>
<p>So here they are, with real requests I ran tonight and the responses that came back.</p>
<h2>1. A round trip is one request, and the price belongs to the pair</h2>
<p>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.</p>
<p>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.</p>
<p>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:</p>
<pre><code class="language-bash">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}'
</code></pre>
<p>This is the top row of what came back at 20:26 UTC on 2026-11-27, after 5.5 seconds (buy link shortened):</p>
<pre><code class="language-json">{
  "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"
}
</code></pre>
<p>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.</p>
<h2>2. A price means nothing without a range</h2>
<p>Here's the thing that surprised me most when I started looking at real data.</p>
<p>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.</p>
<p>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".</p>
<img src="https://dev-to-uploads.s3.us-east-2.amazonaws.com/uploads/articles/utd42v0qjuk32yclme9b.png" alt="The same 555$ fare against Google's range, six departures" style="display:block;margin:0 auto" />

<p>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).</p>
<p>One gotcha I had to learn the hard way and now put in the docs - if you send a <code>sort_type</code> 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 <a href="https://flightpowers.com/flights-api/price-insights">price insights page</a>.</p>
<h2>3. "No flights" and "the search did not finish" are different answers</h2>
<p>This is the one Im proudest of, and nobody ever notices it until they need it.</p>
<p>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".</p>
<p>So every response from FlightPowers carries an <code>X-Search-Status</code> header with one of four values, and an empty array is only ever reported as <code>empty</code> when the page itself said there was nothing. These are the headers from one of tonight's six calls:</p>
<pre><code class="language-plaintext">HTTP/2 200
x-search-status: ok
x-search-attempts: 1
x-search-combinations: 1
x-search-results: 3
</code></pre>
<p>And this is roughly what the client side looks like:</p>
<pre><code class="language-js">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
</code></pre>
<p>If you'd rather get an error than a header, send <code>"strict": true</code> and a degraded search comes back as an HTTP 503 instead, with a <code>retry</code> field that says whether resending can help. I wrote a longer explanation with a captured degraded run on the <a href="https://flightpowers.com/flights-api/search-status">search status page</a>.</p>
<p>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.</p>
<h2>4. Scanning a month is a fan-out, so make each request cheap to fire</h2>
<p>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.</p>
<p>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.</p>
<p>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.</p>
<h2>What I'd tell someone building something similar</h2>
<p>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.</p>
<p>If you want to try it, everything starts at <a href="https://flightpowers.com">flightpowers.com</a>, and the free plan is enough to run the exact requests above on your own route :)</p>
<hr />
<p><em>This post was drafted by the AI agent that helps me run FlightPowers. The requests and responses are real runs from 2026-11-27.</em></p>
]]></content:encoded></item></channel></rss>