# US Multi-City Building, Solar & Construction Permits Scraper (`kailouis_labs/us-building-permits-construction-leads-scraper`) Actor

US multi-city building, solar and construction permits from 5 official city open-data portals (NYC, Chicago, Austin, Seattle, San Francisco). Unified CRM schema: address, estimated cost, issue date, permit type, status, contractor, coordinates. No API key, no proxy.

- **URL**: https://apify.com/kailouis_labs/us-building-permits-construction-leads-scraper.md
- **Developed by:** [Kailouis Labs](https://apify.com/kailouis_labs) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 us building permit leads

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 Multi-City Building, Solar & Construction Permits Scraper

Fresh building, solar, roofing, HVAC, electrical and tenant-improvement permits from **five official US city open-data portals**, mapped into one CRM-ready schema. Every row is a permit that was actually issued: address, estimated job cost, issue date, permit type and status, the applicant or contractor named on the permit, and a link back to the source portal.

Sold to roofers, solar installers, HVAC and electrical contractors, general contractors, construction suppliers, commercial real-estate brokers and lead resellers who call on new projects before the competition sees them.

### Cities covered (official Socrata open data, no API key)

| City | Portal | Dataset |
| --- | --- | --- |
| New York City, NY | data.cityofnewyork.us | `rbx6-tga4` DOB NOW: Build approved permits |
| Chicago, IL | data.cityofchicago.org | `ydr8-5enu` Building permits |
| Austin, TX | data.austintexas.gov | `3syk-w9eu` Issued construction permits |
| Seattle, WA | data.seattle.gov | `76t5-zqzr` Building permits |
| San Francisco, CA | data.sfgov.org | `i98e-djp9` Building permits |

### What you get per lead

| Field | What it tells you |
| --- | --- |
| `uid` | stable id (`city:permitNumber:issueDate`) for week-over-week diffing |
| `city`, `state`, `zipCode` | the metro and the postal area to route the lead |
| `permitNumber`, `permitType`, `permitClass` | what was permitted and at what scale |
| `segment` | Commercial / Residential / Unclassified, inferred from class, permit type and cost |
| `status`, `issueDate` | where the job stands and how fresh it is |
| `estimatedCostUsd` | the money: reported or estimated job value in USD |
| `address`, `latitude`, `longitude`, `hasCoordinates` | where the work happens, ready for routing or a map |
| `workDescription` | the scope of work in the portal's own words |
| `contractorOrApplicant` | contractor company, applicant organisation or owner on the permit |
| `matchedKeywords` | which trade presets matched (solar, roof, hvac, ...) |
| `sourcePortal`, `recordUrl` | the dataset page and the record, for verification |

### Input

| Field | Default | Notes |
| --- | --- | --- |
| `cities` | all five | `nyc`, `chi`, `aus`, `sea`, `sfo` |
| `daysBack` | `30` | issue-date window |
| `minEstimatedCostUsd` | `50000` | `250000` for commercial and major projects, `0` to disable |
| `keywords` | empty | trade presets: `solar`, `roof`, `hvac`, `new construction`, `tenant improvement`, `ev charger`, `electrical`, `plumbing`, `pool`, `demolition` |
| `permitType` | empty | substring match on the portal's permit type |
| `maxItems` | `50` | a default run finishes in seconds |
| `maxPerCity` | empty | cap one busy city so the dataset stays balanced |

Filters are pushed down into the portal's own query language (SoQL), so a run costs a handful of small HTTPS requests: no browser, no proxy, no API key.

### Example inputs

**Solar and roofing crews in the last two weeks, $50k+ jobs**

```json
{ "cities": ["nyc", "chi", "aus", "sea", "sfo"], "daysBack": 14, "minEstimatedCostUsd": 50000, "keywords": ["solar", "roof"], "maxItems": 100 }
```

**Commercial projects only, one metro, big money**

```json
{ "cities": ["nyc"], "daysBack": 30, "minEstimatedCostUsd": 250000, "permitType": "New Building", "maxItems": 50 }
```

**Weekly retainer feed**

```json
{ "daysBack": 7, "minEstimatedCostUsd": 50000, "maxItems": 500 }
```

### Output sample

```json
{
  "uid": "nyc:B01382919-I1-SF:2026-11-18",
  "city": "New York",
  "state": "NY",
  "permitNumber": "B01382919-I1-SF",
  "permitType": "New Building",
  "permitClass": null,
  "segment": "Commercial",
  "status": "Permit Issued",
  "issueDate": "2026-11-18",
  "estimatedCostUsd": 1250000,
  "address": "120 BROADWAY",
  "zipCode": "10271",
  "latitude": 40.7081,
  "longitude": -74.0111,
  "workDescription": "NEW BUILDING - 12 STORY MIXED USE ...",
  "contractorOrApplicant": "ACME BUILDERS LLC",
  "matchedKeywords": [],
  "hasCoordinates": true,
  "sourcePortal": "https://data.cityofnewyork.us/d/rbx6-tga4",
  "recordUrl": null
}
```

### Pricing and run cost

Pay per result: **$6.00 per 1,000 leads** ($0.006 each) plus the standard Apify platform start. A 512 MB run of 500 permits typically peaks well under 200 MB and takes a few seconds per city, because every filter runs on the portal side and each payload is trimmed to the mapped columns.

### Notes on data

- Issue dates are the portal's own issue dates; a permit can be updated later by the city, so the same `uid` may gain a new status.
- Costs differ per city: NYC reports an estimated job cost, Chicago a reported cost, San Francisco both estimated and revised cost (the revised value wins when present).
- Some rows have no coordinates; `hasCoordinates` tells you which ones are mappable.

# Actor input Schema

## `cities` (type: `array`):

Empty = every supported metro (New York, Chicago, Austin, Seattle, San Francisco).

## `daysBack` (type: `integer`):

Date window on the permit issue date. 30 is the default; raise it for a bigger first delivery.

## `minEstimatedCostUsd` (type: `integer`):

50000 targets real work; 250000 targets commercial and major projects. 0 disables the filter.

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

Trade presets matched in the work description and permit type. Presets: solar, roof, hvac, new construction, tenant improvement, ev charger, electrical, plumbing, pool, demolition. Empty = all permits.

## `permitType` (type: `array`):

Optional text filter on the portal permit type, e.g. Commercial, Electrical, Plumbing, Mechanical. Empty = all types.

## `maxItems` (type: `integer`):

The run stops at this many rows (pay-per-event rows are billed per delivered item).

## `maxPerCity` (type: `integer`):

Optional cap per metro so a single busy portal cannot fill the whole dataset. 0 = no cap.

## Actor input object example

```json
{
  "daysBack": 30,
  "minEstimatedCostUsd": 50000,
  "maxItems": 50,
  "maxPerCity": 0
}
```

# Actor output Schema

## `datasetItems` (type: `string`):

No description

## `datasetItemsCsv` (type: `string`):

No description

## `runSummary` (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("kailouis_labs/us-building-permits-construction-leads-scraper").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("kailouis_labs/us-building-permits-construction-leads-scraper").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 kailouis_labs/us-building-permits-construction-leads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kailouis_labs/us-building-permits-construction-leads-scraper"
        }
    }
}
```

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/aqiU2J1AvfPOEcyFw/builds/orGV3QjHWealKfCVJ/openapi.json
