API Collection
Koson Technology
  • COUNTRY-STATE-CITY
  • INDIA-RAILWAY-TRAIN
  • SHANGHAI METRO API
    • All Line Number
    • All Line Timetable
    • Last Line Timetable
    • Line History
    • Line Colour
    • All Station Information
    • Search Station With Line
    • Search Station With Station ID
    • Search Station With Station Name
    • Last Station Timetable
    • Estimate Arrival Time
    • Check Price
    • Check Route
  • AIRPORT-INFO
  • INDIA-HOTEL
  • HK-FERRY-ROUTE
  • FLIGHT-TRACK
  • MALAYSIA-STATES
  • SINGAPORE-BUS
Powered by GitBook
On this page
  • Usage
  • Parameter Guidelines
  • ISO2 Code
  • IATA & ICAO(GPS) Code
  • Demo
  • Download

AIRPORT-INFO

Airport Info Retrieval Script Documentation

PreviousCheck RouteNextINDIA-HOTEL

Last updated 1 year ago

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

Name
Type
Description

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. .

  2. The following parameters are accepted:

Name
Description
Format

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:

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.

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.

Demo

Retrieve all airports data from Malaysia:

Retrieve all airports data from Malaysia and Johor State:

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.

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 .

Refer this to find your ISO2 Code.

Onclick on the code then Wikipedia with direct you to where you can find its state code.

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

Onclick on the code then Wikipedia with direct you to where you can find its IATA and ICAO(GPS) code.

Postman
wikipedia
ISO 3166-2:MY
Wikipedia
List of airports in Malaysia
here
https://api.kosontechnology.com/airport.php?iso_country=MY
all Malaysia airport data
https://api.kosontechnology.com/airport.php?iso_country=MY&iso_region=MY-01
all Johor airport data in Malaysia
https://api.kosontechnology.com/airport.php?iata_code=KUL
Kuala Lumpur International Airport data
Beijing Xijiao Airport
download Malaysia airport data
https://api.kosontechnology.com/airport.php?gps_code=ZBBB
https://api.kosontechnology.com/airport.php?iso_country=MY&downloadapi.kosontechnology.com
'MY' is Malaysia's ISO2 Country Code
'MY-01' is Johor's ISO2 Region Code
List of airports by country
'AOR" is the IATA Code and 'WMKA' is the GPS code.