In this API you will get prices from multiple airlines and vendors for a multi-city trip. You can pass any airport IATA code, future date, currency, and pax.
API endpoint for this API is: https://api.flightapi.io/multitrip
Guide
Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
You can generate an API key from your Dashboard at any time.
Here is the list of default parameters you have to use with this API:
Parameters
Description
Type
api_key
required
This is your personal API key. You can find this on your Dashboard.
String
trips
required
Number of Flights one wants to take. Minimum value is 3 and maximum value is 5.
String
arp1
required
This is the IATA code of first departure airport.
String
arp2
required
This is the IATA code of first arrival airport.
String
date1
required
Date of departure from the first airport.
Format - YYYY-MM-DD
String
arp3
required
This is the IATA code of the second departure airport.
String
arp4
required
This is the IATA code of the second arrival airport.
String
date2
required
Date of departure from the second airport.
Format - YYYY-MM-DD
String
arp5
required
This is the IATA code of the third departure airport.
String
arp6
required
This is the IATA code of the third arrival airport.
String
date3
required
Date of departure from the third airport.
String
adults
required
This is the number of adults.
String
children
required
This is the number of childrens.
String
infants
required
This is the number of infants.
String
cabinclass
required
This is the class of the seat in the plane.
Possible Values- "Economy", "Business", "First" or "Premium_Economy"
String
currency
required
You can use any currency code like USD, INR, EUR, etc
String
Usage
You have to send a GET request to https://api.flightapi.io/multitrip along with all the parameters.
Take a look at how you might call this API using various different coding languages.
It is just a sample API response. Some objects will have more attributes. New arrays will also be there.
Understanding the Response
In the JSON response, you may observe that many objects include references (IDs or codes) to objects from other lists. This pattern is employed in our API to prevent redundant data and reduce the overall size by allowing multiple objects to reference the same data.