{"repo":"krisukox/google-flights-api","free":true,"listed":false,"github":"https://github.com/krisukox/google-flights-api","clone":"git clone https://github.com/krisukox/google-flights-api.git","description":"A Go Client Library for the Google Flights API","language":"Go","stars":69,"topics":["api-client","flights-api","go","golang","google-api","google-api-client","google-flights-api"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Google Flights API This project is a Go client library for the Google Flights API. The client produces direct requests to the Google Flights API, which is much faster than using WebDriver. The Google Flights API doesn't have official documentation, so the project relies on analyzing how the Google Flights website communicates with the backend. The project uses go-retryablehttp under the hood. Every request to the Google Flights API is retried five times in case of an error. Go protoc plugin used in the project Installation Usage Session Session is the main object that contains all the API-related functions. NOTE: The library relies on the GOOGLE ABUSE EXEMPTION cookie (the cookie is not always needed), so if you get an unexpected HTTP status code, please go to https://www.google.com/travel/flights, do the captcha, and try once again. (The cookie is gotten from your browser database using https://github.com/browserutils/kooky) 1. Price graph Find the cheapest flights from San Francisco to New York. The call uses the \"Price graph\" subsection of the Google Flights website. Google Flights API: Example output: Google Flights website: 2. Serialize URL Example output: 3. Get offers The call below uses Spanish city names: Example output: Google Flights website More advanced examples: Bug / Feature / Suggestion If you've found a bug, have a suggestion, or a feature you're looking for is not yet implemented, please feel free to open an issue. I'll try to handle it ASAP.","default_branch":null,"files":null,"tree":[],"storefront":"/r/krisukox","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/krisukox/google-flights-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}