Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

NOAA Weather API issues

mreinsch
7 - Meteor

Hi I am getting different outputs when I hit this API. Sometimes the JSON build works and sometimes it does not build anything. If anyone has any idea on why this happens I would appreciate greatly. I am attaching the workflow and the two outputs I am getting from the download tool.

 

Thanks

Matt

3 REPLIES 3
patrick_digan
17 - Castor
17 - Castor

@mreinsch According to their API documentation, it looks like you can specify that you want the JSON back by adding an accept header. I've added the header in the attached. The default should be JSON anyway, so it's interesting that something funny must be going on at their end that it would ever give you non-JSON back. 

 

I also added a select tool after the JSON parse to deselect the download data since it was creating a massive temp file and slowing the process down.

 

Hope that helps!

mreinsch
7 - Meteor

Thanks @patrick_digan , should of spent more time in the documentation. This works great for me.

patrick_digan
17 - Castor
17 - Castor

@mreinsch Glad I could help! Sometimes a set of fresh eyes is all a problem needs.  This reminded me of @MarqueeCrew's post a while back where he spent too much time trying to solve the problem himself instead of asking the community for input.

Labels