{
  "openapi": "3.0.1",
  "info": {
    "title": "GB Grid Connection Queue – NESO TEC Register Scraper & Alerts",
    "description": "Every project in NESO's TEC, Embedded and Interconnector registers: customer, substation, plant type (BESS, solar, wind…), MW, connection date, status, Gate 1/2. Filter, or get alerts on new and changed projects.",
    "version": "0.1",
    "x-build-id": "w91mOG76vaK7E5csC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ukopendatatools~gb-grid-connection-registers/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ukopendatatools-gb-grid-connection-registers",
        "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/ukopendatatools~gb-grid-connection-registers/runs": {
      "post": {
        "operationId": "runs-sync-ukopendatatools-gb-grid-connection-registers",
        "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/ukopendatatools~gb-grid-connection-registers/run-sync": {
      "post": {
        "operationId": "run-sync-ukopendatatools-gb-grid-connection-registers",
        "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": {
          "registers": {
            "title": "Registers",
            "type": "array",
            "description": "Registers.",
            "items": {
              "type": "string",
              "enum": [
                "TEC",
                "EMBEDDED",
                "INTERCONNECTOR"
              ],
              "enumTitles": [
                "TEC Register (transmission)",
                "Embedded Register (large embedded)",
                "Interconnector Register"
              ]
            },
            "default": [
              "TEC",
              "EMBEDDED"
            ]
          },
          "plantTypeKeywords": {
            "title": "Plant type keywords",
            "type": "array",
            "description": "e.g. \"Energy Storage\", \"PV\", \"Wind\", \"Demand\". Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "projectStatuses": {
            "title": "Project statuses",
            "type": "array",
            "description": "Exact statuses, e.g. \"Scoping\", \"Awaiting Consents\", \"Consents Approved\", \"Under Construction/Commissioning\", \"Built\".",
            "items": {
              "type": "string"
            }
          },
          "excludeBuilt": {
            "title": "Exclude built projects (pipeline only)",
            "type": "boolean",
            "description": "Exclude built projects (pipeline only).",
            "default": false
          },
          "hostTos": {
            "title": "Transmission owners",
            "type": "array",
            "description": "NGET (England & Wales), SPT (south Scotland), SHET (north Scotland), OFTO.",
            "items": {
              "type": "string"
            }
          },
          "customerKeywords": {
            "title": "Customer / project keywords",
            "type": "array",
            "description": "Customer / project keywords.",
            "items": {
              "type": "string"
            }
          },
          "siteKeywords": {
            "title": "Connection site keywords",
            "type": "array",
            "description": "e.g. a substation or GSP name.",
            "items": {
              "type": "string"
            }
          },
          "minMw": {
            "title": "Minimum MW",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum MW."
          },
          "effectiveFrom": {
            "title": "Connection date from (YYYY-MM-DD)",
            "type": "string",
            "description": "Connection date from (YYYY-MM-DD)."
          },
          "effectiveTo": {
            "title": "Connection date before (YYYY-MM-DD)",
            "type": "string",
            "description": "Connection date before (YYYY-MM-DD)."
          },
          "gates": {
            "title": "Gate",
            "type": "array",
            "description": "\"1\" or \"2\" (connections reform).",
            "items": {
              "type": "string"
            }
          },
          "onlyChanges": {
            "title": "Only new / changed / removed since last run",
            "type": "boolean",
            "description": "Keeps a snapshot in a named key-value store. The first run saves a baseline and returns nothing (unless 'Emit baseline' is on).",
            "default": false
          },
          "emitBaseline": {
            "title": "Emit baseline on first change-detection run",
            "type": "boolean",
            "description": "Emit baseline on first change-detection run.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Separate snapshots for different monitors."
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many projects (0 = no limit). You are charged per result.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}