real-time energy APIs