How to get METAR data

Hi there! I have one idea i know it could be made, but i dont know how, if someone can help me. I am streaming via OBS to youtube, and i need to get my current OFP destination METAR data automaticaly. I can use streamer.bot wich could get that API fetched. Can someone explain me or at least point me in the right direction . I am older, but i love to learn keeps my brain busy. thank you

Hi, www.aviationweather.gov provides an easy-to-use API for this. For example, simply call the following URL:

https://aviationweather.gov/api/data/metar?ids=KJFK

Best regards,

Yeah i know that. You didnt understand me completely. I am streaming. And i want to fetch weather on arrival airport every 20min for example to be automated to show inside youtube stream chat, like automated message by streamer.bot software. i KNow i have ```
https://www.simbrief.com/api/xml.fetcher.php?username={username}&json=v2


I can do it by myself,m but i want it to be automated, to get that metar from my last simbrief fligth, the oine flight im currently flying

This is probably more suited to your use-case:

Regards,

Tim

No, in this case i must write the icao myself. In the simbrief case, i make an fetch of the metar data of the airpport i am currently flying to in case im flying last simbrief flight plan, the current one. So i would need to extract that info, from json, and its under weather/dest_metar on json file

But the dest_metar does not update, it’s whatever was current when you generated the OFP, so fetching it every 20 minutes is pointless.

Regards,

Tim