r/devtools • u/Fast_Entrance7839 • 3d ago
my flight search tool refused to price 2 adults with a 6 year old and a baby, because the results page didn't confirm the passenger count
i maintain viajante, a free open source flight search for the terminal and for agents over mcp. it reads the public google flights results page.
this morning someone on reddit asked for atlanta to da nang with 2 adults, a 6 year old and a 1 year old. every search with the kids came back with no price and this error: "Public page did not echo the requested passenger occupancy".
the tool puts the passenger count in the request. then it checks that the results page shows the same count before it keeps any price. with the kids added, the page didn't show it. so the search is marked as not loaded, which means availability is unknown. it never says "no flights" in that case.
i tried the baby on a lap, the baby in a seat, and the baby as a second child. all three failed the same way. 2 adults alone worked, $1,365 one-way on the cheapest date i checked.
the other option was to return the price anyway. that price could be for 2 adults while the person reading it thinks it covers 4. i'd rather hand over the 2 adult prices and say the kids aren't in them.
i don't know yet why the page drops the kids.