{
  "openapi": "3.0.1",
  "info": {
    "title": "US Power Plant Pipeline (EIA-860M Generators)",
    "description": "Planned, under-construction, canceled, operating and retired US power generators from EIA's monthly Form EIA-860M: owner, plant, state, county, technology, fuel, MW, status and expected online date. Monitor new and changed projects.",
    "version": "1.0",
    "x-build-id": "7LtjyU3OrSOB14Tkn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/civic_data_feeds~us-power-plant-pipeline/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-civic_data_feeds-us-power-plant-pipeline",
        "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/civic_data_feeds~us-power-plant-pipeline/runs": {
      "post": {
        "operationId": "runs-sync-civic_data_feeds-us-power-plant-pipeline",
        "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/civic_data_feeds~us-power-plant-pipeline/run-sync": {
      "post": {
        "operationId": "run-sync-civic_data_feeds-us-power-plant-pipeline",
        "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": {
          "inventories": {
            "title": "Inventories",
            "type": "array",
            "description": "Which EIA-860M lists to read. planned = proposed and under-construction generators (the new-build pipeline). canceled = canceled or indefinitely postponed projects. operating = existing generators. retired = retired generators.",
            "items": {
              "type": "string",
              "enum": [
                "planned",
                "canceled",
                "retired",
                "operating"
              ],
              "enumTitles": [
                "Planned (pipeline)",
                "Canceled or postponed",
                "Retired",
                "Operating"
              ]
            },
            "default": [
              "planned"
            ]
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "Two-letter US state codes, e.g. TX, CA, AZ. Leave empty for all states.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "technologies": {
            "title": "Technologies (contains)",
            "type": "array",
            "description": "Keep generators whose EIA technology contains any of these words, case-insensitive, e.g. Batteries, Solar Photovoltaic, Onshore Wind, Natural Gas Fired Combined Cycle, Nuclear.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "energySources": {
            "title": "Energy source codes (contains)",
            "type": "array",
            "description": "EIA energy source codes, e.g. SUN (solar), WND (wind), MWH (battery storage), NG (natural gas), NUC (nuclear), WAT (hydro).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "minMw": {
            "title": "Minimum nameplate capacity (MW)",
            "minimum": 0,
            "type": "integer",
            "description": "Only generators with at least this nameplate capacity."
          },
          "statusCodes": {
            "title": "Status codes",
            "type": "array",
            "description": "Planned: P (planned, approvals not started), L (approvals pending), T (approvals received), U (under construction, up to 50%), V (under construction, over 50%), TS (built, testing), OT (other). Operating: OP, SB, OA, OS. Retired rows use RE and canceled rows use CN.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "plannedOperationFrom": {
            "title": "Planned online from (YYYY-MM)",
            "pattern": "^$|^\\d{4}-(0[1-9]|1[0-2])$",
            "type": "string",
            "description": "Only planned generators expected to start operating in or after this month. Rows without a planned date are excluded when set."
          },
          "plannedOperationTo": {
            "title": "Planned online to (YYYY-MM)",
            "pattern": "^$|^\\d{4}-(0[1-9]|1[0-2])$",
            "type": "string",
            "description": "Only planned generators expected to start operating in or before this month."
          },
          "onlyNew": {
            "title": "Only new or changed generators",
            "type": "boolean",
            "description": "For scheduled monitoring: return only generators that are new, or whose status, nameplate MW or planned online date changed, since this Actor last returned them to you. Fingerprints are kept in a named key-value store in your account.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 60000,
            "type": "integer",
            "description": "Stop after this many generators. You are only charged for generators returned.",
            "default": 1000
          },
          "failOnEmpty": {
            "title": "Fail the run if nothing is found",
            "type": "boolean",
            "description": "Turn off for scheduled monitors where 'nothing changed this month' is normal.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}