NOAA Weather API URL issues
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi everybody,
This is my first post, very exciting =)
I'm trying to get weather data using the NOAA api, but first I wanted to get a list of available cities for each country and I can't seem to come up with the correct URL.
I was able to retrieve data using the following URL:
I got back list of countries in the data set, but when I tried to get list of cities within a country (Austria in this example) using this URL:
I'm getting {}- empty massage.
I was also able to retrieve data for a specific zip code using this URL:
API documentation: https://www.ncdc.noaa.gov/cdo-web/webservices/v2#locations
Not sure what am I missing, I'll really appreciate your help.
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Liron_A,
Thanks for posting!
I have created a token for the API and if I use it with your workflow, I obtain 1000 records for "Download All Cities" and 197 records for "Country" (tested with 2018.3). Were these the results you were expected ?
Kind regards,
Paul Noirel
Sr Customer Support Engineer, Alteryx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @PaulN!
Thanks for your answer!
I was able to obtain the same records as you did, what I wanted to be able to get is a list of cities per selected country.
Something like this (only this one is not working):
https://www.ncdc.noaa.gov/cdo-web/api/v2/locations?datasetid=GHCND&locationcategoryid=CNTRY:austria&limit=1000
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @Liron_A,
I have managed to retrieve the stations of Austria using the following (FIPS-AU is the code for Austria):
https://www.ncdc.noaa.gov/cdo-web/api/v2/stations?locationid=FIPS:AU&limit=100&sortfield=mindate
Happy API testing with Alteryx !
Kind regards,
Paul Noirel
Sr Customer Engineer, Alteryx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
