# Surplus Generator & Power Arbitrage Tracker (`bedraggler/surplus-power-arbitrage-tracker`) Actor

Scrapes North American surplus 500-5,000 kW diesel generators across major dealers, fingerprints physical iron to flag cross-broker price spreads, and tracks markdowns.

- **URL**: https://apify.com/bedraggler/surplus-power-arbitrage-tracker.md
- **Developed by:** [Landon Carpenter](https://apify.com/bedraggler) (community)
- **Categories:** Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 normalized generator units

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

## Surplus Industrial Generator & Power Arbitrage Tracker

Live North American **secondary power procurement & arbitrage intelligence** Actor for 500–5,000 kW industrial diesel generators (Caterpillar 3516/C32, Cummins QSK60/QST30, MTU, Kohler), paired with early-signal data center air permit & RTO large-load queue tracking.

While new OEM factory lead times sit at 52–105+ weeks, in-stock secondary units ship in **1–3 weeks**—and identical physical yard iron routinely trades simultaneously across brokers with **$50,000–$170,000+ spreads**.

***

### Key Capabilities

1. **Multi-Dealer Live Catalog Extraction:**
   - **Depco Power Systems** (`depco.com/generator-sets/`)
   - **Generator Source** (`generatorsource.com/inventory/`)
   - **USP\&E Global** (`uspeglobal.com/inventory/diesel-generators/`)
2. **Physical Unit Fingerprinting (`compute_physical_unit_fingerprint`):**
   - Generates normalized hardware signatures (`MAKE-MODEL-KW-YEAR-TIER-50HR_BUCKET`, e.g. `CAT-3516C-1500KW-2014-TIER2-0HR`) to detect cross-broker duplicate listings and identical sister units, surfacing exact dollar spreads (`ARBITRAGE LOWEST` / `SPREAD ALERT`).
3. **Cross-Run Price-Drop & Markdown Ledger (Apify Key-Value Store):**
   - Pass a persistent `historyStoreName` (e.g. `"power-inventory-ledger"`) on scheduled weekly/daily runs to persist `INVENTORY_PRICE_LEDGER` and automatically flag newly discounted inventory (`LIVE PRICE DROP: -$66,000`) week over week.
4. **Early-Signal Data Center Air Permits & RTO Large-Load Queues (Optional):**
   - Emits normalized NSPS Subpart IIII / Title V backup generator filings and ERCOT/PJM large-load interconnection queue records ahead of GC building permits.
5. **Turnkey Executive Deliverables:**
   - Exports `Surplus_Generator_Market_Feed.csv`, `Data_Center_Air_Permit_and_Queue_Signals.csv`, `Weekly_Mission_Critical_Power_Intel_Brief.pdf`, `Weekly_Mission_Critical_Power_Intel_Brief.md`, and `OUTPUT` JSON in the run's Key-Value Store.

***

### Using with AI Agents (Apify MCP Server) & Scheduled Automations

- **Scheduled n8n / Make / Slack Alerts:** Schedule weekly runs with `historyStoreName: "power-inventory-ledger"` and `onlyArbitrageOrMarkdowns: true` to alert procurement desks only when a price drops or an arbitrage spread appears.
- **MCP (`mcp.apify.com`):** Leave `historyStoreName` empty for stateless single-shot research calls from Claude, Cursor, or procurement agents querying current `$/kW` secondary market benchmarks.

***

### Input Parameters

| Field | Type | Description | Default |
| :--- | :--- | :--- | :--- |
| `dealers` | `string[]` | Dealer catalogs (`"depco"`, `"generator_source"`, `"uspe_global"`). | All 3 |
| `minKw` | `integer` | Minimum generator rating (kW). | `1000` |
| `maxKw` | `integer` | Maximum generator rating (kW). | `5000` |
| `manufacturers` | `string[]` | Optional OEM filter (`"Caterpillar"`, `"Cummins"`, etc.). | `[]` |
| `onlyArbitrageOrMarkdowns` | `boolean` | Emit only units with price markdowns or multi-unit/cross-broker spreads. | `false` |
| `includePermitSignals` | `boolean` | Include Title V / NSPS Subpart IIII air permit & RTO queue signals. | `true` |
| `historyStoreName` | `string` | Optional Named Key-Value Store to persist baseline prices across runs. | `""` |
| `useApifyProxy` | `boolean` | Route HTTP requests via Apify Proxy when enabled. | `false` |

***

### Pay-Per-Event (PPE) Pricing Structure

| Event Name | Trigger |
| :--- | :--- |
| `actor-start` | Once per run initialization |
| `generator-unit-normalized` | Per normalized generator record pushed to Dataset |
| `arbitrage-or-markdown-alert` | Per verified price drop (`markdown_usd > 0`) or cross-broker spread detected |
| `early-permit-signal` | Per early-signal air permit / RTO queue record pushed (when enabled) |

# Actor input Schema

## `dealers` (type: `array`):

Public dealer catalogs to scrape (supported: "depco", "generator_source", "uspe_global").

## `minKw` (type: `integer`):

Minimum diesel generator capacity in kW.

## `maxKw` (type: `integer`):

Maximum diesel generator capacity in kW.

## `manufacturers` (type: `array`):

Optional engine/OEM filter (e.g. \["Caterpillar", "Cummins", "MTU"]). Leave empty to include all manufacturers.

## `onlyArbitrageOrMarkdowns` (type: `boolean`):

When enabled, outputs only units showing a verified price markdown or cross-broker/sister-unit fingerprint match.

## `includePermitSignals` (type: `boolean`):

Also emit pre-construction EPA Title V / NSPS Subpart IIII standby generator permit filings and RTO large-load queue signals.

## `historyStoreName` (type: `string`):

Optional Apify Named Key-Value Store (e.g. "power-inventory-ledger") to persist baseline listing prices across scheduled runs and detect week-over-week markdowns. Leave blank to use the run's default store.

## `useApifyProxy` (type: `boolean`):

Enable Apify Proxy routing for HTTP requests if needed.

## Actor input object example

```json
{
  "dealers": [
    "depco",
    "generator_source",
    "uspe_global"
  ],
  "minKw": 1000,
  "maxKw": 5000,
  "manufacturers": [],
  "onlyArbitrageOrMarkdowns": false,
  "includePermitSignals": true,
  "historyStoreName": "",
  "useApifyProxy": false
}
```

# Actor output Schema

## `inventoryDataset` (type: `string`):

No description

## `surplusGeneratorCsv` (type: `string`):

No description

## `airPermitSignalsCsv` (type: `string`):

No description

## `weeklyIntelPdf` (type: `string`):

No description

## `weeklyIntelMarkdown` (type: `string`):

No description

## `summaryOutput` (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("bedraggler/surplus-power-arbitrage-tracker").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("bedraggler/surplus-power-arbitrage-tracker").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 bedraggler/surplus-power-arbitrage-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bedraggler/surplus-power-arbitrage-tracker"
        }
    }
}
```

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/I8atI725R5NAxVa2e/builds/jaiJ7HZpXbBY3vscM/openapi.json
