Method: afld - search_code
Search for an airfield based on a code. The Spottingmode database contains IATA, ICAO, FAA and TC codes. Every search may be done on all of the codes, or only on one of them.
- Entry point:
- afld
- Method name:
- search_code
- Url:
- https://www.spottingmode.com/api/afld/search_code/
create an url with the url creator tool - Daily limit:
- 2.000
- Weekly limit:
- -
- Monthly limit:
- -
- Authentication required:
- Api key
Method parameters
Name | Type | Optional | Description |
---|---|---|---|
code | string | The code to search on. Only exact matches will be returned. This parameter is case insensitive. | |
code_type | string | optional | The code type to search on, values may be IATA, ICAO, FAA or TC. This parameter is case insensitive. |
Method response
Response formats available for this method: json, xml
json
{"airfields": [ { "airport_id": "3835", "airport_name": "Amsterdam Airport Schiphol", "lng": "4.76600647", "lat": "52.30847931", "status": "Civil", "airport_type": "Airport", "country_name": "The Netherlands", "secondary_names": "", "former_names": "", "codes":[ { "code": "EHAM", "code_type": "ICAO" },{ "code": "AMS", "code_type": "IATA" }], "url": "http:\/\/www.spottingmode.com\/airfields\/airport\/3835\/" }] }xml
<root> <airfields> <airfield> <airport_id>3835</airport_id> <airport_name>Amsterdam Airport Schiphol</airport_name> <lng>4.76600647</lng> <lat>52.30847931</lat> <status>Civil</status> <airport_type>Airport</airport_type> <country_name>The Netherlands</country_name> <secondary_names></secondary_names> <former_names></former_names> <codes> <code> <code>EHAM</code> <code_type>ICAO</code_type> </code> <code> <code>AMS</code> <code_type>IATA</code_type> </code> </codes> <url>http://www.spottingmode.com/airfields/airport/3835/</url> </airfield> </airfields> </root>