How to get history data for WMO ID?

  • 1
  • Question
  • Updated 1 year ago
First, thank you for everything WU - I very much appreciate your API being available :)

Now to my question...  I'm trying to get data for WMO weather station, querying by WMO ID.  I'll use the data for 03609 on Jan 1st 2017 as an example:

It is clear from the following URL that the data for 03609 is in the system somewhere:

https://www.wunderground.com/history/station/03609/2017/01/01/DailyHistory.html

The first SYNOP report shown on that page is
AAXX 27234 03609 46/// /0627 10063 20055 39749 49800 58114 333 90710 91136
and, as the second 5-digit block is 03609, I can see that the system is returning data for the correct station.

But I can't find a way to get history data for that station through the API.  If I use a zmw in the query like:

http://api.wunderground.com/api/api_key_here/history_20170101/q/zmw:00000.1.03609.json

I can see from the SYNOP reports that it's returning data for another WMO station - 03605.  For example, the first SYNOP report is:
AAXX 01004 03605 16666 /2314 10098 20082 30212 40221 57027 60001 333 87/33
showing that it's from WMO 03605, not 03609.

If I do like:

http://api.wunderground.com/api/api_key_here/history_20170101/q/03609.json

then the 03609 gets treated as a US zip code and I get back data from a station on a different continent.

With ICAO codes I can query like /q/icao:KNYC to get data from a specific station...

How can I do similarly for WMO codes?
Photo of Martin

Martin

  • 1 Post
  • 0 Reply Likes

Posted 1 year ago

  • 1

Be the first to post a reply!