Alteryx designer Discussions

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

NOAA Weather API issues

Highlighted
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

Highlighted

@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!

Meteor

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

Highlighted

@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