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={key}&icao={icao}
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
Feedback sent
We appreciate your effort and will try to fix the article