Access to the Netherlands forecast is provided through the Quartz Solar Sites API. In order to access the forecast and member from Quartz Solar will need to grant you access. Please reach out to [email protected] for any questions regarding access.
Authentication is handled via bearer tokens. You can use your existing access token, and the retrieval process is identical to the one used for the UK national forecast.
Instructions on how to retrieve your access token
To retrieve the forecast, make a GET request to the pv_forecast endpoint, using the specific site_uuid for the Netherlands national forecast. The Site API endpoints are documented here and here (swagger).
/sites/{site_uuid}/pv_forecast22c63590-8065-4237-b665-42c6a4fc22ccExample Python Script:
import requests
import os
access_token = "INSERT TOKEN FROM STEP 1"
site_uuid = "22c63590-8065-4237-b665-42c6a4fc22cc"
url = f"<https://api-site.quartz.solar/sites/{site_uuid}/pv_forecast>"
headers = {"Authorization": f"Bearer {access_token}"}
response = requests.get(url, headers=headers)
forecast_data = response.json()
print(forecast_data)
This data is returned as a JSON object with:
Metadata: