google-flights-wrapper1

1.1.6 • Public • Published

Google Flights Wrapper1

Installation

npm install google-flights-wrapper1

Usage

var qpx = require('google-flights-wrapper1')(API_KEY_HERE);
 
qpx.api("1", "EUR5000", "1", "DUB", "GDN", "2016-12-14", function(data){
    //data looks like: [ { Destination: , Origin: , airline: 'Name of airline', arrivalTime: 'Arrival Time', departureTime: 'Departure Time', flightNumber: 'Flight Number', price: 'EUR71.10' } ]
    //for connecting flights it is an array of two flight object.
});

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.62latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.62
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i google-flights-wrapper1

Weekly Downloads

2

Version

1.1.6

License

MIT

Last publish

Collaborators

  • nab0310