
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
apilayer-aviationstack
Advanced tools
A simple SDK for the Aviationstack API, which provides real-time and historical aviation data, including flight status, routes, airports, airlines, aircraft types, and more.
You can install this SDK using npm:
npm install apilayer-aviationstack
This SDK supports both CommonJS (require
) and ES Modules (import
).
require
)const Aviationstack = require("apilayer-aviationstack");
const aviation = new Aviationstack("YOUR_API_KEY");
aviation
.flights()
.then((response) => console.log(response))
.catch((error) => console.error(error));
import
)import Aviationstack from "apilayer-aviationstack";
const aviation = new Aviationstack("YOUR_API_KEY");
aviation
.flights()
.then((response) => console.log(response))
.catch((error) => console.error(error));
constructor(apiKey: string
)Initializes the Aviationstack
client with your API key.
const aviation = new Aviationstack("YOUR_API_KEY");
flights(params?: object)
Retrieves real-time flight information.
aviation.flights({ airline_name: "Lufthansa" }).then((response) => console.log(response));
routes(params?: object)
Gets information about specific routes.
aviation.routes({ dep_iata: "JFK", arr_iata: "LAX" }).then((response) => console.log(response));
airports(params?: object)
Returns a list of airports.
aviation.airports({ country_name: "United States" }).then((response) => console.log(response));
airlines(params?: object)
Fetches airline details.
aviation.airlines({ airline_name: "Delta" }).then((response) => console.log(response));
aircraftTypes(params?: object)
Gets information about different aircraft types.
aviation.aircraftTypes().then((response) => console.log(response));
taxes(params?: object)
Returns information about applicable taxes.
aviation.taxes({ country_name: "Germany" }).then((response) => console.log(response));
cities(params?: object)
Gets information about cities.
aviation.cities({ country_name: "United Kingdom" }).then((response) => console.log(response));
countries(params?: object)
Returns a list of countries.
aviation.countries().then((response) => console.log(response));
flightsFuture(iataCode: string, type: string, date: string, params?: object)
Gets information about future flights. Required parameters: iataCode, type, and date.
aviation.flightsFuture("JFK", "departure", "2023-10-23").then((response) => console.log(response));
timetable(iataCode: string, date: string, params?: object)
Gets the flight timetable for a specific airport on a given date. Required parameters: iataCode and date.
aviation.timetable("LAX", "2023-10-23").then((response) => console.log(response));
For more detailed information about Aviationstack API, make sure to check out our Developer Documentation.
This package is licensed under the MIT License.
FAQs
Aviationstack API SDK
The npm package apilayer-aviationstack receives a total of 1 weekly downloads. As such, apilayer-aviationstack popularity was classified as not popular.
We found that apilayer-aviationstack demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.