Art. 20 lit. e Directive 2019/944 for the internal market for electricity:
"if final customers request it, data on the electricity they fed into the grid and their electricity consumption data shall be made available to them, in accordance with the implementing acts adopted pursuant to Article 24, through a standardised communication interface or through remote access, or to a third party acting on their behalf, in an easily understandable format allowing them to compare offers on a like-for-like basis
[...]
For the purposes of point (e) of the first subparagraph, it shall be possible for final customers to retrieve their metering data or transmit them to another party at no additional cost and in accordance with their right to data portability under Union data protection rules."