aviation-stack-api
v1.0.0
Published
AviationStack is an API that provides real-time and historical flight data, including flight status, airline routes, and airport details.
Readme
Getting Started with Aviationstack
Introduction
AviationStack API provides real-time and historical aviation data including flights, airports, airlines, and more. This API allows you to access comprehensive aviation information for various use cases.
Install the Package
Run the following command from your project directory to install the package from npm:
npm install [email protected]For additional package details, see the Npm page for the [email protected] npm.
Initialize the API Client
Note: Documentation for the client can be found here.
The following parameters are configurable for the API Client:
| Parameter | Type | Description |
| --- | --- | --- |
| timeout | number | Timeout for API calls.Default: 0 |
| httpClientOptions | Partial<HttpClientOptions> | Stable configurable http client options. |
| unstableHttpClientOptions | any | Unstable configurable http client options. |
| customQueryAuthenticationCredentials | CustomQueryAuthenticationCredentials | The credential object for customQueryAuthentication |
The API client can be initialized as follows:
import { Client } from 'aviation-stack-api';
const client = new Client({
customQueryAuthenticationCredentials: {
'access_key': 'access_key'
},
timeout: 0,
});Authorization
This API uses the following authentication schemes.
List of APIs
- Aircraft Types
- Flight Schedules
- Flight Future Schedules
- Flights
- Routes
- Airports
- Airlines
- Airplanes
- Taxes
- Cities
- Countries
