PWS Data access via API

  • 4
  • Problem
  • Updated 2 months ago
with the now 4 month old decision to discontinue free API access, as a PWS owner I am without a way to easily pull data from my own station, and am specifically trying to leverage my Alexa to display and report this data. 

Any assistance you can offer in accessing the data I'm freely sharing with you is much appreciated.
Photo of MattSTKC

MattSTKC

  • 4 Posts
  • 1 Reply Like

Posted 6 months ago

  • 4
Photo of bitwalker

bitwalker

  • 9 Posts
  • 3 Reply Likes
Matt, as PWS owner you will get free access to a new API soon.

If will offer:
  • Current observations from the PWS network
  • 5 day daily forecast
  • PWS historical data
  • PWS lookup by geocode, zip code and location
  • Call volume: 1500/day, 30/minute
So, you can still pull data from your own station and report/display it somewhere else.
Exact details should be announced soon. The old API will stay available for a while longer.
(Edited)
Photo of bitwalker

bitwalker

  • 9 Posts
  • 3 Reply Likes
1) Based on what was posted in other threads, something is probably going to be announced this week and then we will hopefully know. They've obviously missed their deadline for the new PWS API before. The risk of announcing an end date for an old legacy product before having a replacement ready for production.
2) Yes and afterwards for a while, so there will be overlap once it is live.
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 566 Posts
  • 81 Reply Likes
I have a clone!  Thanks guys!

Victoria Gardner
victoria.gardner@ibm.com
Photo of Al Macklin

Al Macklin

  • 1 Post
  • 0 Reply Likes
As a paid member and a supplier of accurate WS data for 10 years I hope there will be a free key soon. If there is a free key available how does one go about getting it? 
Photo of Paul Grace

Paul Grace

  • 3 Posts
  • 3 Reply Likes
If you are uploading from your PWS go here...

If you have any issues, contact Victoria in the comment just above yours...


https://www.wunderground.com/member/api-keys
(Edited)
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 566 Posts
  • 81 Reply Likes
Al, you can find directions for getting a new API key in the first response to this post:  https://apicommunity.wunderground.com/weatherapi/topics/end-of-feb-wu-api-update

If you have difficulties, please let me know.

Victoria Gardner
victoria.gardner@ibm.com
Photo of MattSTKC

MattSTKC

  • 4 Posts
  • 1 Reply Like
Great. If I didn’t have an api key before now though I’ll have to wait for the new one yes?
Photo of MattSTKC

MattSTKC

  • 4 Posts
  • 1 Reply Like
Yeah Glennon and with the WU API there was a skill that worked for my Rainwise but with the impending shutoff it’ll neuter it until there’s another data call option.
Photo of Glennon Poirier

Glennon Poirier

  • 2 Posts
  • 0 Reply Likes
I use https://www.pwsweather.com/ to send information to my Rachio sprinkler controller. Maybe that works with Rainwise?
Photo of Austin Ward

Austin Ward

  • 2 Posts
  • 0 Reply Likes
ok I didn't know about.... or I forgot about an api key. I have a pws and an api key that I accessed with the link that paul grace provided above.... sooooo what does it do... I see packages..... am I suppose to use the key and to purchase a package that I would desire? Guess I am late to the party. 
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 566 Posts
  • 81 Reply Likes
Hi, Austin!

The new PWS API key does this:
• Current observations from the PWS network
• 5 day daily forecast
• PWS historical data
• PWS lookup by geocode, zip code and location
• Call volume: 1500/day, 30/minute

The documentation for the APIs are here:  https://docs.google.com/document/d/1eKCnKXI9xnoMGRRzOL1xPCBihNV2rOet08qpE_gArAY/edit

The key is free of charge.  No packages to purchase, no fees to pay, nada, nunca, hichi, nothing.  Just write the calls and use the data.

Victoria Gardner
victoria.gardner@ibm.com
Photo of Austin Ward

Austin Ward

  • 2 Posts
  • 0 Reply Likes
Did the update speed change on the wunderground dashboard? it used to update every 18 seconds. But now I have to hit refresh for it to update. 
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 604 Posts
  • 84 Reply Likes
