Skip to main content
GET
/
api
/
airlines
Airlines on Route
curl --request GET \
  --url https://app.airrating.io/api/airlines
{
  "origin": "<string>",
  "dest": "<string>",
  "airlines": [
    {
      "airline": "<string>",
      "airline_name": "<string>",
      "score": 123,
      "label": "<string>",
      "delay_rate": 123,
      "total_flights": 123,
      "confidence": 123
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://docs.airrating.io/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Returns a list of all airlines that operate a given route, each with their own Risk Score and historical delay statistics. Useful for comparing carriers before booking.

Request

origin
string
required
IATA code of the departure airport (e.g. FCO, LHR, JFK).
dest
string
required
IATA code of the arrival airport.
api_key
string
required
Your API key.

Response

origin
string
IATA code of the departure airport.
dest
string
IATA code of the arrival airport.
airlines
array
List of airlines operating the route, sorted by score ascending (lowest risk first).

Example

curl "https://app.airrating.io/api/airlines?origin=FCO&dest=LHR&api_key=YOUR_API_KEY"
Response
{
  "origin": "FCO",
  "dest": "LHR",
  "airlines": [
    {
      "airline": "FR",
      "airline_name": "Ryanair",
      "score": 28,
      "label": "Low",
      "delay_rate": 0.14,
      "total_flights": 543,
      "confidence": 0.91
    },
    {
      "airline": "BA",
      "airline_name": "British Airways",
      "score": 45,
      "label": "Moderate",
      "delay_rate": 0.22,
      "total_flights": 198,
      "confidence": 0.72
    },
    {
      "airline": "AZ",
      "airline_name": "ITA Airways",
      "score": 62,
      "label": "High",
      "delay_rate": 0.31,
      "total_flights": 312,
      "confidence": 0.84
    }
  ]
}
Airlines are sorted by score ascending — the lowest-risk carrier appears first. Use this endpoint to power a “best airline” recommendation feature.