# NYC Solar Permits API - DOB NOW Solar Installations (`themartygriffin/nyc-solar-permits-feed`) Actor

NYC solar permits as a competitor pipeline: 264 solar permits in the 30 days to 2026-11-19, each one attributed to the firm that filed it, with job cost, address, ZIP and BIN. 24 firms in that window; SUNRUN INSTALLATION SVC busiest with 62. $0.004 per permit.

- **URL**: https://apify.com/themartygriffin/nyc-solar-permits-feed.md
- **Developed by:** [Marty Griffin](https://apify.com/themartygriffin) (community)
- **Categories:** Real estate, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.00 / 1,000 solar permits

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

## NYC Solar Permits — every install, attributed to the installer

New York approves about 261 solar permits a month and 4,776 a year, and each one names the firm that filed
it together with the job's estimated value. Run this weekly and you have the residential solar pipeline for
all five boroughs, job by job: who filed it, what it is worth, where the building is, and whether it has
been approved.

In the 30 days to 2026-11-16 that list was led by SUNRUN INSTALLATION SVC (62 permits), MOMENTUM SOLAR (53)
and NYSS LLC (36), across 24 firms.

### What you do with it

- Bench your own filings against named competitors, by borough or ZIP code.
- Find who is winning the large jobs: every row carries the estimated job cost, and the city fills it on
  100 percent of permits.
- Join to the building with BIN, BBL and coordinates, for roof age, size or ownership.
- Schedule a weekly `new` run and diff it, to see new installs as the city posts them.

### Who is filing, in the 30 days to 2026-11-16

| Installer (filed by) | Permits |
|---|---|
| SUNRUN INSTALLATION SVC | 62 |
| MOMENTUM SOLAR | 53 |
| NYSS LLC | 36 |
| BROOKLYN SOLARWORKS LLC | 20 |
| KAMTECH RESTORATION CORP | 18 |
| TRINITY SOLAR LLC | 13 |

24 distinct firms filed solar permits in that window. Queens carries the most (112), then Staten Island
(61), Bronx (42), Brooklyn (39) and Manhattan (7).

### What a record contains

One row per issued solar permit. Field names are the Actor's; the city column it comes from is on the
right.

| Field | Source column |
|---|---|
| `permit_id` | composed from `work_permit`, `sequence_number`, `work_type` |
| `job_filing_number`, `work_permit`, `sequence_number` | same |
| `approved_date`, `issued_date`, `expired_date` | same |
| `work_type` | `work_type` (always `Solar`) |
| `applicant_business_name`, `applicant_business_address` | same |
| `applicant_license`, `permittee_license_type` | `applicant_license`, `permittee_s_license_type` |
| `estimated_job_cost` | `estimated_job_costs`, converted to a number |
| `job_description`, `work_on_floor` | same |
| `house_no`, `street_name`, `address`, `borough`, `zip_code`, `bin`, `block`, `lot`, `bbl` | same |
| `community_board`, `council_district`, `census_tract`, `nta`, `latitude`, `longitude` | same |
| `permit_status`, `filing_reason`, `first_seen_at`, `permit_url` | derived |

Fill rates on the 261 solar permits in the window: installer name 100%, estimated job cost 100%, ZIP 100%,
house number 100%, BIN 100%.

One data detail worth knowing: the city stores `estimated_job_costs` as text in this dataset, so the Actor
converts it to a number. Filters on cost work on the converted value.

### What you pay for

$4.00 per 1,000 solar permits, charged once per permit the first time it is written to your dataset. A
permit already reported to you is never charged again, and a run that finds nothing new costs nothing.

The full New York feed, all trades, is a separate Actor at $5.00 per 1,000 permits. This one is the same
source pre-filtered to solar at a lower price, for buyers who do not want the other trades.

#### A wide backfill may take more than one run

Solar is about 1,000 permits a quarter, so a 90-day backfill usually finishes in a single run. If a run
stops early because the platform's per-run charge cap was reached, its watermark is saved and the next run
with the same `state_key` picks up exactly where it left off. Nothing already reported is charged again.

### Input

| Field | Default | Meaning |
|---|---|---|
| `mode` | `backfill` | `backfill` returns the last `lookback_days` and saves a watermark; `new` returns only permits not reported before, re-scanning the previous month for late publishes |
| `lookback_days` | 30 | Window for `backfill` |
| `work_types` | `["Solar"]` | Pre-set to solar. Clear it and you get every trade |
| `boroughs` | empty (all five) | Manhattan, Brooklyn, Queens, Bronx, Staten Island |
| `zip_codes` | empty | Exact ZIPs |
| `applicant_names` | empty | Text fragments matched against the filing firm, e.g. `SUNRUN` |
| `min_job_cost`, `max_job_cost` | empty | Filter on the converted job cost |
| `max_results` | 500 | Cap on newly charged permits per run; the rest arrive on the next `new` run |
| `include_already_reported` | false | Also return permits you already paid for, free |
| `state_key` | `default` | Keep separate watermarks for separate territories or installers |

### Example record

```json
{
  "permit_id": "S01489110-I1-SL|1|Solar",
  "job_filing_number": "S01489110-I1",
  "work_permit": "S01489110-I1-SL",
  "approved_date": "2026-11-13",
  "work_type": "Solar",
  "applicant_business_name": "KAMTECH RESTORATION CORP",
  "estimated_job_cost": 84480,
  "job_description": "ROOFTOP SOLAR INSTALLATION. NO CHANGE TO USE, OCCUPANCY OR EGRESS.",
  "work_on_floor": "Roof",
  "house_no": "113",
  "street_name": "GOWER STREET",
  "borough": "Staten Island",
  "zip_code": "10314",
  "bin": "5125288",
  "bbl": "5007120081",
  "permit_status": "Permit Issued",
  "source": "NYC Department of Buildings, DOB NOW: Build (approved permits), data.cityofnewyork.us rbx6-tga4"
}
```

### Data source

NYC Department of Buildings, **DOB NOW: Build — Approved Permits**, dataset `rbx6-tga4` on
`data.cityofnewyork.us`. Public open data, published daily on weekdays. One boundary: a solar permit that
is not in `rbx6-tga4` is not in this feed.

Built and maintained by [themartygriffin](https://apify.com/themartygriffin). Issues or a missing field you
need: open an issue on the Actor's page.

# Actor input Schema

## `mode` (type: `string`):

'backfill' returns permits approved in the last N days and saves the watermark; it is the default, so a first run returns real results. 'new' returns only permits not reported by an earlier run, re-scanning the previous month for late publishes, and needs saved state - it exits with an empty dataset if you have never run 'backfill'.

## `lookback_days` (type: `integer`):

Backfill only. Return permits approved in the last this many days (1 to 365, the same span the Actor remembers reported permits for). The city approves permits on weekdays, so the newest 1-3 days can be missing on a Monday.

## `include_already_reported` (type: `boolean`):

Backfill only. Controls whether permit lines an earlier run already reported appear in your dataset again. Off (the default): they are left out. On: they are returned again. It never changes what you are charged: a permit is billed once, the first time it is reported, and re-reported permits are free. Permits are remembered for 365 days of approval dates, which covers the longest lookback.

## `work_types` (type: `array`):

Pre-set to 'Solar'. Empty = every trade, like the full New York feed. Other values: 'General Construction', 'Plumbing', 'Sidewalk Shed', 'Supported Scaffold', 'Mechanical Systems', 'Sprinklers', 'Structural', 'Sign'.

## `boroughs` (type: `array`):

Exact feed values: 'Manhattan', 'Brooklyn', 'Queens', 'Bronx', 'Staten Island'. Empty = all five.

## `zip_codes` (type: `array`):

5-digit ZIP codes, e.g. 11217. Empty = all.

## `applicant_names` (type: `array`):

Match the firm that filed the permit (applicant_business_name) on any of these text fragments, case-insensitive, e.g. 'SUNRUN', 'SCAFFOLD'. Empty = all firms.

## `keywords` (type: `array`):

Return a permit if its job description contains ANY of these text fragments (case-insensitive), e.g. solar, sidewalk shed, restaurant, boiler. This is a substring match, so 'solar' also matches longer words that contain it.

## `min_job_cost` (type: `integer`):

Skip permits whose estimated job cost is below this. New York publishes a cost on every permit, so this filter rarely drops a row.

## `max_job_cost` (type: `integer`):

Skip permits whose estimated job cost is above this.

## `max_results` (type: `integer`):

Safety cap on charged (never reported before) permits per run. Default 500, about two months of solar volume. Permits returned again for free do not count.

## `state_key` (type: `string`):

Name of the saved watermark. Use a different name for each filter set you schedule, because 'already reported' is tracked per name. Billing is not per name: a permit is charged once on your account however many state names return it.

## Actor input object example

```json
{
  "mode": "backfill",
  "lookback_days": 30,
  "include_already_reported": true,
  "work_types": [
    "Solar"
  ],
  "max_results": 500,
  "state_key": "default"
}
```

# Actor output Schema

## `results` (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 = {
    "mode": "backfill",
    "lookback_days": 30,
    "include_already_reported": true,
    "work_types": [
        "Solar"
    ],
    "max_results": 500,
    "state_key": "default"
};

// Run the Actor and wait for it to finish
const run = await client.actor("themartygriffin/nyc-solar-permits-feed").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 = {
    "mode": "backfill",
    "lookback_days": 30,
    "include_already_reported": True,
    "work_types": ["Solar"],
    "max_results": 500,
    "state_key": "default",
}

# Run the Actor and wait for it to finish
run = client.actor("themartygriffin/nyc-solar-permits-feed").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 '{
  "mode": "backfill",
  "lookback_days": 30,
  "include_already_reported": true,
  "work_types": [
    "Solar"
  ],
  "max_results": 500,
  "state_key": "default"
}' |
apify call themartygriffin/nyc-solar-permits-feed --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,themartygriffin/nyc-solar-permits-feed"
        }
    }
}
```

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/3hZGtCoLkyEjEGV9E/builds/G5bpFafB5Mv8liP5C/openapi.json
