Sites
Get reference times
Get the reference times of the forecasts
To get the reference times of the forecasts, use the following python code:
import requests
site_id = 'Put the site ID here'
url = f'https://api.rebase.energy/platform/v2/sites/{site_id}/forecast/ref_times'
response = requests.get(url=url, headers=headers)
response.raise_for_status()
response = response.json()
Response example
[
"2024-07-02T00:00Z",
"2024-07-02T06:00Z",
"2024-07-02T12:00Z",
"2024-07-02T18:00Z",
"2024-07-03T00:00Z"
]