AIRPORT-INFO

Airport Info Retrieval Script Documentation

GET https://api.kosontechnology.com/airport.php

This API script is designed to retrieve information from the airport info database using provided parameters.

Path Parameters

NameTypeDescription

type

String

To specify the desired airport type.

iso_country

String

To specify the desired country.

iso_region

String

To specify the desired region within the selected country.

iata_code

String

To specify the desire iata_code.

gps_code

String

To specify the desire icao_code.

download

-

To download the json file.

This API script is designed to retrieve information from the airport info database using provided parameters. The script constructs the appropriate URL based on the parameters provided and then fetches data from the API. Please follow the instructions below to use this script effectively.

Usage

  1. Making an HTTP request via a web browser or API Platform etc. Postman.

  2. The following parameters are accepted:

NameDescriptionFormat

type

To specify the desired airport type.

  • Airport type. Etc. large_airport

iso_country

To specify the desired country.

  • Country ISO2 code. Etc. MY

iso_region

To specify the desired region within the selected country.

  • ISO2 Code of Country + ISO2 Code of State. Etc. MY_01

iata_code

To specify the desire iata_code.

  • Airport IATA code. Etc. KUL

gps_code

To specify the desire icao_code.

  • Airport ICAO code. Etc. WMKK

download

To download the JSON output

  • This parameter does not require the content, Leave empty or Type anything is acceptable

  1. Depending on the parameters provided, the script will construct a URL to fetch information from the Railway Trains - India API.

Parameter Guidelines

  • type Parameter:

    • If you provide a type parameter of airport type etc. 'large_airport', the script will retrieve the airport type.

    • There are 5 airport type in this parameter, which are Small_airport, Medium_airport, Large_airport, Closed and Heliport.

  • iso_country Parameter:

    • If you provide aniso_country parameter of country iso2 code etc. 'MY', the script will retrieve country iso2 code.

  • iso_region Parameter:

    • If you provide an iso_region parameter of region iso2 code etc. 'MY_01', the script will retrieve region iso2 code.

  • iata_code Parameter:

    • If you provide an iata_code parameter of iata_code etc. 'KUL', the script will retrieve airport IATA code.

  • gps_code Parameter:

    • If you provide a gps_code parameter of icao_code etc. 'WMKK', the script will retrieve airport ICAO code.

  • download Parameter:

    • If you want to download the JSON output of these parameter, define the parameter with empty or any input will able you to auto download it. See the download sample at here.

ISO2 Code

Refer this wikipedia to find your ISO2 Code.

Below is a sample how to find Malaysia ISO2 Code:

  1. Find Malaysia and you will see country code at the left column.

  1. Onclick on the code then Wikipedia with direct you to ISO 3166-2:MY where you can find its state code.

IATA & ICAO(GPS) Code

Refer this Wikipedia to find your IATA & ICAO(GPS) Code.

Below is a sample how to find Malaysia Airport IATA & ICAO(GPS) Code:

  1. Find Malaysia from the list of airports by country.

  1. Onclick on the code then Wikipedia with direct you to List of airports in Malaysia where you can find its IATA and ICAO(GPS) code.

Demo

Retrieve all airports data from Malaysia:

Retrieve all airports data from Malaysia and Johor State:

all Johor airport data in Malaysia

Retrieve airport data based on IATA code:

Retrieve airport data based on IATA(GPS) code:

Download

Add download at the back of the link to download the database in json format.

Last updated