Solar-Forecast.com (Developer Portal)

API Reference

Welcome to the REST API for Solar-Forecast. This solar PV power forecasting API provides multi-system and multi-array photovoltaic power forecasts URLs accept JSON request bodies where needed, return JSON responses, and use standard HTTP verbs and status codes.

Authenticate with your account api_key as a query parameter on every request. Path segments named {system_id} also accept your own identifier.

Prefer the quickstart if you are wiring up a first client.

Base URL
https://api.solar-forecast.com
Client libraries

Choose a language to update every code sample on this page.

Authentication

Pass your API key on every call as ?api_key=…. Keys are shown after you sign in. Regenerating a key invalidates the previous one immediately.

Rate Limit

Each account has a call quota of max_systems × 20 per update-frequency window. Exhausted quotas return HTTP 429 until the next refill.

  • When you are signed in, Try it out fills api_key for you.
  • Signed-in accounts can pick system_id or identifier from a dropdown. Provide one or the other, not both.
  • Examples below use YOUR_API_KEY.
Authenticated request

Core concepts

  • system_id — unique id created when you add a system.
  • identifier — your label for a site; accepted anywhere system_id is.
  • array_id — DC array index within a system (0, 1, …).
  • Power forecasts cover about 3 days of 15-minute intervals.

Single POST /v1/systems adds usually have a forecast within a minute. Bulk adds wait for the next forecast run (within ~15 minutes).

Response keys (forecast)
{
  "kWatt": { "2024-06-01 12:00:00": 3.41 },
  "clearsky_kWatt": { /* … */ },
  "array_0_kWatt": { /* … */ },
  "datetime_utc": { /* local → UTC */ },
  "system_info": [ /* rows */ ]
}

Errors

Invalid keys, missing ownership, or bad parameters return a JSON object with a status message (for example Invalid api key or Not Found). Rate limits use HTTP 429 with retry_after_seconds.

Example error
{
  "status": "Not Found"
}