Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/raed667/opensky-api

Library wrapper for OpenSky’s REST API written in TypeScript
https://github.com/raed667/opensky-api

api opensky opensky-api opensky-network openskynetwork rest rest-api

Last synced: 28 days ago
JSON representation

Library wrapper for OpenSky’s REST API written in TypeScript

Awesome Lists containing this project

README

        

# OpenSky

[![Quality Check](https://github.com/raed667/opensky-api/actions/workflows/ci.yml/badge.svg)](https://github.com/raed667/opensky-api/actions/workflows/ci.yml)
[![Stability: Stable](https://img.shields.io/badge/stability-stable-brightgreen.svg)](https://raed667.github.io/opensky-api/globals.html)
[![npm](https://img.shields.io/npm/v/opensky-api)](https://www.npmjs.com/package/opensky-api)
[![codecov](https://codecov.io/gh/raed667/opensky-api/branch/main/graph/badge.svg?token=NDV86JJG7V)](https://codecov.io/gh/raed667/opensky-api)
[![npm bundle size](https://img.shields.io/bundlephobia/minzip/opensky-api)](https://www.npmjs.com/package/opensky-api)
[![npm downloads](https://img.shields.io/npm/dt/opensky-api)](https://www.npmjs.com/package/opensky-api)
[![LICENSE](https://img.shields.io/npm/l/opensky-api)](https://github.com/raed667/opensky-api/blob/main/LICENSE)

Lightweight API wrapper for OpenSky’s REST API. The API lets you retrieve live airspace information for research and non-commercial purposes. Please refer to [OpenSky Network API documentation](https://openskynetwork.github.io/opensky-api/index.html).

This project is not affiliated to [OpenSky Network](https://github.com/openskynetwork), but the codebase is heavily inspired by the [opensky-api](https://github.com/openskynetwork/opensky-api) Java implementation.

## 📦 Install

```sh
yarn add opensky-api
# or
pnpm add opensky-api
# or
npm install opensky-api --save
```

## ⚡️ Quick start

The following example is equivalent to calling the REST API: `https://opensky-network.org/api/states/all?time=1458564121&icao24=3c6444`

```ts
import { OpenSkyApi } from 'opensky-api';

const api = OpenSkyApi();

api
.getStates(1458564121, ['3c6444'])
.then((response) => console.log(response.states));
```

[Frontend Example](https://codesandbox.io/s/stoic-keldysh-y0mj7o?file=/src/App.js) | [NodeJs Example](https://codesandbox.io/s/billowing-glitter-l2nj36?file=/routes/index.js)

## 📚 Documentation

- [OpenSkyJS](https://raed667.github.io/opensky-api/)
- [OpenSky REST](https://openskynetwork.github.io/opensky-api/rest.html)

## 👥 Contributors

This project is maintained by [Raed Chammam](https://raed.dev).

This project is considered stable but not in active development. If you encounter a problem, create an issue and I will respond with best effort.



Raed Chammam
Raed Chammam

💻 ⚠️ 📖 🚇
Clint
Clint

💻

## 📜 License

[GPL-3.0](LICENSE)