Skip to main content
The Aero API provides comprehensive access to real-time flight tracking, airport information, airline data, and flight booking management. Built with NestJS, the API offers a RESTful interface for integrating aviation data into your applications.

Base URL

All API requests should be made to:
http://localhost:3000
The API uses versioned endpoints with a /v1 prefix. All production endpoints follow the pattern: http://localhost:3000/v1/{resource}

API versioning

The API uses URI-based versioning with version 1 as the default. All endpoints are prefixed with /v1.

Key features

The Aero API provides access to:
1

Authentication

Secure user registration and login with JWT tokens
2

Flight tracking

Real-time flight tracking with detailed position data and flight paths
3

Airport data

Access to over 20,000 airport records with search capabilities
4

Airline information

Comprehensive database of over 800 commercial airlines
5

Flight bookings

Create and manage flight bookings with complete CRUD operations
6

User profiles

Track and analyze personal flight statistics and travel history

Response format

All API responses are returned in JSON format. Successful responses return the requested data, while errors return an error object with a descriptive message.

Success response

{
  "id": "user_abc123",
  "name": "John Doe"
}

Error response

{
  "message": "No user found with given email."
}

Status codes

The API uses standard HTTP status codes:
Status CodeDescription
200Success - Request completed successfully
201Created - Resource created successfully
400Bad Request - Invalid request parameters
401Unauthorized - Authentication required or failed
404Not Found - Resource not found
409Conflict - Resource already exists
500Internal Server Error - Server error occurred

Rate limiting

The API relies on third-party services including:
  • Aviation Stack API - Flight data between airports
  • AeroDataBox (RapidAPI) - Aviation data
  • FlightAware API - Real-time flight tracking
Rate limits depend on your subscription tier with these third-party services. Configure your API keys in the environment variables to access these features.

Interactive documentation

The API includes interactive documentation powered by Scalar at:
http://localhost:3000/docs
This provides a modern interface to explore endpoints, test requests, and view detailed schema information.

Next steps

1

Set up authentication

Learn how to register users and authenticate API requests
2

Explore endpoints

Browse the available API endpoints in the reference documentation
3

Make your first request

Try querying airport or airline data

Build docs developers (and LLMs) love