# IRA Energy Community Bonus Screener — 10% ITC/PTC Adder (`malonestar/ira-energy-community-bonus-screener`) Actor

Point-in-polygon screener that checks project-site coordinates against DOE/NETL coal-closure census tracts and Fossil Fuel Employment MSAs to determine IRA energy-community 10% ITC/PTC bonus eligibility.

- **URL**: https://apify.com/malonestar/ira-energy-community-bonus-screener.md
- **Developed by:** [Kyle Maloney](https://apify.com/malonestar) (community)
- **Categories:** Real estate, Developer tools, Agents
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## IRA Energy Community Bonus Screener — 10% ITC/PTC Adder

Checks whether a project site's coordinates fall inside an IRA "energy community," which earns a 10-percentage-point Investment Tax Credit adder (sections 48/48E) or a 10% Production Tax Credit increase (sections 45/45Y). Built for clean-energy developers, tax-equity investors, and their counsel who need a defensible yes/no on the bonus before it goes into a pro forma.

### How it works

You pass a list of sites (`lat`/`lon`, WGS84). For each one the actor runs a server-side point-in-polygon query against the two authoritative DOE/NETL energy-community layers hosted at `arcgis.netl.doe.gov` and returns one row per site:

1. **2024 Coal Closure Energy Communities** (4,325 census-tract polygons) — a tract with a coal mine closure, a coal-fired generator retirement, or a tract that directly adjoins one. Every polygon in this layer qualifies.
2. **2024 MSAs/non-MSAs that are Energy Communities** (901 polygons) — a Metro or non-Metro Statistical Area that meets both the Fossil Fuel Employment threshold and the unemployment-rate requirement. Every polygon here qualifies too.

A site qualifies if it intersects either layer. The query sends `inSR=4326` so lon/lat points transform correctly against the NAD83 layers.

Not screened: the third statutory category, Brownfield Sites, has no single national polygon layer, so a "does not qualify" result here does not rule out a brownfield-based qualification. This is an informational screen, not tax advice or an IRS determination.

### Example input

```json
{
  "assets": [
    { "lat": 37.8, "lon": -81.5, "label": "Raleigh County, WV solar site" },
    { "lat": 44.29, "lon": -105.5, "label": "Gillette, WY wind site" },
    { "lat": 40.7484, "lon": -73.9857, "label": "Manhattan, NY (control)" }
  ],
  "maxAssets": 500
}
````

### Key output fields

- `qualifies_for_ira_energy_community_bonus` — the headline yes/no; true if the site hits either category. Null if the coordinate was invalid.
- `bonus_adder` — `10% ITC / +10% PTC` when qualifying.
- `in_coal_closure_community`, `coal_closure_tract_geoid`, `closure_type` (mine closure, generator retirement, both, or adjacency), `coal_closure_county`, `coal_closure_state`.
- `in_energy_community_msa`, `msa_name`, `msa_type` (MSA or non-MSA), `msa_county`, `msa_state`.
- `determination_basis` — a plain-language sentence you can paste into a diligence memo; `determination_categories` lists which categories matched.
- `source_citation`, `disclaimer`, `error`, `checked_at`.

A site in neither category returns a clean `false` row, not an error.

### Who uses it

- Solar, wind, storage, hydrogen, and RNG developers modeling the 10% bonus into a project pro forma.
- Tax-equity investors, banks, and law firms running eligibility diligence across a portfolio.
- Site-selection and EPC teams comparing candidate parcels.
- AI agents that need a structured energy-community lookup.

### Use as an MCP tool

The actor is callable by AI agents (Claude, Cursor, and others) through mcp.apify.com. It is a Pay-Per-Result API: pass coordinates, get back a structured eligibility determination with the census-tract GEOID or MSA name that drove it.

### Data sources

Both layers are public, keyless ArcGIS FeatureServers published by the U.S. DOE / National Energy Technology Laboratory (NETL 2024v1), backing IRS Notices 2023-29, 2023-45, 2023-47, and 2024-30. There is no API key and no scraping — these are the same layers behind the DOE energy-community mapping tool.

### FAQ

**Does a census tract adjacent to a coal closure qualify?** Yes. The statute qualifies both a coal-closure tract and one that directly adjoins it; `closure_type` tells you which case applies.

**What is the bonus worth?** A 10-percentage-point ITC adder, or a 10% increase to the PTC, for a qualifying clean-energy project.

**Why might a site fail here but still get the bonus?** Because the Brownfield Site category is not part of this screen.

**Is this tax advice?** No. Confirm against current IRS guidance and the DOE mapping tool, and consult a tax advisor before claiming the credit.

# Actor input Schema

## `assets` (type: `array`):

List of project sites to screen for the IRA energy-community 10% bonus. Each item is an object with numeric lat and lon (WGS84 decimal degrees) and an optional label. One billable result row is returned per asset. Example: \[{"lat":37.8,"lon":-81.5,"label":"Solar site A"}].

## `maxAssets` (type: `integer`):

Maximum number of assets to screen from the assets list (safety cap). Extra assets beyond this are ignored.

## Actor input object example

```json
{
  "assets": [
    {
      "lat": 37.8,
      "lon": -81.5,
      "label": "Raleigh County, WV (coal-closure tract + Beckley MSA)"
    },
    {
      "lat": 44.29,
      "lon": -105.5,
      "label": "Gillette, WY (coal-closure adjacency)"
    },
    {
      "lat": 40.7484,
      "lon": -73.9857,
      "label": "Manhattan, NY (control - does not qualify)"
    }
  ],
  "maxAssets": 500
}
```

# Actor output Schema

## `results` (type: `string`):

The default dataset.

# 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 = {
    "assets": [
        {
            "lat": 37.8,
            "lon": -81.5,
            "label": "Raleigh County, WV (coal-closure tract + Beckley MSA)"
        },
        {
            "lat": 44.29,
            "lon": -105.5,
            "label": "Gillette, WY (coal-closure adjacency)"
        },
        {
            "lat": 40.7484,
            "lon": -73.9857,
            "label": "Manhattan, NY (control - does not qualify)"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("malonestar/ira-energy-community-bonus-screener").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 = { "assets": [
        {
            "lat": 37.8,
            "lon": -81.5,
            "label": "Raleigh County, WV (coal-closure tract + Beckley MSA)",
        },
        {
            "lat": 44.29,
            "lon": -105.5,
            "label": "Gillette, WY (coal-closure adjacency)",
        },
        {
            "lat": 40.7484,
            "lon": -73.9857,
            "label": "Manhattan, NY (control - does not qualify)",
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("malonestar/ira-energy-community-bonus-screener").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "assets": [
    {
      "lat": 37.8,
      "lon": -81.5,
      "label": "Raleigh County, WV (coal-closure tract + Beckley MSA)"
    },
    {
      "lat": 44.29,
      "lon": -105.5,
      "label": "Gillette, WY (coal-closure adjacency)"
    },
    {
      "lat": 40.7484,
      "lon": -73.9857,
      "label": "Manhattan, NY (control - does not qualify)"
    }
  ]
}' |
apify call malonestar/ira-energy-community-bonus-screener --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=malonestar/ira-energy-community-bonus-screener",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "IRA Energy Community Bonus Screener — 10% ITC/PTC Adder",
        "description": "Point-in-polygon screener that checks project-site coordinates against DOE/NETL coal-closure census tracts and Fossil Fuel Employment MSAs to determine IRA energy-community 10% ITC/PTC bonus eligibility.",
        "version": "1.0",
        "x-build-id": "mOUUogZXaRw3EayE4"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/malonestar~ira-energy-community-bonus-screener/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-malonestar-ira-energy-community-bonus-screener",
                "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/malonestar~ira-energy-community-bonus-screener/runs": {
            "post": {
                "operationId": "runs-sync-malonestar-ira-energy-community-bonus-screener",
                "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/malonestar~ira-energy-community-bonus-screener/run-sync": {
            "post": {
                "operationId": "run-sync-malonestar-ira-energy-community-bonus-screener",
                "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": {
                    "assets": {
                        "title": "Assets (project-site coordinates to screen)",
                        "type": "array",
                        "description": "List of project sites to screen for the IRA energy-community 10% bonus. Each item is an object with numeric lat and lon (WGS84 decimal degrees) and an optional label. One billable result row is returned per asset. Example: [{\"lat\":37.8,\"lon\":-81.5,\"label\":\"Solar site A\"}]."
                    },
                    "maxAssets": {
                        "title": "Max assets",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of assets to screen from the assets list (safety cap). Extra assets beyond this are ignored.",
                        "default": 500
                    }
                }
            },
            "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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
