serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
45 stars 3 forks source link

[Google Flights API] `booking_request ` redirects to the provider default search instead of specific result #1732

Closed marm123 closed 5 days ago

marm123 commented 5 days ago

One of our users reported that they are not getting expected search results when accessing the booking_request from booking options. I've checked and was able to recreate the issue:

Playground search:

image

The page that's returned when accessing the booking_request:

image

The same search in Google Flights:

image

Correct page when accessing the booking option directly:

image

Playground | Inspect | booking_request link Direct Google Flights search | Direct Booking option link Front

zyc9012 commented 5 days ago

I did another search (Inpsect), and the links were redirected to the purchase page correctly.

The second and third options in @marm123's Inspect also redirect to the purchase page.

URL to the first option URL to the second option URL to the third option

So I don't think we can fix it on our side. It's more of an issue on Google's side.

arcrank commented 4 days ago

I am talking about the POST request. But as you said thankfully I am unblocked as converting the params from post to get yields a valid GET link.

hartator commented 1 day ago

I am talking about the POST request. But as you said thankfully I am unblocked as converting the params from post to get yields a valid GET link.

Can you share an example of what you mean? Thanks!

All the Google links seem to be already regular GET requests. I don't unfortunately think that we be able to scrape the checkout page of the actual airline if that's what you meant.