# Airport Code Converter API

> Airport Code Converter is an IATA code API that converts between 3-letter IATA and 4-letter ICAO airport codes. Submit either identifier to receive the matching code, official airport name, city, state, and country code.

**Endpoint:** `GET https://api.apiverve.com/v1/airportcodeconverter`  
**Category:** Transportation  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/airportcodeconverter

## Overview

Airport Code Converter automatically detects whether you've submitted an IATA or ICAO code based on length, then returns the corresponding code in the other format. Uses a comprehensive database of 40,000+ airports worldwide.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/airportcodeconverter?code=MCI" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `code` | string | Yes | The airport code to convert (IATA: 3 letters, ICAO: 4 letters) |

## Response fields

- `input` — string · Original airport code provided in request
- `inputType` — string · Detected input code format (IATA or ICAO)
- `iata` — string · Three-letter IATA airport code
- `icao` — string · Four-letter ICAO airport code
- `name` — string · Official airport name
- `city` — string · City where airport is located
- `state` — string · State or province where airport is located
- `country` — string · Country code (ISO 3166-1 alpha-2)
- `elevation` — number · Airport elevation in feet above sea level · (premium)
- `latitude` — number · Airport latitude coordinate · (premium)
- `longitude` — number · Airport longitude coordinate · (premium)
- `timezone` — string · Airport timezone (e.g., America/Chicago) · (premium)
- `found` — boolean · Whether airport code was found in database

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "input": "MCI",
    "inputType": "IATA",
    "iata": "MCI",
    "icao": "KMCI",
    "name": "Kansas City International Airport",
    "city": "Kansas City",
    "state": "Missouri",
    "country": "US",
    "elevation": 1026,
    "latitude": 39.2976,
    "longitude": -94.7139,
    "timezone": "America/Chicago",
    "found": true
  }
}
```

## Use cases

- **Flight Systems** — Convert between IATA and ICAO codes for flight booking systems and aviation applications
- **Data Integration** — Normalize airport codes when integrating data from different aviation sources
- **Travel Apps** — Display both IATA and ICAO codes to users for comprehensive airport identification

## SDKs

- **npm** — `npm install @apiverve/airportcodeconverter` (https://www.npmjs.com/package/@apiverve/airportcodeconverter)
- **PyPI** — `pip install apiverve-airportcodeconverter` (https://pypi.org/project/apiverve-airportcodeconverter/)
- **NuGet** — `dotnet add package APIVerve.API.AirportCodeConverter` (https://www.nuget.org/packages/APIVerve.API.AirportCodeConverter)
- **Source** — https://github.com/apiverve/airportcodeconverter-api

## More

- Full reference: https://docs.apiverve.com/ref/airportcodeconverter
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
