To download the site capacity time series, 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}/capacity'

start_date = pd.to_datetime('2023-01-01T00:00').strftime('%Y-%m-%d %H:%M')
end_date = pd.to_datetime('2024-01-01T00:00').strftime('%Y-%m-%d %H:%M')
freq = '1h'

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

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