serpapi / public-roadmap

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

[Google Flights API] Allow airport groups or multiple airports departing or arriving for google flights api. #2167

Open robcampbell08105 opened 1 day ago

robcampbell08105 commented 1 day ago

One sentence description. I'd like to be able to use a airport group like WAS or PHI to get all local airports.

Screenshot with red annotations. image

Details about the feature, sample code, more screenshots, and other relevant information. I would like to get all surrounding flights rather than making multiple calls. I'd like to use WAS rather than DCA & IAD & BWI. Or if I could add multiple departing airports, that would be even better.

Public links: Playground 1 | Playground 2 | Documentation

Internal links: Intercom | Search Inspect 1 (under your dashboard > "Your Searches" > select one search) | Search Inspect 2

hilmanski commented 6 hours ago

Thank you very much for your request. We do have a way to search with multiple places using multi_city_json: https://serpapi.com/google-flights-api#api-parameters-advanced-google-flights-parameters-multi-city-json

Please let me know if this works for you.

zyc9012 commented 4 hours ago

@robcampbell08105 To specify multiple departing airports, simply provide a comma-separated list. e.g. Set departure_id as DCA,IAD,BWI