Skip to content
GET /v1/solar

Daily solar irradiance over a date range

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/solar-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/solar-api/v1/solar" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/solar-api/v1/solar", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/solar-api/v1/solar");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/solar-api/v1/solar",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "end": "20230831",
        "start": "20230601",
        "location": {
            "lat": 52.52,
            "lon": 13.41
        },
        "parameters": {
            "ALLSKY_KT": {
                "name": "Clearness index",
                "daily": {
                    "20230601": 0.64,
                    "20230602": 0.57,
                    "20230603": 0.72,
                    "20230604": 0.68,
                    "20230605": 0.64,
                    "20230606": 0.38,
                    "20230607": 0.48,
                    "20230608": 0.48,
                    "20230609": 0.58,
                    "20230610": 0.53,
                    "20230611": 0.63,
                    "20230612": 0.61,
                    "20230613": 0.57,
                    "20230614": 0.44,
                    "20230615": 0.4,
                    "20230616": 0.27,
                    "20230617": 0.39,
                    "20230618": 0.56,
                    "20230619": 0.31,
                    "20230620": 0.31,
                    "20230621": 0.49,
                    "20230622": 0.48,
                    "20230623": 0.08,
                    "20230624": 0.64,
                    "20230625": 0.4,
                    "20230626": 0.49,
                    "20230627": 0.48,
                    "20230628": 0.52,
                    "20230629": 0.39,
                    "20230630": 0.15,
                    "20230701": 0.4,
                    "20230702": 0.47,
                    "20230703": 0.42,
                    "20230704": 0.48,
                    "20230705": 0.39,
                    "20230706": 0.47,
                    "20230707": 0.66,
                    "20230708": 0.67,
                    "20230709": 0.62,
                    "20230710": 0.42,
                    "20230711": 0.63,
                    "20230712": 0.47,
                    "20230713": 0.5,
                    "20230714": 0.54,
                    "20230715": 0.53,
                    "20230716": 0.56,
                    "20230717": 0.53,
                    "20230718": 0.56,
                    "20230719": 0.37,
                    "20230720": 0.41,
                    "20230721": 0.28,
                    "20230722": 0.45,
                    "20230723": 0.34,
                    "20230724": 0.42,
                    "20230725": 0.43,
                    "20230726": 0.48,
                    "20230727": 0.29,
                    "20230728": 0.35,
                    "20230729": 0.32,
                    "20230730": 0.46,
                    "20230731": 0.24,
                    "20230801": 0.35,
                    "20230802": 0.4,
                    "20230803": 0.37,
                    "20230804": 0.46,
                    "20230805": 0.44,
                    "20230806": 0.22,
                    "20230807": 0.39,
                    "20230808": 0.4,
                    "20230809": 0.49,
                    "20230810": 0.53,
                    "20230811":
…