If you have a PWS uploading to Weather Underground, but do not have an API key, you can send me your PWS id and let me know you'd like to get added to my email list to hear when the new keys are available.  

Victoria Gardner
victoria.gardner@ibm.com

Photo of Richard Nasto

Richard Nasto

  • 1 Post
  • 0 Reply Likes
I am new to the forum, so please excuse the lack of continuity.  I have been using my PWS for about 2 years and it's been uploading to WU for that time as well.  I wanted to pull info from my PWS for use on a personal "kiosk" to display my calendar, weather, etc.  Do I need an API for that?  If so, I will need one...how can I get one (since it seems there's been a lot of back and forth on this)...and, since it's just for my pulling data, is it free?  Thanks for the help...Rich
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 581 Posts
  • 82 Reply Likes
Hi, Richard!

One way to access that data is through the API, yes.  And yes, it is free for PWS uploaders.

To see how to get a key, please see the first response to this post on the forum:  https://apicommunity.wunderground.com/weatherapi/topics/end-of-feb-wu-api-update

Victoria Gardner
victoria.gardner@ibm.com
Photo of GlassBird Productions

GlassBird Productions

  • 1 Post
  • 0 Reply Likes
Hi

I am a PWS uploader and after check api documentation I find something strange. There is no decimal data for metric measures? temperature in celsius with no decimal info is absolute useless. Maybe  I not realize and I am not understanding well api documentation. For another hand, if I want to get max or min data for a entire month the only way is make a request to each day of the month and then check day by day.

Could you help me with this?

Thank you so much
(Edited)
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 554 Posts
  • 77 Reply Likes
Yes, there has been some discussion about this in one of the other threads.  We're hoping to have added precision for at least temperature to the API by the end of April.  

If you're trying to do monthly min/max on your own PWS, wouldn't it be easier to capture this on the way out?  Are you storing your own data?  

But if you're not capturing your own data on the way out, there is a 7-day historical data (see https://docs.google.com/document/d/16OCuOFUWG0CaZL3MjrvZhyZ4Y5zRsZ6otVInRPzPnFs/edit), which gives a high/low for the period.  

But if you want the exact high/low for the exact day in a calendar month for your own PWS, I would store it for each day and then compute as you go.  But perhaps I'm not grasping your use case.

--Victoria
Photo of Claude Felizardo

Claude Felizardo

  • 27 Posts
  • 6 Reply Likes
I use WU to confirm that my data is actually getting out.  I do capture data as it is collected but if there's a problem reaching the internet due to a router or ISP problem then checking my database won't help.  I also have a cronjob that runs in the late afternoon sends me a text and email of the HI/LO which includes links to check CWOP and WU web sites.
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 554 Posts
  • 77 Reply Likes
The new PWS API is not going to be everything for everyone.  This may be one instance in which there isn't going to be a quick API call to answer the question.

--Victoria
Photo of Tom Rebman

Tom Rebman

  • 3 Posts
  • 0 Reply Likes
Hi Victoria,

Also a newbie here, so excuse if this has been already addressed.  In the API document you reference above, it indicates that PWS API should allow us to get forecast... however, when I send that request, I am getting 401 Unauthorized response.   Any insight as to why I'm not able to get forecasts?


Thanks,
-- Tom

Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 576 Posts
  • 81 Reply Likes
The PWS API has access to the 5-day forecast.  Many people have been confused by the documentation also mentioning other time lengths.  Only 5-day will work.  

If you are already only calling 5-day, please feel free to send me your call directly (with your API key removed), and I can help debug it.  Be sure to tell me why you're sending it, as I get a lot of mail and I don't always connect the dots between conversations in different platforms.

Or you can ask here (again, without exposing your API key).  

--Victoria
victoria.gardner@ibm.com
Photo of Tom Rebman

Tom Rebman

  • 3 Posts
  • 0 Reply Likes
Worked like a champ.  Thanks for the quick reply.  Of course I had tried the 7 day and 3 day previously :)

Warm regards,
-- Tom
Photo of Victoria Gardner

Victoria Gardner, Official Rep

  • 576 Posts
  • 81 Reply Likes
=)  Always.  There must be a rule:  no matter what you try, the correct result is the last one.

--Victoria