{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Electricity Prices Scraper: Day-Ahead Hourly",
    "description": "Day-ahead power prices for Germany, France, Netherlands, Austria and 11 more EU zones: daily average, min/max, cheapest and priciest hours, negative prices and tomorrow's prices.",
    "version": "1.0",
    "x-build-id": "2ZhELHcaL8KoK5V4S"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hydrocore~eu-electricity-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hydrocore-eu-electricity-prices",
        "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/hydrocore~eu-electricity-prices/runs": {
      "post": {
        "operationId": "runs-sync-hydrocore-eu-electricity-prices",
        "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/hydrocore~eu-electricity-prices/run-sync": {
      "post": {
        "operationId": "run-sync-hydrocore-eu-electricity-prices",
        "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",
        "required": [
          "zones"
        ],
        "properties": {
          "zones": {
            "title": "Bidding zones",
            "type": "array",
            "description": "European day-ahead bidding zones to read. Only zones whose prices the source publishes under CC BY 4.0 are offered.",
            "items": {
              "type": "string",
              "enum": [
                "DE-LU",
                "AT",
                "BE",
                "CH",
                "CZ",
                "DK1",
                "DK2",
                "FR",
                "HU",
                "IT-North",
                "NL",
                "NO2",
                "PL",
                "SE4",
                "SI"
              ],
              "enumTitles": [
                "Germany / Luxembourg (DE-LU)",
                "Austria (AT)",
                "Belgium (BE)",
                "Switzerland (CH)",
                "Czechia (CZ)",
                "Denmark West (DK1)",
                "Denmark East (DK2)",
                "France (FR)",
                "Hungary (HU)",
                "Italy North (IT-North)",
                "Netherlands (NL)",
                "Norway South (NO2)",
                "Poland (PL)",
                "Sweden South (SE4)",
                "Slovenia (SI)"
              ]
            },
            "default": [
              "DE-LU",
              "FR",
              "NL",
              "AT"
            ]
          },
          "days": {
            "title": "Days",
            "enum": [
              "todayAndTomorrow",
              "today",
              "tomorrow",
              "last7Days",
              "custom"
            ],
            "type": "string",
            "description": "Delivery days in Central European time. Tomorrow's prices are usually published around 13:00 CET; before that, tomorrow returns a free status row.",
            "default": "todayAndTomorrow"
          },
          "dateFrom": {
            "title": "Date from (custom)",
            "type": "string",
            "description": "First delivery day for Custom dates (YYYY-MM-DD)."
          },
          "dateTo": {
            "title": "Date to (custom)",
            "type": "string",
            "description": "Last delivery day for Custom dates (YYYY-MM-DD, up to 93 days after Date from). Empty = same as Date from."
          },
          "windowHours": {
            "title": "Window length (hours)",
            "minimum": 1,
            "maximum": 12,
            "type": "integer",
            "description": "Length of the cheapest and most expensive consecutive window to find each day, e.g. 3 for an EV charge or a heat-pump boost.",
            "default": 3
          },
          "onlyNegative": {
            "title": "Only days with negative prices",
            "type": "boolean",
            "description": "Keep only zone-days with at least one negative price. Filtered days are free.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "dateZone",
              "cheapestAverage",
              "mostNegative",
              "biggestSpread"
            ],
            "type": "string",
            "description": "Order of rows. Sorting happens before Max results.",
            "default": "dateZone"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Most zone-days to save.",
            "default": 100
          },
          "onlyNewDays": {
            "title": "Only new days (monitor)",
            "type": "boolean",
            "description": "Save only zone-days not delivered before under the same monitor name, so a daily schedule gets each day's prices once (incomplete days are re-sent when completed).",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name for remembered days (letters, digits, dashes). Different names keep separate histories."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}