https://github.com/adhorrig/google-flights-wrapper
A simple wrapper to return price and airline from the Google Flights API
https://github.com/adhorrig/google-flights-wrapper
flights-api google-flights-wrapper qpx qpx-express wrapper
Last synced: 5 months ago
JSON representation
A simple wrapper to return price and airline from the Google Flights API
- Host: GitHub
- URL: https://github.com/adhorrig/google-flights-wrapper
- Owner: adhorrig
- License: mit
- Created: 2016-10-23T22:07:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-02-24T11:55:50.000Z (over 9 years ago)
- Last Synced: 2025-10-03T05:37:21.529Z (9 months ago)
- Topics: flights-api, google-flights-wrapper, qpx, qpx-express, wrapper
- Language: JavaScript
- Size: 6.84 KB
- Stars: 12
- Watchers: 2
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE.md
Awesome Lists containing this project
README
#Google Flights Wrapper
## Installation
```
npm install google-flights-wrapper
```
## Usage
```javascript
var qpx = require('google-flights-wrapper')(API_KEY_HERE);
qpx.api("1", "EUR5000", "1", "DUB", "GDN", "2016-12-14", function(data){
//data looks like: [ { airline: 'SK', price: 'EUR71.10' } ]
});
```
## Api Parameters:
```
adultCount: The number of adults going on the trip.
maxPrice: The max price for the trip. Note: Must be prefixed with currency i.e. EUR.
solutions: The number of possible routes the API should return.
origin: The origin airport code.
destination: The destination airport code.
date: The date of the flight.
fn: A function to access the API response.
```