ESIOS API is a service provided by the Spanish electricity system operator (REE) that offers access to a wide range of data related to the electricity market in Spain.
This library provides a simple interface to download and preprocess the data from the ESIOS API.
pip install python-esiosAsk for a personal token to access the ESIOS API following the instructions from REE.
TOKEN = '343sdfewe342309gjarijgwoiret834383434524...'
TOKEN = '<YOUR_TOKEN>'Then, set the token in the environment variable ESIOS_API_KEY.
import os
os.environ['ESIOS_API_KEY'] = TOKENfrom esios import ESIOSClient
client = ESIOSClient()endpoint = client.endpoint(name=?)In the tutorials below, you will learn how to download, preprocess, and visualize the data from the following endpoints: