The Flight Labs API was built to provide a simple way of accessing global aviation data for real-time and historical flights as well as allow customers to tap into an extensive data set of airline routes and other up-to-date aviation-related information.
Quickstart
Requests to the REST API are made using a straightforward HTTP GET URL structure and responses are provided in lightweight JSON format.
Example API Request:
https://goflightlabs.com/flights?access_key=YOUR_ACCESS_KEY
# Retrieve Countries
This API endpoint offers a list of countries along with essential details such as country code, market, currency title, currency code, and currency symbol.
Example API Request:
https://app.goflightlabs.com/retrieveCountries?access_key=YOUR_ACCESS_KEY
HTTP GET Request Parameters:
Object | Description |
---|---|
access_key |
[Required] Your API access key, which can be found in your acccount dashboard. |
Example API Response:
{
"country": "Andorra",
"countryCode": "AD",
"market": "es-ES",
"currencyTitle": "Euro",
"currency": "EUR",
"currencySymbol": "€",
"site": "www.skyscanner.net"
},
{
"country": "United Arab Emirates",
"countryCode": "AE",
"market": "en-US",
"currencyTitle": "United Arab Emirates Dirham",
"currency": "AED",
"currencySymbol": "AED",
"site": "www.skyscanner.ae"
},
{
"country": "Afghanistan",
"countryCode": "AF",
"market": "en-GB",
"currencyTitle": "Afghan Afghani",
"currency": "AFN",
"currencySymbol": "AFN",
"site": "www.skyscanner.net"
},
# Retrieve Locations
This API endpoint allows to retrieve EntityId for Pickup and Drop Locations.
Example API Request:
https://app.goflightlabs.com/retrieveLocation?access_key=YOUR_ACCESS_KEY&query=Ottawa
HTTP GET Request Parameters:
Object | Description |
---|---|
access_key |
[Required] Your API access key, which can be found in your acccount dashboard. |
query |
[Required] Name of Location for Pickup/Drop-off. |
Example API Response:
{
"hierarchy": "Ottawa|Ontario|Canada",
"location": "45.320833, -75.672778",
"entity_name": "Ottawa International (YOW)",
"highlight": {
"entity_name": "Ottawa International (YOW)",
"hierarchy": "Ottawa|Ontario|Canada"
},
"entity_id": "95673590",
"class": "Airport"
},
{
"hierarchy": "Ontario|Canada",
"location": "45.293104378254945, -75.77523420019583",
"entity_name": "Ottawa",
"highlight": {
"entity_name": "Ottawa",
"hierarchy": "Ontario|Canada"
},
"entity_id": "27536667",
"class": "City"
}
# Retrieve Cars
This API endpoint enables you to search for available rental cars based on specific locations.
Example API Request:
https://app.goflightlabs.com/retrieveCars?access_key=YOUR_ACCESS_KEY&pickUpEntityId=27537542&pickUpDate=2024-09-10&pickUpTime=10:00
HTTP GET Request Parameters:
Object | Description |
---|---|
access_key |
[Required] Your API access key, which can be found in your acccount dashboard. |
pickUpEntityId |
[Required] The pickUpEntityId parameter is obtained from the retrieveLocation API endpoint within the Cars collection as the entity_id. It designates the unique identifier associated with the pickup location for car rentals. |
pickUpDate |
[Required] The pickUpDate parameter refers to the specified date for car pickup in the car rental process. Format: (YYYY-MM-DD). |
pickUpTime |
[Required] The pickUpTime parameter indicates the designated time for car pickup during the car rental procedure. Format: ((24-HOUR HH:MM)). For example 10:00. |
dropOffEntityId |
[Optional] The dropOffEntityId parameter is obtained from the entity_id within the Cars collection of the retrieveLocation endpoint. It signifies the unique identifier associated with the drop-off location for car rentals. |
dropOffDate |
[Optional] The dropOffDate parameter corresponds to the specified date intended for returning the rental car during the car rental process. Format: (YYYY-MM-DD). |
dropOffTime |
[Optional] The dropOffTime parameter denotes the designated time for returning the rental car within the car rental process. Format: ((24-HOUR HH:MM)). For example 10:00. |
driverAge |
[Optional] The driver's age parameter indicates the age of the individual renting the car, with a minimum requirement of 21 years or older.. |
currency |
[Optional] Desired currency. For example USD. Can be obtained from the endpoint retrieveCountries. |
market |
[Optional] For example en-US. Can be obtained from the endpoint retrieveCountries. |
countryCode |
[Optional] For example US. Can be obtained from the endpoint retrieveCountries. |