serpapi / public-roadmap

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

[Google Flights API] Booking token is missing #1832

Closed hilmanski closed 1 month ago

hilmanski commented 1 month ago

It looks like the booking_token is missing from the response.

Playground | Inspect | Intercom

marm123 commented 1 month ago

For round trips, the booking_token is only available after you select and search for the departure flight with the departure_token. For example, this is the initial call, including departure_token:

Initial call

image

And then, after you make the 2nd API calls with the departure_token, you get the booking_token:

Departure flight: image

For one-way flights, you get the booking_token right away:

One-way flight: image

I'm closing this as it seems there is no issue. Feel free to reopen if I missed something.

hilmanski commented 1 month ago

Thank you so much, @marm123. I missed that. It might be a good idea to add this on the documentation.