{
  "openapi": "3.0.1",
  "info": {
    "title": "Power Price Forecasts API: Volue Insight Energy Market Curves",
    "description": "European power and gas prices, spot price forecasts, forward curves and hydro, wind, solar, temperature and consumption fundamentals as time series from the Volue Insight API. Latest or historical forecast issues, ensemble tags, daily or monthly aggregation and curve search. Bring your own key.",
    "version": "0.1",
    "x-build-id": "SYAvW3NdoYeCq5Unm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~power-price-forecasts-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-power-price-forecasts-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~power-price-forecasts-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-power-price-forecasts-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~power-price-forecasts-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-power-price-forecasts-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",
              "curveTags",
              "attributeValues"
            ],
            "type": "string",
            "description": "Curve data reads the values of one or more named curves: spot and intraday prices, price forecasts, forward curves, hydro, wind, solar, temperature and consumption series. Curve search finds curve names by text and attributes such as area, category and frequency. Curve tags lists the tags (for example ensemble members) of tagged curves. Attribute values lists the valid values of one search attribute, such as every area or category.",
            "default": "curveData"
          },
          "curveNames": {
            "title": "Curve names",
            "type": "array",
            "description": "Curve data and curve tags modes. One Volue Insight curve name per line, exactly as the curve search mode returns it, for example \"pri de spot ec00 €/mwh cet h f\" (German spot price forecast from the EC00 weather run), \"pri de intraday €/mwh cet h f\" or \"tt de con °c cet min15 s\". Up to 200 curves per run.",
            "default": [
              "pri de spot ec00 €/mwh cet h f"
            ],
            "items": {
              "type": "string"
            }
          },
          "instanceSelection": {
            "title": "Forecast instance",
            "enum": [
              "latest",
              "issueDate",
              "issueDateRange"
            ],
            "type": "string",
            "description": "For INSTANCES and TAGGED_INSTANCES curves (forecasts, one series per issue date). Latest reads the newest issue, optionally within the issue date range. A single issue date reads exactly that issue. An issue date range reads every issue in the range. Not used for TIME_SERIES, TAGGED or paired list curves.",
            "default": "latest"
          },
          "issueDate": {
            "title": "Issue date",
            "type": "string",
            "description": "Forecast instance set to one issue date. The issue date and time, such as 2026-10-27T00:00Z or 2026-10-27."
          },
          "issueDateFrom": {
            "title": "Issue date from",
            "type": "string",
            "description": "Start of the issue date range (YYYY-MM-DD or an ISO date and time). Limits the latest issue search, or sets the range of issues to read."
          },
          "issueDateTo": {
            "title": "Issue date to",
            "type": "string",
            "description": "End of the issue date range (excluded), YYYY-MM-DD or an ISO date and time."
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "For TAGGED and TAGGED_INSTANCES curves, one tag per line, for example Avg or ensemble members such as 01 and 12. Empty reads the default tags. Use the curve tags mode to list a curve's tags.",
            "items": {
              "type": "string"
            }
          },
          "dataFrom": {
            "title": "Data from",
            "type": "string",
            "description": "First timestamp of data to read, YYYY-MM-DD or an ISO date and time such as 2026-10-01T00:00Z. Leave both data dates empty to read time series curves from 7 days ago to 15 days ahead, and forecasts over their whole horizon."
          },
          "dataTo": {
            "title": "Data to",
            "type": "string",
            "description": "End of the data window, excluded from the result, in the same format."
          },
          "frequency": {
            "title": "Aggregate to frequency",
            "enum": [
              "Y",
              "S",
              "Q",
              "M",
              "W",
              "D",
              "H12",
              "H6",
              "H3",
              "H",
              "MIN30",
              "MIN15",
              "MIN5",
              "MIN"
            ],
            "type": "string",
            "description": "Optional. Server side aggregation or split to this frequency, used with the function below: Y (year), S (season), Q (quarter), M (month), W (week), D (day), H12, H6, H3, H (hour), MIN30, MIN15, MIN5 or MIN. Leave empty for the curve's own frequency."
          },
          "function": {
            "title": "Aggregation function",
            "enum": [
              "AVERAGE",
              "SUM",
              "MIN",
              "MAX"
            ],
            "type": "string",
            "description": "Optional, needs a frequency. AVERAGE for daily or monthly average prices, SUM for energy totals, MIN or MAX. The attribute values mode with \"functions\" lists every function the API accepts."
          },
          "filter": {
            "title": "Filter",
            "type": "string",
            "description": "Optional. Reads only a subset of the data, for example PEAK or OFFPEAK hours. The attribute values mode with \"filters\" lists every filter."
          },
          "timeZone": {
            "title": "Time zone",
            "type": "string",
            "description": "Optional. Converts the curve to this time zone before aggregation or filtering, for example UTC or CET. The attribute values mode with \"time_zones\" lists the valid zones."
          },
          "outputTimeZone": {
            "title": "Output time zone",
            "type": "string",
            "description": "Optional. Converts the result to this time zone after aggregation or filtering."
          },
          "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, tag or forecast issue) with point count, first and last timestamp, minimum, maximum, mean and every point in the row.",
            "default": "points"
          },
          "searchQuery": {
            "title": "Search text",
            "type": "string",
            "description": "Curve search mode. Free text matched against curve names and attribute descriptions, for example \"spot price germany\" or \"wind power forecast\"."
          },
          "searchNames": {
            "title": "Curve name patterns",
            "type": "array",
            "description": "Curve search mode. Curve names to match, one per line; * works as a wildcard, for example \"pri de spot*\".",
            "items": {
              "type": "string"
            }
          },
          "searchCommodities": {
            "title": "Commodities",
            "type": "array",
            "description": "Curve search mode. Commodity codes, one per line. The attribute values mode with \"commodities\" lists every value.",
            "items": {
              "type": "string"
            }
          },
          "searchCategories": {
            "title": "Categories",
            "type": "array",
            "description": "Curve search mode. Category codes, one per line, for example WND for wind. Several on one line separated by commas must all match. The attribute values mode with \"categories\" lists every value.",
            "items": {
              "type": "string"
            }
          },
          "searchAreas": {
            "title": "Areas",
            "type": "array",
            "description": "Curve search mode. Area codes, one per line, for example DE, EE or LT. Lines are matched with OR.",
            "items": {
              "type": "string"
            }
          },
          "searchStations": {
            "title": "Stations",
            "type": "array",
            "description": "Curve search mode. Station codes, one per line.",
            "items": {
              "type": "string"
            }
          },
          "searchSources": {
            "title": "Sources",
            "type": "array",
            "description": "Curve search mode. Source codes, one per line, for example a weather run such as EC00.",
            "items": {
              "type": "string"
            }
          },
          "searchScenarios": {
            "title": "Scenarios",
            "type": "array",
            "description": "Curve search mode. Scenario codes, one per line.",
            "items": {
              "type": "string"
            }
          },
          "searchUnits": {
            "title": "Units",
            "type": "array",
            "description": "Curve search mode. Units, one per line, for example €/mwh or mwh/h.",
            "items": {
              "type": "string"
            }
          },
          "searchTimeZones": {
            "title": "Time zones",
            "type": "array",
            "description": "Curve search mode. Curve time zones, one per line, for example CET or UTC.",
            "items": {
              "type": "string"
            }
          },
          "searchVersions": {
            "title": "Versions",
            "type": "array",
            "description": "Curve search mode. Versions, one per line.",
            "items": {
              "type": "string"
            }
          },
          "searchFrequencies": {
            "title": "Frequencies",
            "type": "array",
            "description": "Curve search mode. Curve frequencies, one per line, for example H, MIN15 or D.",
            "items": {
              "type": "string"
            }
          },
          "searchDataTypes": {
            "title": "Data types",
            "type": "array",
            "description": "Curve search mode. Data types, one per line. The attribute values mode with \"data_types\" lists every value.",
            "items": {
              "type": "string"
            }
          },
          "searchCurveStates": {
            "title": "Curve states",
            "type": "array",
            "description": "Curve search mode. BETA, PUBLIC, DEPRECATED, one per line.",
            "items": {
              "type": "string"
            }
          },
          "modifiedSince": {
            "title": "Modified since",
            "type": "string",
            "description": "Curve search mode. Only curves modified after this date or ISO date and time."
          },
          "onlyAccessible": {
            "title": "Only curves I can read",
            "type": "boolean",
            "description": "Curve search mode. Return only curves your subscription gives you access to.",
            "default": true
          },
          "attribute": {
            "title": "Attribute",
            "enum": [
              "commodities",
              "categories",
              "areas",
              "stations",
              "sources",
              "scenarios",
              "units",
              "time_zones",
              "versions",
              "frequencies",
              "data_types",
              "curve_states",
              "curve_types",
              "functions",
              "filters"
            ],
            "type": "string",
            "description": "Attribute values mode. The search attribute whose valid values to list.",
            "default": "areas"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most rows this run returns and charges for. An hourly curve holds 24 points a day; a 15 minute curve 96.",
            "default": 500
          },
          "requestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Pacing for calls to Volue Insight. Each curve takes two requests (metadata, then data). Throttled calls are retried after a pause.",
            "default": 120
          },
          "clientId": {
            "title": "Client ID",
            "type": "string",
            "description": "The client id of the OAuth client you created at auth.volueinsight.com. Stored as a secret and sent only to Volue Insight's token endpoint."
          },
          "apiKey": {
            "title": "Client secret",
            "type": "string",
            "description": "The client secret of the same OAuth client. Stored as a secret, sent only to Volue Insight's token endpoint and never logged. You can instead set the DATA_API_KEY environment secret as clientId:clientSecret."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}