You can query any data available on the Open Data Portal via API.
Elia recommends that you use the API Explore v2. It is organized around REST and provides access to all the data available through the portal in a coherent, hierarchical way. You can find more information on the Explorer API v2 - user guide.