It is fall when the weather becomes colder, and people start firing up their furnaces. While I was working on putting in more insulation and installing a programmable thermostat, I wondered if the federal government has an API to help me lower my utility bills. Yes, and it is a great API! The Department of Energy (through the Lawrence Berkley National Laboratory) has the Home Energy Saver API which is a comprehensive service to analyze home energy use.
Visit the online Home Energy Saver (HES) application to understand how the service works. A user starts by describing his or her property by listing the address, age of the house, and the number of occupants. The user can also give more details such as the shape of the house, insulation, air leakage, and other structural factors. The user is then given a detailed list of recommendations to improve his or her house. HES then calculates the difference between current energy costs and estimated cost savings if the user implements suggested recommendations such as adding more insulation or installing new windows.
Implementing the API is simple. The developer requests a key to use the API and then can access various API methods through SOAP using PHP, JAVA, or C#.NET. The HES API is well-documented and offers many ways to customize the calculations and reports. The HES website itself uses the API to make calculations and present reports. There are also a number of third-party applications that use the API, which developers can view in the Project Gallery.
HES is a perfect example of using federal data and research to help citizens directly. Thanks to this API, people can save hundreds (or thousands) of dollars on their energy costs while helping the environment by lowering their carbon footprint. The only suggestion I have is to implement JSON for the Home Energy Saver API so that even more great energy-saving and money-saving apps can be built.
*API – Application Programming Interface. How software programs and databases share data and functions with each other. Check out APIs in Government for more information. Each week in “The API Briefing,” I will showcase government APIs and the latest API news and trends. Visit this blog every week to learn how government APIs are transforming government and improving government services for the American people. If you have ideas for a topic or have questions about APIs, please contact me via email.
Dr. William A. Brantley, PMP, is a Program Analyst, in Forecasting and Methods at the U.S. Office of Personnel Management (OPM). You can find out more about his work in this space at BillBrantley.com.Edit