As mentioned earlier, "auth" is used as a protection against others just copying your code for use and you getting billed for it. This is all behind the signs so just know it's protecting you. The auth field will need to be filled in for any endpoint you wish to use. Enter "authairport567" into the auth field and click the gold Authorize button.
Below the auth field you will see the values you can pass into the query. For the example shown below, we want the Airport Details for Los Angeles International Airport so we enter the ICAO ID, KLAX, in the field. You can also enter LAX which is used for the IATA and FAA ID to get the same results.
It should be noted that there may be cases where there are multiple airports containing the same string across the IDs such as GNB. Go perform a search on GNB at
https://airportguide.com/search/airport-search/ to see what I mean; there are 5 airports containing GNB in the ID.
Now choose your application under the REQUEST HEADERS section. This is basically your personal app that you will use the API under. If you haven't created an app yet then do it now under the pulldown menu labeled Default Application.
You are just about there!
Copy the code from the REQUEST EXAMPLE box on the right and put it in a text editor for future use. For this example, it is
// These code snippets use an open-source library. http://unirest.io/php
$response = Unirest\Request::get("https://forteweb-airportguide-airport-basic-info-v1.p.mashape.com/get_airport?auth=authairport567&airport_id=KLAX",
array(
"X-Mashape-Key" => "4tMjSwOQgEmshCdnjx7LLdXyigw3p12S9VCjsnFbtOLuLD4Ltm",
"Accept" => "application/json"
)
);