# US Power Plant Expansion & Retirement Pipeline (`afkdigital/us-power-plant-expansion-retirement-pipeline`) Actor

Official EIA-860M and EIA-860 generator inventory: planned, operating, retirement-announced and retired units. Deduplicated by plant and generator; nameplate MW; JSON/CSV.

- **URL**: https://apify.com/afkdigital/us-power-plant-expansion-retirement-pipeline.md
- **Developed by:** [AFK Digital](https://apify.com/afkdigital) (community)
- **Categories:** Business, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$9.00 / 1,000 unique generator returneds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## US Power Plant Expansion & Retirement Pipeline

Find generator-level planned additions, operating units with reported retirement plans, and retired generators from official public EIA files. Results are one row per **(plant_id, generator_id)**. A plant can contain many generators; capacity_mw is **generator nameplate MW**, never a plant aggregate or net summer capability.

### Sources and precedence

At run time the Actor selects the latest accessible EIA-860M monthly workbook from EIA's published listing, with a recent-month direct-file fallback if the listing is temporarily unavailable. It reads Operating, Planned and Retired tabs (including Puerto Rico), and combines them with the latest accessible annual EIA-860 ZIP from a preceding reporting year (Plant and Generator sheets). **Monthly wins for the same plant_id + generator_id**, even if a unit changed status; annual supplies only missing units and plant city lookup. The source_period and source_url on every row identify the winning generator source. Annual city join is keyed by plant ID, never fuzzy name. Missing city is left as state only. Canceled/postponed projects are excluded. Retired monthly records cover retirements since 2002; annual-only older retired rows can appear.

EIA-860M labels operating codes OP (operating), SB (standby/backup), OS (out of service, not expected back next calendar year), and OA (out of service, expected back next calendar year). Proposed codes include P (planned before regulatory approval), L (approval pending), T (approved), U/V (construction at or below/above 50%), and TS (construction complete, pre-commercial). The Actor preserves these codes and source descriptions. Retired rows have RE and an actual retirement month; a planned retirement month on an operating row does not turn it into a retired unit.

The monthly data are preliminary, and EIA states that reported capacity is an estimate, not a commitment. Planned operation and retirement dates are month precision and may change. They do **not** establish a final investment decision, procurement, tender, sale or firm retirement commitment.

Official sources: [EIA-860M](https://www.eia.gov/electricity/data/eia860m/), [EIA-860](https://www.eia.gov/electricity/data/eia860/), [EIA reuse](https://www.eia.gov/about/copyrights_reuse.php). Source: U.S. Energy Information Administration (monthly release date shown on source page). EIA does not endorse this Actor.

### Input

- state: two-letter state or PR.
- energySource: EIA primary energy source code such as SUN, WND, NG, MWH.
- status: planned, operating, retirement_announced (operating units with a planned retirement month), or retired.
- minCapacityMw: minimum generator nameplate MW.
- plannedDateFrom/To: inclusive YYYY-MM bounds on planned operation for planned rows or planned retirement for operating rows. Retired rows have no planned date; use status=retired without these filters.
- operatorName: case-insensitive substring.
- maxResults: 1–1000, default 25. Sample TX planned >=100 MW, 5 results.

The default dataset exports JSON and CSV through Apify's Dataset UI/API; no duplicate output is pushed. Each row includes status_code and status_detail (EIA source status where available), actual_retirement_date for retired rows, and the requested identifiers, generator data, dates, location and provenance. The SUMMARY key-value record reports source periods, counts and charges.

### Pricing

Pay per event: **$0.009 for each delivered unique generator** (9 USD/1,000). Source duplicates, filtered records, download attempts and plant lookups have no result event charge. maxResults and Apify's run max-charge limit cap output. Infrastructure costs follow the Store pricing panel. No EIA API key required. Downloads are bounded to 65 MB/file, ZIP members to 30 MB, with retry and a processing deadline. EIA's public files may be temporarily unavailable; the run fails clearly instead of billing empty or invented records.

# Actor input Schema

## `state` (type: `string`):

Two-letter US state or PR.

## `energySource` (type: `string`):

EIA code, e.g. SUN, WND, NG, MWH.

## `status` (type: `string`):

retirement_announced selects operating generators with a reported future retirement month.

## `minCapacityMw` (type: `number`):

Minimum generator nameplate capacity in MW.

## `plannedDateFrom` (type: `string`):

YYYY-MM. Planned operation for planned units, planned retirement for operating units.

## `plannedDateTo` (type: `string`):

Inclusive month bound, YYYY-MM.

## `operatorName` (type: `string`):

Case-insensitive operator name substring.

## `maxResults` (type: `integer`):

Hard cap on delivered rows and event charges. Cloud run max charge can further restrict it.

## Actor input object example

```json
{
  "minCapacityMw": 0,
  "maxResults": 25
}
```

# Actor output Schema

## `generatorsJson` (type: `string`):

No description

## `generatorsCsv` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("afkdigital/us-power-plant-expansion-retirement-pipeline").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("afkdigital/us-power-plant-expansion-retirement-pipeline").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call afkdigital/us-power-plant-expansion-retirement-pipeline --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,afkdigital/us-power-plant-expansion-retirement-pipeline"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/1Dm7A6wfSaNxZjdJx/builds/p2s9VW8ff01rS7ZD8/openapi.json
