{
  "openapi": "3.0.1",
  "info": {
    "title": "EU Electricity & Gas Prices incl. Taxes and Components",
    "description": "Eurostat electricity and gas prices for households and businesses across EU countries: prices with/without taxes by consumption band, and the price breakdown into energy & supply, network costs, taxes, levies and VAT.",
    "version": "1.0",
    "x-build-id": "GjwToKcaqPDUIC6Qe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vespa-zzz~eu-energy-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vespa-zzz-eu-energy-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/vespa-zzz~eu-energy-prices/runs": {
      "post": {
        "operationId": "runs-sync-vespa-zzz-eu-energy-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/vespa-zzz~eu-energy-prices/run-sync": {
      "post": {
        "operationId": "run-sync-vespa-zzz-eu-energy-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",
        "properties": {
          "datasets": {
            "title": "Datasets",
            "type": "array",
            "description": "Eurostat datasets to fetch. Price datasets are half-yearly (periods like 2025-S1) with tax levels; component datasets are yearly and split the price into energy & supply, network costs, taxes, levies and VAT.",
            "items": {
              "type": "string",
              "enum": [
                "nrg_pc_205",
                "nrg_pc_204",
                "nrg_pc_203",
                "nrg_pc_202",
                "nrg_pc_205_c",
                "nrg_pc_204_c",
                "nrg_pc_203_c",
                "nrg_pc_202_c"
              ],
              "enumTitles": [
                "Electricity, non-household (half-yearly prices)",
                "Electricity, household (half-yearly prices)",
                "Gas, non-household (half-yearly prices)",
                "Gas, household (half-yearly prices)",
                "Electricity, non-household — price components (yearly)",
                "Electricity, household — price components (yearly)",
                "Gas, non-household — price components (yearly)",
                "Gas, household — price components (yearly)"
              ]
            },
            "default": [
              "nrg_pc_205"
            ]
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Eurostat country codes (EU members and others reported, e.g. DE, FR, IT, ES, NL, PL, EL for Greece, EU27_2020 for the EU average). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "since": {
            "title": "From period",
            "pattern": "^[0-9]{4}(-S[12])?$",
            "type": "string",
            "description": "YYYY or YYYY-S1/S2 (inclusive)."
          },
          "until": {
            "title": "To period",
            "pattern": "^[0-9]{4}(-S[12])?$",
            "type": "string",
            "description": "YYYY or YYYY-S1/S2 (inclusive). Leave empty for the latest."
          },
          "nrg_cons": {
            "title": "Consumption bands",
            "type": "array",
            "description": "Optional Eurostat band codes, e.g. TOT_KWH (all bands), KWH2500-4999 (household band DC), MWH500-1999 (business band IC), GJ20-199 (household gas band D2). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currencies",
            "type": "array",
            "description": "EUR, NAC (national currency) or PPS (purchasing power standard). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "tax": {
            "title": "Tax level (price datasets)",
            "type": "array",
            "description": "X_TAX (excluding taxes and levies), X_VAT (excluding VAT and recoverable taxes), I_TAX (all taxes included). Ignored for component datasets.",
            "items": {
              "type": "string"
            }
          },
          "nrg_prc": {
            "title": "Price components (component datasets)",
            "type": "array",
            "description": "e.g. NRG_SUP (energy and supply), NETC (network costs), TAX_FEE_LEV_CHRG (taxes, fees, levies and charges), VAT. Ignored for price datasets.",
            "items": {
              "type": "string"
            }
          },
          "unit": {
            "title": "Units",
            "type": "array",
            "description": "KWH, or for gas GJ_GCV (gigajoule, gross calorific value). Applies to price datasets and gas component datasets (electricity component datasets have no unit dimension; the filter is ignored there).",
            "items": {
              "type": "string"
            }
          },
          "includeEmpty": {
            "title": "Include empty cells",
            "type": "boolean",
            "description": "Also output cells that have no value but carry a Eurostat flag (e.g. c = confidential).",
            "default": false
          },
          "maxItems": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Maximum number of rows to output.",
            "default": 100000
          },
          "requestIntervalMs": {
            "title": "Delay between requests (ms)",
            "minimum": 2000,
            "type": "integer",
            "description": "Pause between API requests.",
            "default": 2000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}