{
  "openapi": "3.0.1",
  "info": {
    "title": "Day-Ahead Electricity Prices API: Nord Pool Market Data",
    "description": "Day-ahead and intraday auction electricity prices (15 minute, 30 minute or hourly), price indices, Nordic system price, cross-border flows, volumes and exchange rates for Nordic, Baltic, UK and Central European power areas via the Nord Pool Market Data API. Bring your own key.",
    "version": "0.1",
    "x-build-id": "VbteRnYauRxPmLuP8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nabeelbaghoor~day-ahead-electricity-prices-api/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nabeelbaghoor-day-ahead-electricity-prices-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~day-ahead-electricity-prices-api/runs": {
      "post": {
        "operationId": "runs-sync-nabeelbaghoor-day-ahead-electricity-prices-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~day-ahead-electricity-prices-api/run-sync": {
      "post": {
        "operationId": "run-sync-nabeelbaghoor-day-ahead-electricity-prices-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": [
              "prices",
              "priceIndices",
              "systemPrice",
              "flows",
              "scheduledPhysicalFlows",
              "volumes",
              "exchangeRates"
            ],
            "type": "string",
            "description": "Auction prices reads day-ahead and intraday auction prices per delivery area. Price indices reads prices normalised to 15 minutes, 30 minutes or one hour per area or for the Nordic SYSTEM index. System price reads the Nordic system price. Auction flows and scheduled physical flows read imports, exports and net position per border. Auction volumes reads buy and sell volumes. Exchange rates reads the currency rates used for a delivery date.",
            "default": "prices"
          },
          "market": {
            "title": "Market",
            "enum": [
              "DayAhead",
              "GbHalfHour_DayAhead",
              "N2EX_DayAhead",
              "Iceland_DayAhead",
              "SemGb_IntradayAuction1",
              "SemGb_IntradayAuction2",
              "SIDC_IntradayAuction1",
              "SIDC_IntradayAuction2",
              "SIDC_IntradayAuction3"
            ],
            "type": "string",
            "description": "The auction to read. Day-ahead is the main market coupling auction; the others are the UK half hourly and N2EX day-ahead auctions, the Icelandic day-ahead auction and the SEM-GB and SIDC intraday auctions. Flows do not cover the GB half hour and Iceland auctions, and scheduled physical flows cover day-ahead only. Not used for the system price or exchange rates.",
            "default": "DayAhead"
          },
          "areas": {
            "title": "Areas",
            "type": "array",
            "description": "One delivery area per line: NO1 to NO5, SE1 to SE4, FI, DK1, DK2, EE, LT, LV, AT, BE, FR, GER, 50Hz, AMP, TTG, TBW, NL, PL, UK, TEL (Romania), BG, IS or ELES (Slovenia). In the price indices mode SYSTEM is also accepted. Scheduled physical flows cover the Nordic areas only. Not used for the system price or exchange rates.",
            "default": [
              "FI"
            ],
            "items": {
              "type": "string"
            }
          },
          "currency": {
            "title": "Currency",
            "enum": [
              "EUR",
              "GBP",
              "SEK",
              "NOK",
              "DKK",
              "PLN",
              "RON",
              "ISK"
            ],
            "type": "string",
            "description": "Currency of the prices. Local currencies are not available for every area and market. The system price is offered in EUR, SEK, NOK and DKK only. Not used for flows, volumes or exchange rates.",
            "default": "EUR"
          },
          "dateFrom": {
            "title": "Date from",
            "type": "string",
            "description": "First CET delivery date to read, as YYYY-MM-DD. Leave both dates empty for today's delivery date; tomorrow's day-ahead prices appear around 12:45 CET (preliminary) and 13:00 CET (final)."
          },
          "dateTo": {
            "title": "Date to",
            "type": "string",
            "description": "Last CET delivery date to read, as YYYY-MM-DD. Empty reads one day. Up to 366 days per run, one request per day."
          },
          "resolution": {
            "title": "Price index resolution",
            "enum": [
              "PT1H",
              "PT30M",
              "PT15M"
            ],
            "type": "string",
            "description": "Price indices mode. The period length of the index prices. Official prices are used where they exist in that resolution, otherwise an average is calculated.",
            "default": "PT1H"
          },
          "rowLayout": {
            "title": "Row layout",
            "enum": [
              "periods",
              "days"
            ],
            "type": "string",
            "description": "One row per delivery period (15, 30 or 60 minutes) with its price, flow or volume, or one row per area and day with the daily average, minimum and maximum price or daily totals and every period in the record. Not used for exchange rates.",
            "default": "periods"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "The most rows this run returns and charges for. With 15 minute periods one area holds 96 rows a day.",
            "default": 100
          },
          "requestsPerMinute": {
            "title": "Requests per minute",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "Pacing for calls to Nord Pool, which recommends about one request per second, sent one after another. Throttled calls are retried after a pause.",
            "default": 60
          },
          "username": {
            "title": "Username",
            "type": "string",
            "description": "The username of your Nord Pool Market Data API subscription, usually starting with API_DATA_. Stored as a secret and sent only to Nord Pool's token endpoint."
          },
          "apiKey": {
            "title": "Password",
            "type": "string",
            "description": "The password of the same subscription. Stored as a secret, sent only to Nord Pool's token endpoint and never logged. You can instead set the DATA_API_KEY environment secret as username:password."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}