api-ninjas-com Airlines API

The Airlines API provides general and detailed fleet information for over 1,000 airlines from small, regional service providers to publicly-traded international carriers.

Operations 1

GET /v1/airlines Get general and detailed fleet information for airlines #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/api-ninjas-com:api-ninjas-com-airlines-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

api-ninjas-com-airlines-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ninjas Airlines API
  description: 'Combined OpenAPI specification for every API Ninjas endpoint. Requests go to https://api.api-ninjas.com with an `X-Api-Key` header; get a free key at https://api-ninjas.com/register. Human-readable docs: https://api-ninjas.com/api. Index for LLMs: https://api-ninjas.com/llms.txt.'
  version: 1.0.0
  contact:
    name: API Ninjas
    url: https://api-ninjas.com
  license:
    name: Proprietary
servers:
- url: https://api.api-ninjas.com
  description: API Ninjas Production
security:
- ApiKeyAuth: []
tags:
- name: Airlines
  description: The Airlines API provides general and detailed fleet information for over 1,000 airlines from small, regional service providers to publicly-traded international carriers.
paths:
  /v1/airlines:
    get:
      summary: Get general and detailed fleet information for airlines
      description: Returns general and fleet information for airlines matching an ICAO code, IATA code, or name. At least one of `icao`, `iata`, or `name` must be set.
      operationId: getAirlines
      tags:
      - Airlines
      parameters:
      - name: icao
        in: query
        description: International Civil Aviation Organization (ICAO) 3-character airline code. At least one of icao, iata, or name must be set.
        required: false
        schema:
          type: string
      - name: iata
        in: query
        description: International Air Transport Association (IATA) 2-character airline code. At least one of icao, iata, or name must be set.
        required: false
        schema:
          type: string
      - name: name
        in: query
        description: Airline name. This parameter supports partial matching (e.g. United will match United Airlines). At least one of icao, iata, or name must be set.
        required: false
        schema:
          type: string
      responses:
        '200':
          description: A list of up to 10 airline results.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Airline'
        '400':
          description: Bad Request - The request was invalid, details are provided in the error message.
        '401':
          description: Unauthorized - API key is missing or invalid.
        '500':
          description: Internal Server Error - We had a problem with our server. Try again later.
      security:
      - ApiKeyAuth: []
components:
  schemas:
    Airline:
      type: object
      properties:
        name:
          type: string
          description: Airline name.
        country:
          type: string
          description: Country where the airline is based.
        year_created:
          type: string
          description: Year the airline was founded or created.
        base:
          type: string
          description: Base airport or hub.
        iata:
          type: string
          description: 2-character IATA airline code.
        icao:
          type: string
          description: 3-character ICAO airline code.
        fleet:
          type: object
          description: Object containing fleet information with aircraft type codes as keys and counts as values, plus a total field.
          properties:
            total:
              type: integer
              description: Total number of aircraft in the fleet.
          additionalProperties:
            type: integer
        logo_url:
          type: string
          description: URL to the airline's full logo image.
        brandmark_url:
          type: string
          description: URL to the airline's brandmark image.
        tail_logo_url:
          type: string
          description: URL to the airline's tail logo image.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
externalDocs:
  description: API Ninjas documentation
  url: https://api-ninjas.com/api