{
  "openapi": "3.0.1",
  "info": {
    "title": "Wind and Solar Power Forecast API: Energy Quantified Data",
    "description": "European wind, solar, hydro and load forecasts, actuals, backcasts, spot price forecasts, installed capacity and OHLC futures prices from the Energy Quantified API. Latest or past forecast issues, daily or hourly aggregation, curve and place search. Bring your own key.",
    "version": "0.1",
    "x-build-id": "j5rLXFzfiAyJlP7OI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~wind-solar-power-forecast-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-wind-solar-power-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~wind-solar-power-forecast-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-wind-solar-power-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~wind-solar-power-forecast-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-wind-solar-power-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": [
              "curveData",
              "searchCurves",
              "forecastIssues",
              "curveTags",
              "searchPlaces",
              "categories"
            ],
            "type": "string",
            "description": "Curve data reads the values of named curves: wind, solar, hydro and load forecasts, actuals, backcasts and normals, spot price forecasts, installed capacity series and OHLC futures prices. Curve search finds curve names by text, area, data type, category and frequency. Forecast issues lists the issue times and tags of forecast curves. Forecast tags lists the tags (forecast models) of a forecast curve. Place search finds power plants, weather stations, rivers and gas sites. Categories lists every curve category.",
            "default": "curveData"
          },
          "curveNames": {
            "title": "Curve names",
            "type": "array",
            "description": "Curve data, forecast issues and forecast tags modes. One Energy Quantified curve name per line, exactly as the curve search mode returns it, for example \"DE Wind Power Production MWh/h 15min Forecast\", \"DE Wind Power Production MWh/h 15min Actual\", \"DE Wind Power Installed MW Capacity\" or \"NP Futures Power Base EUR/MWh Nasdaq OHLC\". Up to 200 curves per run.",
            "default": [
              "DE Wind Power Production MWh/h 15min Forecast"
            ],
            "items": {
              "type": "string"
            }
          },
          "instanceSelection": {
            "title": "Forecast selection",
            "enum": [
              "latest",
              "recent",
              "issued",
              "relative"
            ],
            "type": "string",
            "description": "For forecast curves (INSTANCE and INSTANCE_PERIOD). Latest reads the newest forecast issue. Recent issues reads several issues with their data (see the issue count). One issue time reads exactly that issue. Relative stitches one issue per day, a set number of days ahead, into one continuous series. Not used for other curve types.",
            "default": "latest"
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "Forecast curves. Tags select the forecast model or run, for example ec, ecsr or gfs; one per line. Empty reads the default tag. A single issue time or a relative forecast uses the first tag. The forecast tags mode lists a curve's tags.",
            "items": {
              "type": "string"
            }
          },
          "excludeTags": {
            "title": "Exclude tags",
            "type": "array",
            "description": "Forecast curves, recent issues and forecast issues modes. Tags to leave out, one per line.",
            "items": {
              "type": "string"
            }
          },
          "issueLimit": {
            "title": "Issue count",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "Recent issues and forecast issues modes. How many forecast issues to read per curve, newest first: 1 to 25 (1 to 20 for period forecast curves).",
            "default": 5
          },
          "issuedAtEarliest": {
            "title": "Issued at earliest",
            "type": "string",
            "description": "Forecast curves. Only issues made at or after this date or date and time, such as 2026-10-27 or 2026-10-27 06:00."
          },
          "issuedAtLatest": {
            "title": "Issued at latest",
            "type": "string",
            "description": "Forecast curves. Only issues made at or before this date or date and time. With the latest forecast selection it reads the newest issue as of this time, which is how you rebuild a past view."
          },
          "issuedAt": {
            "title": "Issue time",
            "type": "string",
            "description": "Forecast selection set to one issue time. The exact issue date and time, such as 2026-10-29 00:00, as the forecast issues mode lists it."
          },
          "daysAhead": {
            "title": "Days ahead",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Relative forecast selection. How many days before delivery each stitched issue was made: 0 is the same day, 1 the day ahead.",
            "default": 1
          },
          "relativeIssued": {
            "title": "Relative issue choice",
            "enum": [
              "earliest",
              "latest"
            ],
            "type": "string",
            "description": "Relative forecast selection. When several issues match a day, read the earliest or the latest one.",
            "default": "latest"
          },
          "begin": {
            "title": "Begin",
            "type": "string",
            "description": "First date or date and time of data to read, such as 2026-10-01 or 2026-10-01 00:00. Leave begin and end empty to read 7 days back to 10 days ahead; the latest forecast and recent issues are read over their whole horizon."
          },
          "end": {
            "title": "End",
            "type": "string",
            "description": "End of the data window (excluded), in the same format."
          },
          "frequency": {
            "title": "Aggregate to frequency",
            "enum": [
              "P1Y",
              "SEASON",
              "P3M",
              "P1M",
              "P1W",
              "P1D",
              "PT1H",
              "PT30M",
              "PT15M",
              "PT10M",
              "PT5M",
              "PT1M"
            ],
            "type": "string",
            "description": "Optional, time series and forecast curves. Server side aggregation to this frequency, for example P1D for daily values or PT1H for hourly. Leave empty for the curve's own frequency."
          },
          "aggregation": {
            "title": "Aggregation",
            "enum": [
              "AVERAGE",
              "MEAN",
              "SUM",
              "MIN",
              "MAX"
            ],
            "type": "string",
            "description": "Optional, needs a frequency. AVERAGE (the default) for mean power or prices, SUM for energy totals, MIN or MAX."
          },
          "hourFilter": {
            "title": "Hour filter",
            "enum": [
              "BASE",
              "PEAK",
              "OFFPEAK",
              "WORKDAYS",
              "WEEKEND"
            ],
            "type": "string",
            "description": "Optional, needs a frequency. Which hours go into each aggregated value: BASE (all hours, the default), PEAK, OFFPEAK, WORKDAYS or WEEKEND."
          },
          "threshold": {
            "title": "Missing values allowed",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Optional, needs a frequency. How many values may be missing inside one aggregated period before it is left empty. The API default is 0."
          },
          "timeZone": {
            "title": "Time zone",
            "enum": [
              "UTC",
              "CET",
              "WET",
              "EET",
              "Europe/Istanbul",
              "Europe/Gas_Day"
            ],
            "type": "string",
            "description": "Optional. The time zone of the returned dates and of aggregation. Leave empty for the curve's own zone (usually CET)."
          },
          "unit": {
            "title": "Unit",
            "type": "string",
            "description": "Optional. Convert the data to another unit, for example GWh/h instead of MWh/h. Leave empty for the curve's own unit."
          },
          "rowLayout": {
            "title": "Row layout",
            "enum": [
              "points",
              "series"
            ],
            "type": "string",
            "description": "One row per data point (timestamp and value), or one row per series (a curve or forecast issue) with point count, first and last timestamp, minimum, maximum, mean and every point in the row. OHLC curves always give one row per contract and trading day.",
            "default": "points"
          },
          "ohlcSelection": {
            "title": "OHLC selection",
            "enum": [
              "range",
              "latest"
            ],
            "type": "string",
            "description": "OHLC curves (futures and forwards). A date range reads every trading day between begin and end. Latest reads the newest trading day, or the trading date below.",
            "default": "range"
          },
          "contractPeriod": {
            "title": "Contract period",
            "enum": [
              "year",
              "mdec",
              "season",
              "quarter",
              "month",
              "week",
              "weekend",
              "day"
            ],
            "type": "string",
            "description": "OHLC date range. Only contracts of this period, such as month or year. Needed for the front contract and delivery filters."
          },
          "front": {
            "title": "Front contract",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "OHLC date range with a contract period. 1 is the front contract, 2 the next one, and so on. Cannot be combined with a delivery date."
          },
          "delivery": {
            "title": "Delivery date",
            "type": "string",
            "description": "OHLC date range with a contract period. Only the contract that delivers from this date, YYYY-MM-DD, such as 2027-01-01. Cannot be combined with a front contract."
          },
          "tradingDate": {
            "title": "Trading date",
            "type": "string",
            "description": "Latest OHLC selection. The trading day to read, YYYY-MM-DD; the closest earlier day with data is used when there is none. Empty reads the newest day."
          },
          "searchQuery": {
            "title": "Search text",
            "type": "string",
            "description": "Curve search and place search modes. Free text, for example \"wind power germany\" or \"solar forecast\"."
          },
          "area": {
            "title": "Area",
            "enum": [
              "IS",
              "NP",
              "NO",
              "NO1",
              "NO2",
              "NO3",
              "NO4",
              "NO5",
              "SE",
              "SE1",
              "SE2",
              "SE3",
              "SE4",
              "DK",
              "DK1",
              "DK2",
              "FI",
              "EE",
              "LV",
              "LT",
              "DE",
              "FR",
              "FR-ARA",
              "FR-BFC",
              "FR-BRE",
              "FR-COR",
              "FR-CVL",
              "FR-GES",
              "FR-HDF",
              "FR-IDF",
              "FR-NAQ",
              "FR-NOR",
              "FR-OCC",
              "FR-PAC",
              "FR-PDL",
              "NL",
              "BE",
              "AT",
              "CH",
              "LU",
              "GB",
              "SEM",
              "NIE",
              "IE",
              "PL",
              "CZ",
              "HU",
              "SK",
              "ES",
              "PT",
              "IT",
              "IT-NORD",
              "IT-CNOR",
              "IT-CSUD",
              "IT-SUD",
              "IT-CALA",
              "IT-SARD",
              "IT-SICI",
              "SI",
              "RO",
              "HR",
              "BA",
              "RS",
              "ME",
              "BG",
              "AL",
              "MK",
              "GR",
              "XK",
              "TR",
              "RU",
              "RU-KGD",
              "BY",
              "UA",
              "MD",
              "MT",
              "GE",
              "MA",
              "LY",
              "DZ"
            ],
            "type": "string",
            "description": "Curve search and place search modes. Country or bidding zone, such as DE, FR or NO2."
          },
          "curveType": {
            "title": "Curve type",
            "enum": [
              "TIMESERIES",
              "SCENARIO_TIMESERIES",
              "INSTANCE",
              "PERIOD",
              "INSTANCE_PERIOD",
              "OHLC",
              "TRADES",
              "PPA"
            ],
            "type": "string",
            "description": "Curve search mode. TIMESERIES (actuals, backcasts, normals), INSTANCE (forecasts with issue times), PERIOD (capacities), OHLC (futures prices) and more."
          },
          "dataType": {
            "title": "Data type",
            "enum": [
              "ACTUAL",
              "CLIMATE",
              "SCENARIO",
              "SYNTHETIC",
              "BACKCAST",
              "NORMAL",
              "VALUE",
              "FORECAST",
              "FOREX",
              "OHLC",
              "TRADES",
              "REMIT",
              "CAPACITY",
              "PPA"
            ],
            "type": "string",
            "description": "Curve search mode. Actuals, forecasts, backcasts, normals, climate series, capacity and more."
          },
          "searchCategories": {
            "title": "Categories",
            "type": "array",
            "description": "Curve search mode. Categories the curves must have, one per line, for example Wind and Power. The categories mode lists every category.",
            "items": {
              "type": "string"
            }
          },
          "exactCategory": {
            "title": "Exact category",
            "type": "string",
            "description": "Curve search mode. An exact combination of categories as the categories mode lists it under exact categories, for example \"Wind Power Production\"."
          },
          "commodity": {
            "title": "Commodity",
            "type": "string",
            "description": "Curve search mode. For example Power or Gas."
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Curve search mode. Data sources, one per line, for example EEX. Write null for curves without a source.",
            "items": {
              "type": "string"
            }
          },
          "searchFrequency": {
            "title": "Curve frequency",
            "enum": [
              "P1Y",
              "SEASON",
              "P3M",
              "P1M",
              "P1W",
              "P1D",
              "PT1H",
              "PT30M",
              "PT15M",
              "PT10M",
              "PT5M",
              "PT1M"
            ],
            "type": "string",
            "description": "Curve search mode. Only curves stored at this frequency."
          },
          "onlySubscribed": {
            "title": "Only curves in my subscription",
            "type": "boolean",
            "description": "Curve search mode. Return only curves your subscription covers.",
            "default": false
          },
          "hasPlace": {
            "title": "Curves for places",
            "enum": [
              "any",
              "true",
              "false"
            ],
            "type": "string",
            "description": "Curve search mode. Any curve, only curves tied to a place (a power plant, river or station), or only curves without one.",
            "default": "any"
          },
          "fuels": {
            "title": "Fuels",
            "type": "array",
            "description": "Place search mode. Fuel types, one per line, for example Wind, Solar, Nuclear or Hydro.",
            "items": {
              "type": "string"
            }
          },
          "placeTypes": {
            "title": "Place types",
            "type": "array",
            "description": "Place search mode. Kinds of place to return.",
            "items": {
              "type": "string",
              "enum": [
                "city",
                "consumer",
                "producer",
                "river",
                "weatherstation",
                "gas-storage",
                "gas-lng-terminal",
                "gas-interconnector",
                "other"
              ],
              "enumTitles": [
                "City",
                "Consumer",
                "Producer (power plant)",
                "River",
                "Weather station",
                "Gas storage",
                "LNG terminal",
                "Gas interconnector",
                "Other"
              ]
            }
          },
          "categoryList": {
            "title": "Category list",
            "enum": [
              "categories",
              "exactCategories"
            ],
            "type": "string",
            "description": "Categories mode. Every single category, or every exact combination of categories used in curve names.",
            "default": "categories"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most rows this run returns and charges for. A 15 minute curve holds 96 points a day; aggregate to PT1H or P1D, or use the series layout, to keep long windows small.",
            "default": 500
          },
          "requestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 1,
            "maximum": 120,
            "type": "integer",
            "description": "Pacing for calls to Energy Quantified. The official client sends one call a second. Each curve takes two requests (metadata, then data). Throttled calls are retried after a pause.",
            "default": 60
          },
          "apiKey": {
            "title": "Energy Quantified API key",
            "type": "string",
            "description": "The API key from your Energy Quantified account (app.energyquantified.com, user settings). Stored as a secret, sent only in the X-API-Key header to app.energyquantified.com 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}