Socket
Socket
Sign inDemoInstall

google-flights-wrapper

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-flights-wrapper

A simple wrapper for the Google Flights API


Version published
Maintainers
1
Created
Source

#Google Flights Wrapper

Installation

npm install google-flights-wrapper

Usage

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.

Keywords

FAQs

Package last updated on 24 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc