To download the measured data (that have been previously uploaded) from the Rebase Platform, use the following python code:

import requests
import pandas as pd

site_id = 'Put the site ID here' 

url = f'https://api.rebase.energy/platform/v2/sites/{site_id}/actual'

start_date = pd.to_datetime('2024-08-01T00:00').strftime('%Y-%m-%d %H:%M')
end_date = pd.to_datetime('2024-08-01T04:00').strftime('%Y-%m-%d %H:%M')
tz = 'UTC'

params={
	'start_date': start_date,
	'end_date': end_date,
	'tz': tz
}

response = requests.get(url=url, headers=headers, params=params)
response.raise_for_status()
response = response.json()

Response example

{
    "valid_time": [
        "2024-08-01T00:00:00+0000",
        "2024-08-01T01:00:00+0000",
        "2024-08-01T02:00:00+0000",
        "2024-08-01T03:00:00+0000",
        "2024-08-01T04:00:00+0000"
    ],
    "values": [
        50.6,
        52.9,
        64.7,
        66.6,
        70.2
    ]
}