From the course: Learning Cloud Service APIs

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Monitoring national weather

Monitoring national weather

Many different varieties of apps need up-to-the-minute weather details in a specified location and, most importantly, the information has to be reliable. The U.S. Government runs a very comprehensive meteorological operation with full forecasting capabilities. And, lucky for app builders, you can pull a ton of relevant details from their servers with just a little bit of know-how. To get started incorporating weather details into your app, go to graphical.weather.gov/xml/rest.php. Unlike almost every other API covered in this course, you don't have to register as a developer and there is no API key necessary. It's a straightforward HTTP rest interface which you can address directly. The basic URL to use for your request is shown here on the screen. Right at the very end, you'll see ndfdXMLclient.php. Ndfd is the abbreviation for the National Digital Forecast Database. So, I'm going to copy this url, and then go to my browser, open a new tab, and paste it in. Now, if we leave it as it…

Contents