I am trying to interface with the USGS elevation point query service API using Automate.
I am having difficulty troubleshooting the errors without seeing the HTTP request code being generated. Is there a way to view this information?
I have the API request working in Postman and Python; so, I believe my problem is how I am using Automate.
Link to the USGS API documentation: https://ned.usgs.gov/epqs/
Snip of the HTTP block inputs:
Compared to the HTTP code generated through Postman:
[[GET /epqs/pqs.php?x=-120.437001&y=36.701&units=Feet&output=json HTTP/1.1
Host: nationalmap.gov]]
@JohnAageAnderse that was it! I appreciate the help.
I suppose it was adding additional metadata headers which caused a problem for the USGS API.
Anyway, thanks again!
Hello @Anonymous
I tried it also using an HTTP action and got the error. From the browser it works. Looked into the settings for the action and turned on the option for Suppress workflow headers.
After doing that, the HTTP action worked and I got the result 🙂
Kind regards, John
Thank you for giving this a try. You described the same error I receive when running the request from flow.
From everything I've read on the USGS website, there are no licensing requirements/API key or anything like that.
Do you know anything about viewing the outgoing request from flow? I suspect the request is being compiled incorrectly.
Hi @Anonymous ,
I am not sure why it is not working while it works from Postman. I am getting error while I try to hit the same url from flow. Getting Source url cannot be found. Is there any restriction or licensing requirement for us to hit the url
Thanks
WarrenBelz
146,522
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,890
Most Valuable Professional