API development for energy