How do I use the WX API to get the current ATIS, METAR, or TAF information for a SayIntentions.AI pilot?

Created by SayIntentions Support, Modified on Mon, 26 Aug at 7:52 PM by SayIntentions Support

First, you'll need the pilot's API key (the pilot can obtain this from the pilot portal, under their accounts page).


Next, issue a simple HTTP GET request with the "key" and the "icao" of the airport as parameters, to our WX endpoint.


Example:  GET https://portal.sayintentions.ai/api/mep/getWX?key=si1MNy62rkg&icao=KSLC


The result is a JSON-formatted string with the METAR, TAF, and and ATIS that are currently applicable to the pilot. 


{

  "taf": "KSLC 212320Z 2200/2306 35013G23KT P6SM FEW120   FM220100 33007KT P6SM FEW120   FM220400 15008KT P6SM SKC   FM221500 18014G24KT P6SM FEW080 SCT120   FM222000 18014G24KT P6SM VCSH SCT080 SCT100",

  "metar": "KSLC 212354Z 36015G21KT 10SM FEW120 FEW250 32/M04 A2997 RMK AO2 SLP084 T03221039 10333 20322 56014",

  "atis": "Salt Lake City International airport, information Juliet. 2354 Zulu. Wind 360 at 15. Visibility 10. Sky Conditions: Few at 12000ft. Few at 25000ft. Temperature 32. Dewpoint -4. altimeter 2997. Arriving and departing runways 34R, 34L, 35. Visual approaches in use. Advise on course heading, altitude, and if flight following is requested. Readback all runway and hold short instructions. VFR departures contact clearance delivery on 127.3 Advise on initial contact you have information Juliet."

}

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article