Overview
Aviationstack by apilayer provides real-time flight status, schedules, and global aviation data including airports and airlines. It uses an API access key passed as a query parameter and offers a free tier with HTTP access for up to 500 requests per month. It is a good starting point for building flight trackers or travel dashboards.
Beginner Tip
The free plan only supports HTTP not HTTPS so upgrade to a paid plan to enable secure requests. Start with the /flights endpoint and filter by flight_iata to track a specific flight number.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"route": "Line 1",
"origin": "Station A",
"destination": "Station B",
"departure": "08:30",
"arrival": "09:15",
"status": "On Time",
"delays_min": 0
} Field Reference
flight_date Scheduled date of the flight in YYYY-MM-DD format. flight_status Current status of the flight such as scheduled, active, landed, or cancelled. departure.iata IATA code of the departure airport. arrival.iata IATA code of the arrival airport. flight.iata IATA flight number combining airline code and flight digits. airline.name Full name of the operating airline. Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "http://api.aviationstack.com/v1/flights?access_key=YOUR_API_KEY&flight_iata=AA100";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"Authorization": "Bearer YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Similar APIs
View All →Amadeus for Developers
Amadeus for Developers is an OAuth2-protected travel API offering flight search, hotel availability, airport information, and more from one of the largest global distribution systems.
BIC-Boxtech
BIC-Boxtech provides technical specifications for shipping containers in the global fleet, including dimensions, tare weight, and capacity details.
Grab
The Grab API allows developers to integrate Grab services — including ride-hailing, food delivery, and payments — into their own applications across Southeast Asia.
Transport for Sao Paulo, Brazil
The SPTrans Olho Vivo API provides real-time bus tracking data for São Paulo's massive municipal bus system in Brazil, one of the largest in the world.
Transport for Sweden
Transport for Sweden (Trafiklab) is a developer platform providing access to public transport data across all of Sweden.