• Installs:
  • Today: 24
  • This Week: 214
  • This Month: 751
  • All Time: 11139


This endpoint returns information about single trip.


Step 1: Go to Google Developers Console (https://console.developers.google.com/)
Step 2: Select a project, or create a new one
Step 3: Press Continue to activate API key
Step 4: Select 'Enable APIs and services' to enable the APIs you want to use
Step 5: In the sidebar on the left, select Credentials
Step 6: If your project has no API key for the server, create it now - Create credentials > API key

Test This Block

  • apiKey
    Body parameter
    Your ApiKey obtained from Google Developer Console.

  • gear
    Required Parameters

    • origin
      Body parameter
      The departure city. 3-digit code IATA format, for example: BOS - Boston
    • destination
      Body parameter
      The city of arrival. 3-digit code IATA format, for example: BOS - Boston
    • passengersAdultCount
      Body parameter
      The number of passengers that are adults.
    • passengersChildCount
      Body parameter
      The number of passengers that are children.
    • fromDate
      Body parameter
      Select Date
      The date of departure. Format: YYYY-mm-dd. Example: 2016-12-20
    Optional Parameters
    • toDate
      Body parameter
      Select Date
      The return flight date. Format: YYYY-mm-dd. Example: 2016-12-20
    • maxPrice
      Body parameter
      Do not return solutions that cost more than this price. The currency is specified in ISO-4217. The format, in regex, is [A-Z] {3} \d+(\.\d+)?. Example ( EUR355.50 ) ( USD505.00 )
    • refundable
      Body parameter
      Return only solutions with refundable fares.
    • solutions
      Body parameter
      The number of solutions to return, maximum 500.
    Show Optional Parameters
    TEST Function
    CODE (NodeJS)

    Nice try, But you still have to Log in.
    Meanwhile, you can enjoy this limerick:

    "A programming genius called HEAP
    Had trouble in getting to sleep
    So he made his lambs troup
    through a huge FOR-NEXT loop
    FOR 1 TO 10000: NEXT sheep."

    Sign in to get the snippet
    Sign In
    $ / m
    We will charge your card every month for the plan amount, as well as any overages incurred in the previous month.

    Oops, we are missing some details

    Looks like there are a few missing details that you haven't filled in yet.
    These details are important and will help us protect you and let you know about anything new.


    Connect your app to GoogleFlightsAPI via RapidAPI

    Consume and monitor multiple APIs through the RapidAPI SDK.
    Click start to set up your app and connect to GoogleFlightsAPI.


    Give your app a name

    This app will be used in RapidAPI to collect and connect all the APIs you need.


    Connect your project

    Choose your backend language and then install & require the RapidAPI SDK.

    • node
    • php
    • python
    • objc
    • android
    • go
    • ruby
    • csharp

    Install SDK

    Run the following command to install the SDK:

    npm install rapidapi-connect --save

    Require SDK

    In your code, add the following code to require the RapidAPI SDK:


    Hooray! You are connected

    Use the following code to try it out by getting all the APIs that are on RapidAPI.

    rapid.call('RapidAPI', 'getAll', {'{}'});
    esccloses this view

    Login to RapidAPI

    Create endpoints based on popular APIs and share with others.
    Follow popular APIs and get updated. Stand out in the community of developers.

    Login with Github
    Login with Facebook
    Login with Google
    Remember Me

  • We're not going to post anything on your wall.
  • We're not planning to spam you.
  • esccloses this view

    Why sign up to RapidAPI?

    • integrate
      Integrate APIs into your app
      Ruby, Java, Elixir, Node.js, Phyton, Objective C, Swift, PHP and MORE
    • keys
      Save all API keys in one place
    • notifications
      Get notifications about API changes
    • stats
      Get stats and monitor API connections
    Sign up with Github
    Sign up with Facebook
    Sign up with Google
  • We're not going to post anything on your wall.
  • We're not planning to spam you.
  • esccloses this view


    esccloses this view