{
  "openapi": "3.0.1",
  "info": {
    "title": "Solar Irradiance and PV Power Forecast API with TMY: Solcast",
    "description": "Solar irradiance API for GHI, DNI, DHI, GTI and weather plus rooftop and utility PV power: 14 day forecasts, live estimated actuals, history from 2007, TMY P50 to P95 and horizon angles for any latitude and longitude through the Solcast API. Bring your own key.",
    "version": "0.1",
    "x-build-id": "51gsGc2nY3dlOjwfZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~solar-irradiance-pv-forecast-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-solar-irradiance-pv-forecast-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/nabeelbaghoor~solar-irradiance-pv-forecast-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-solar-irradiance-pv-forecast-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/nabeelbaghoor~solar-irradiance-pv-forecast-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-solar-irradiance-pv-forecast-api",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "What to read",
            "enum": [
              "forecastIrradiance",
              "liveIrradiance",
              "historicIrradiance",
              "tmyIrradiance",
              "forecastRooftopPv",
              "liveRooftopPv",
              "historicRooftopPv",
              "tmyRooftopPv",
              "forecastAdvancedPv",
              "liveAdvancedPv",
              "historicAdvancedPv",
              "tmyAdvancedPv",
              "horizonAngles"
            ],
            "type": "string",
            "description": "Each mode calls one documented Solcast read endpoint. Irradiance and rooftop PV modes take coordinates; advanced PV modes take the resource ID of a PV site already set up in your Solcast account; horizon angles take coordinates. Your Solcast plan must include the product.",
            "default": "forecastIrradiance"
          },
          "locations": {
            "title": "Locations (latitude,longitude)",
            "type": "array",
            "description": "Irradiance, rooftop PV and horizon modes. One latitude,longitude pair in decimal degrees per line. -33.8567,151.2152 (Sydney Opera House) is a Solcast unmetered test location that does not use up your requests.",
            "items": {
              "type": "string"
            }
          },
          "resourceIds": {
            "title": "Advanced PV resource IDs",
            "type": "array",
            "description": "Advanced PV modes. The resource ID of each PV power site configured in your Solcast account, one per line. ba75-e17a-7374-95ed is the unmetered Sydney test site.",
            "items": {
              "type": "string"
            }
          },
          "outputParameters": {
            "title": "Output parameters",
            "type": "array",
            "description": "Optional. The variables to return. Irradiance modes take the weather and irradiance parameters (percentiles ending in 10 or 90 only on the forecast); rooftop PV modes take pv_power_rooftop; advanced PV modes take pv_power_advanced. Leave empty for the API default set. The prefilled irradiance set is ignored by PV modes.",
            "items": {
              "type": "string",
              "enum": [
                "air_temp",
                "albedo",
                "azimuth",
                "clearsky_dhi",
                "clearsky_dni",
                "clearsky_ghi",
                "clearsky_gti",
                "cloud_opacity",
                "dewpoint_temp",
                "dhi",
                "dni",
                "ghi",
                "gti",
                "precipitable_water",
                "precipitation_rate",
                "relative_humidity",
                "surface_pressure",
                "snow_soiling_rooftop",
                "snow_soiling_ground",
                "wind_direction_100m",
                "wind_direction_10m",
                "wind_speed_100m",
                "wind_speed_10m",
                "zenith",
                "snow_depth",
                "snow_water_equivalent",
                "snowfall_rate",
                "wind_gust",
                "cape",
                "weather_type",
                "min_air_temp",
                "max_air_temp",
                "pm10",
                "pm2.5",
                "cloud_opacity10",
                "cloud_opacity90",
                "dhi10",
                "dhi90",
                "dni10",
                "dni90",
                "ghi10",
                "ghi90",
                "gti10",
                "gti90",
                "pv_power_rooftop",
                "pv_power_rooftop10",
                "pv_power_rooftop90",
                "pv_power_advanced",
                "pv_power_advanced10",
                "pv_power_advanced90"
              ],
              "enumTitles": [
                "air_temp: air temperature at 2 m (C)",
                "albedo: surface reflectivity (0 to 1)",
                "azimuth: solar azimuth angle (degrees)",
                "clearsky_dhi: clear sky diffuse horizontal irradiance",
                "clearsky_dni: clear sky direct normal irradiance",
                "clearsky_ghi: clear sky global horizontal irradiance",
                "clearsky_gti: clear sky global tilted irradiance",
                "cloud_opacity: cloud opacity (%)",
                "dewpoint_temp: dewpoint temperature (C)",
                "dhi: diffuse horizontal irradiance (W/m2)",
                "dni: direct normal irradiance (W/m2)",
                "ghi: global horizontal irradiance (W/m2)",
                "gti: global tilted irradiance (W/m2)",
                "precipitable_water: precipitable water (kg/m2)",
                "precipitation_rate: precipitation rate (mm/h)",
                "relative_humidity: relative humidity (%)",
                "surface_pressure: surface pressure (hPa)",
                "snow_soiling_rooftop: rooftop snow soiling loss (%)",
                "snow_soiling_ground: ground mounted snow soiling loss (%)",
                "wind_direction_100m: wind direction at 100 m",
                "wind_direction_10m: wind direction at 10 m",
                "wind_speed_100m: wind speed at 100 m (m/s)",
                "wind_speed_10m: wind speed at 10 m (m/s)",
                "zenith: solar zenith angle (degrees)",
                "snow_depth: snow depth (cm)",
                "snow_water_equivalent: snow water equivalent (cm)",
                "snowfall_rate: snowfall rate (cm/h)",
                "wind_gust: wind gust",
                "cape: convective available potential energy (J/kg)",
                "weather_type: weather category",
                "min_air_temp: daily minimum air temperature",
                "max_air_temp: daily maximum air temperature",
                "pm10: particulate matter under 10 micrometres",
                "pm2.5: particulate matter under 2.5 micrometres",
                "cloud_opacity10: cloud_opacity forecast, 10th percentile (forecast only)",
                "cloud_opacity90: cloud_opacity forecast, 90th percentile (forecast only)",
                "dhi10: dhi forecast, 10th percentile (forecast only)",
                "dhi90: dhi forecast, 90th percentile (forecast only)",
                "dni10: dni forecast, 10th percentile (forecast only)",
                "dni90: dni forecast, 90th percentile (forecast only)",
                "ghi10: ghi forecast, 10th percentile (forecast only)",
                "ghi90: ghi forecast, 90th percentile (forecast only)",
                "gti10: gti forecast, 10th percentile (forecast only)",
                "gti90: gti forecast, 90th percentile (forecast only)",
                "pv_power_rooftop: rooftop PV power (kW)",
                "pv_power_rooftop10: rooftop PV power, 10th percentile (forecast only)",
                "pv_power_rooftop90: rooftop PV power, 90th percentile (forecast only)",
                "pv_power_advanced: advanced PV power (kW)",
                "pv_power_advanced10: advanced PV power, 10th percentile (forecast only)",
                "pv_power_advanced90: advanced PV power, 90th percentile (forecast only)"
              ]
            }
          },
          "period": {
            "title": "Averaging period",
            "enum": [
              "",
              "PT5M",
              "PT10M",
              "PT15M",
              "PT20M",
              "PT30M",
              "PT60M"
            ],
            "type": "string",
            "description": "Optional. Length of each period. The API default is 30 minutes (60 minutes for TMY); TMY accepts 15 minutes or longer.",
            "default": ""
          },
          "hours": {
            "title": "Hours",
            "minimum": 1,
            "maximum": 336,
            "type": "integer",
            "description": "Optional, live and forecast modes. Hours of data to return: up to 168 for live estimated actuals and 336 (14 days) for forecasts."
          },
          "start": {
            "title": "Start",
            "type": "string",
            "description": "Historic modes, required. yyyy-mm-dd or an ISO 8601 date-time such as 2026-01-01T00:00Z, on or after 2007-01-01. Without a time zone the time zone below applies, else UTC."
          },
          "end": {
            "title": "End",
            "type": "string",
            "description": "Historic modes. yyyy-mm-dd or an ISO 8601 date-time within 31 days of the start. Set this or the duration."
          },
          "duration": {
            "title": "Duration",
            "type": "string",
            "description": "Historic modes. ISO 8601 duration of up to 31 days, such as P1D, P7D, P31D or PT12H. Set this or the end."
          },
          "timeZone": {
            "title": "Time zone",
            "type": "string",
            "description": "Optional, historic and TMY modes. utc, longitudinal, or a UTC offset from -13 to 13 in 0.25 hour steps, such as 10 or -5.5."
          },
          "probability": {
            "title": "TMY probability",
            "enum": [
              "",
              "p50",
              "p75",
              "p90",
              "p95"
            ],
            "type": "string",
            "description": "Optional, TMY modes. The probability of exceedance year to build: P50 is the median year, P90 a year exceeded 90 percent of the time.",
            "default": ""
          },
          "ghiWeight": {
            "title": "TMY GHI weight",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Optional, TMY modes. Weight of GHI when selecting the typical months. Set together with the DNI weight; the two must add up to 1."
          },
          "dniWeight": {
            "title": "TMY DNI weight",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Optional, TMY modes. Weight of DNI when selecting the typical months. Set together with the GHI weight; the two must add up to 1."
          },
          "capacityKw": {
            "title": "System capacity (kW)",
            "minimum": 0,
            "type": "number",
            "description": "Rooftop PV modes, required. The capacity of the inverter (AC) or the modules (DC), whichever is greater, in kilowatts. For example 5 for a 5 kW home system."
          },
          "tilt": {
            "title": "Tilt (degrees)",
            "minimum": 0,
            "maximum": 90,
            "type": "number",
            "description": "Optional, irradiance and rooftop PV modes. Panel tilt off horizontal: 0 is flat, 90 vertical. The API picks a latitude based default when empty."
          },
          "azimuth": {
            "title": "Azimuth (degrees)",
            "minimum": -180,
            "maximum": 180,
            "type": "number",
            "description": "Optional, irradiance and rooftop PV modes. Direction the panels face from true north, positive anticlockwise: -90 is east, 135 southwest. Defaults to facing the equator."
          },
          "arrayType": {
            "title": "Array type",
            "enum": [
              "",
              "fixed",
              "horizontal_single_axis"
            ],
            "type": "string",
            "description": "Optional, irradiance modes. Mounting geometry used for GTI: fixed, or a horizontal single axis tracker.",
            "default": ""
          },
          "installDate": {
            "title": "Install date",
            "type": "string",
            "description": "Optional, rooftop PV modes. yyyy-mm-dd installation date, used to estimate ageing losses when no loss factor is given."
          },
          "lossFactor": {
            "title": "Loss factor",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Optional, rooftop PV modes. Non temperature losses as a decimal from 0 to 1; the API default is 0.90."
          },
          "applySnowSoiling": {
            "title": "Snow soiling override",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Optional, PV modes. Replaces the dynamic snow soiling loss with this decimal, such as 0 right after the snow was cleared."
          },
          "applyDustSoiling": {
            "title": "Dust soiling override",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Optional, advanced PV modes. Replaces the site's average dust soiling loss with this decimal."
          },
          "applyAvailability": {
            "title": "Availability",
            "minimum": 0,
            "type": "number",
            "description": "Optional, advanced PV modes. Share of the site's AC capacity generating during the period; 50 percent availability halves the returned power."
          },
          "applyConstraint": {
            "title": "Export constraint",
            "minimum": 0,
            "type": "number",
            "description": "Optional, advanced PV modes. A cap on total AC output, applied like a site export limit."
          },
          "applyTrackerInactive": {
            "title": "Trackers inactive",
            "type": "boolean",
            "description": "Optional, advanced PV modes. Treat trackers as stowed flat (zero rotation). Only affects sites with tracking.",
            "default": false
          },
          "terrainShading": {
            "title": "Terrain shading",
            "type": "boolean",
            "description": "Optional. Adjust irradiance for the surrounding terrain from a 90 m elevation model (beam blocked by hills, reduced sky view).",
            "default": false
          },
          "azimuthIntervals": {
            "title": "Azimuth intervals",
            "minimum": 1,
            "maximum": 360,
            "type": "integer",
            "description": "Horizon angles mode. How many equal sections the full circle is split into, up to 360; 36 gives one angle every 10 degrees.",
            "default": 36
          },
          "rowLayout": {
            "title": "Row layout",
            "enum": [
              "periods",
              "series"
            ],
            "type": "string",
            "description": "One row per period (timestamp with its values), or one row per location or site holding every period with point count, first and last period, min, max and mean per parameter, irradiation in kWh/m2 and PV energy in kWh.",
            "default": "periods"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most rows this run returns and charges for. A 7 day forecast at 30 minutes is 336 period rows per location; a TMY at 60 minutes is 8,760.",
            "default": 500
          },
          "requestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Pacing for calls to Solcast. Throttled calls are retried after the Retry-After pause.",
            "default": 30
          },
          "apiKey": {
            "title": "Solcast API key",
            "type": "string",
            "description": "Your API key from the Solcast Toolkit (a UUID). Stored as a secret, sent only in the Authorization Bearer header to api.solcast.com.au and never logged. You can instead set the DATA_API_KEY environment secret."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}