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
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
Making an HTTP request via a web browser or API Platform etc. Postman.
The following parameters are accepted:
Name | Description | Format |
---|---|---|
type | To specify the desired airport type. |
|
iso_country | To specify the desired country. |
|
iso_region | To specify the desired region within the selected country. |
|
iata_code | To specify the desire iata_code. |
|
gps_code | To specify the desire icao_code. |
|
download | To download the JSON output |
|
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 an
iso_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:
Find Malaysia and you will see country code at the left column.
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:
Find Malaysia from the list of airports by country.
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:
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