The National Weather Service PHP library by Cristian Radu aims to simplify the access to the NWS REST API. To obtain weather data, users require PHP 5.3. To show a complete list of use cases for the library, developers can go to example.php. To retrieve forecast, they only need to use the methods based on latitude and longitude. And, to extract the weather data, they just need to use the model object methods. Under MIT license.
The Internet thrives on a variety of content--from cat pictures to blog posts--and a multitude of access methods, from APIs to telegrams. But none of it would exist without electricity powering all those clients, servers, and the network equipment in between. Now, the U.S. Energy Information Administration (EIA) has released an API detailing how and where American electric power is generated, sold, and used.
Sunlight Labs announced this week that 25 of 50 states are now integrated into its Open States API. This puts machine readable state legislative data covering approximately two thirds of the US population into the hands of developers. In addition to the expanded coverage, the team at Sunlight Labs has also been busy with improvements and new features.
The new Obama administration's focus on transparency and the recent economic crisis has given a great deal of attention on the value of online APIs for accessing government data. One of the latest examples comes from the Federal Reserve Bank of St. Louis who have recently released a new API to access their FRED database, a comprehensive collection of U.S. economic trends. The API also provides online access to ALFRED, an archive of historic economic data, which features information dating all the way back to the 1920s. We've added a FRED API Profile with technical details.