custom energy API