# US Building Permits Scraper - 16 Cities, Contractor Leads (`onomatopoeia_dev/building-permits-scraper`) Actor

Issued building permits from 16 official US city open-data portals (NYC, Chicago, LA, SF, Austin, Denver, DC...) in one clean schema. Filter by trade, value and date; only-new mode for leads.

- **URL**: https://apify.com/onomatopoeia_dev/building-permits-scraper.md
- **Developed by:** [onomatopoeia](https://apify.com/onomatopoeia_dev) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 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/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 Building Permits Scraper - 16 Cities, Contractor Leads

**Export issued building permits from 16 US cities and counties in one clean, normalized table: permit number, type, work description, issue date, project value, address, ZIP, coordinates, contractor, owner and trade tags. Download it as JSON, CSV or Excel.**

This **building permit scraper** reads only **official government open-data APIs**: Socrata (NYC, Chicago, LA, SF, Seattle, Austin and more), ArcGIS (Denver, Washington DC, Columbus, Las Vegas) and Carto (Philadelphia). It needs **no login, no API key and no proxies**. It **honors robots.txt and Crawl-delay**, and it never adds owner phone numbers or e-mail addresses.

> Not affiliated with or endorsed by any city, county or open-data platform. Data comes from the public records each government publishes.

### What can you do with it?

- **Construction and home-services leads.** Find new roofing, solar, HVAC, electrical, plumbing, pool, fence, ADU and remodel permits, with the contractor and the project value.
- **Daily lead alerts.** Schedule a run with **Only new permits since the last run** turned on. Each run delivers only permits you have not received yet.
- **Supplier and B2B sales.** See which contractors pull the most permits, where, and for how much.
- **Real-estate and market research.** Track new construction, additions and demolitions by ZIP code, neighborhood or value.
- **Data feeds and AI datasets.** The columns are the same for all 16 cities, so you can compare cities without writing a separate parser for each one.

### Why this Actor

| | |
|---|---|
| **16 cities in one run** | Pick any mix of cities. Every row has the same columns, whichever portal it came from. |
| **Normalized fields** | `issueDate` (YYYY-MM-DD), `estimatedValue` (USD number), `zipCode`, `latitude`/`longitude`, `contractorName`, `ownerName`, `propertyType` and `tradeTags`, so you can filter and sort the same way everywhere. |
| **Trade tags** | Each permit is tagged from its type and description, for example `roofing`, `solar`, `hvac`, `electrical`, `plumbing`, `new-construction`, `addition-alteration`, `demolition`, `pool`, `ev-charging`, `adu`. Filter on them directly. |
| **Filters before you pay** | Date range (absolute or relative such as "7 days"), trades, keywords, permit type, residential/commercial, minimum and maximum value, ZIP codes, contractor required. Only matching permits are stored and billed. |
| **Only-new mode for leads** | Remembers what it delivered (per saved search) and re-checks the last 14 days, because cities publish some permits late. You are never billed twice for the same permit. |
| **Newest first** | Permits are read newest first and merged across a city's datasets (for example Denver residential and commercial). |
| **Official sources only** | City and county open-data APIs. No HTML scraping, no browser, no proxies. |
| **Clear reporting** | A per-city report shows the permits read, matched and stored, plus any portal problems. Problems are never billed rows. |
| **Spend control** | Respects your **maximum cost per run**, stops cleanly, and resumes after Apify platform migrations without duplicate rows. |

### Supported cities

| City key | City | Source (official portal) | Highlights |
|---|---|---|---|
| `new-york` | New York City, NY | NYC Open Data, DOB NOW: Build Approved Permits | job cost, contractor and license, owner |
| `chicago` | Chicago, IL | Chicago Data Portal, Building Permits | reported cost, general contractor, owner, fees |
| `los-angeles` | Los Angeles, CA | LA Open Data, LADBS Building Permits | valuation, solar/EV flags |
| `san-francisco` | San Francisco, CA | DataSF, Building Permits | estimated/revised cost, units |
| `seattle` | Seattle, WA | Seattle Open Data, Building Permits | project cost, contractor, housing units |
| `austin` | Austin, TX | Austin Open Data, Issued Construction Permits | valuation, contractor and business phone |
| `philadelphia` | Philadelphia, PA | OpenDataPhilly (L\&I permits, Carto) | contractor, owner, units |
| `denver` | Denver, CO | Denver Open Data, residential and commercial construction permits | valuation, contractor |
| `washington-dc` | Washington, DC | Open Data DC, Building Permits by year | owner, applicant, fees |
| `columbus` | Columbus, OH | Columbus Open Data, Building Permits | value, contractor, square feet |
| `las-vegas` | Las Vegas, NV | City of Las Vegas Open Data, Building Permits | valuation, contractor, license |
| `new-orleans` | New Orleans, LA | data.nola.gov, Permits (BLDS) | project cost, contractor, license |
| `baton-rouge` | Baton Rouge, LA | Open Data BR, EBR Building Permits | project value, contractor, owner |
| `cincinnati` | Cincinnati, OH | CincyInsights, Building Permits | project cost, company |
| `montgomery-county-md` | Montgomery County, MD | dataMontgomery, residential and commercial permits | declared valuation |
| `mesa` | Mesa, AZ | Mesa Data Portal, Building Permits | valuation, contractor and license |

Fields that a city does not publish are `null` (for example, LA and San Francisco permit datasets have no contractor column).

### Input

| Field | Type | Description |
|---|---|---|
| `cities` | array | City keys from the table above. Default: `new-york`, `chicago`, `los-angeles`. |
| `issuedAfter` | string | Issued on or after: `2026-01-31` or relative, such as `7 days`, `2 weeks`, `3 months`. Empty = last 12 months. |
| `issuedBefore` | string | Issued on or before (same formats). |
| `trades` | array | Keep permits with any of these trade tags (`roofing`, `solar`, `hvac`, `electrical`, `plumbing`, `new-construction`, `addition-alteration`, `demolition`, `pool`, `fence`, `sign`, `windows-doors`, `fire-protection`, `ev-charging`, `adu`, `deck-patio`, `foundation-structural`, `elevator`). |
| `keywords` | array | Keep permits whose type, description, contractor or address contains any of these words. |
| `permitTypes` | array | Keep permits whose type, subtype or work class contains any of these texts. |
| `propertyType` | string | `any` (default), `residential` or `commercial`. |
| `minValue` / `maxValue` | integer | Project value range in USD. Permits without a value are left out when either is set. |
| `contractorRequired` | boolean | Only permits that name a contractor. |
| `zipCodes` | array | ZIP codes or prefixes (`787` = 787xx). |
| `onlyNew` | boolean | Only permits not delivered by an earlier run with the same `stateKey`. |
| `stateKey` | string | Name of the saved search for `onlyNew` (default `default`). Use one per schedule. |
| `maxItems` | integer | Total permits across all cities (default 100). Every permit row is one billed item. |
| `maxItemsPerCity` | integer | Optional cap per city. |
| `maxScannedPerCity` | integer | Safety limit on how many permits are scanned per city for narrow filters (default 25,000). |
| `includeRawRecord` | boolean | Add the city's original record as `raw` (phone, e-mail, owner name and owner mailing-address fields removed). |

#### Example inputs

**Last 7 days of permits in three cities**

```json
{ "cities": ["new-york", "chicago", "los-angeles"], "issuedAfter": "7 days", "maxItems": 500 }
```

**Solar leads over $10,000 in Austin, Montgomery County and LA**

```json
{ "cities": ["austin", "montgomery-county-md", "los-angeles"], "trades": ["solar"], "minValue": 10000, "issuedAfter": "30 days" }
```

**Daily roofing alerts for Denver (schedule this once a day)**

```json
{ "cities": ["denver"], "trades": ["roofing"], "onlyNew": true, "stateKey": "denver-roofing", "maxItems": 200 }
```

**Big commercial projects with a named contractor**

```json
{ "cities": ["chicago", "new-york", "seattle", "washington-dc"], "propertyType": "commercial", "minValue": 1000000, "contractorRequired": true, "issuedAfter": "3 months" }
```

### Output

One row per issued permit. Example (Chicago):

```json
{
  "city": "Chicago",
  "cityKey": "chicago",
  "state": "IL",
  "permitId": "101087450",
  "permitType": "RENOVATION/ALTERATION",
  "permitSubtype": "SELF CERT",
  "workClass": "PERMIT ISSUED (FEE DUE)",
  "description": "SELF-CERT 2019 CBRC: INTERIOR ALTERATIONS ON THE 2ND FLOOR FOR THE REPLACEMENT OF ...",
  "status": "ACTIVE",
  "propertyType": null,
  "tradeTags": ["hvac", "addition-alteration"],
  "issueDate": "2026-11-27",
  "appliedDate": "2026-09-25",
  "expirationDate": null,
  "estimatedValue": 4000000,
  "address": "10 W 32ND ST",
  "zipCode": null,
  "latitude": 41.836123,
  "longitude": -87.62711,
  "contractorName": "PEPPER CONSTRUCTION COMPANY",
  "contractorLicense": null,
  "contractorPhone": null,
  "applicantName": null,
  "ownerName": "ILLINOIS INSTITUTE OF TECHNOLOGY",
  "housingUnits": null,
  "squareFeet": null,
  "totalFees": 10128.1,
  "permitUrl": null,
  "sourcePortal": "https://data.cityofchicago.org/d/ydr8-5enu",
  "sourceDataset": "Building Permits",
  "sourceApiUrl": "https://data.cityofchicago.org/resource/ydr8-5enu.json",
  "scrapedAt": "2026-11-28T23:59:00.000Z"
}
```

The dataset has three views: **Overview**, **Contractor leads** (contractor, license, phone, owner, address, value, trades) and **Map & location**.

#### City report and run summary

City problems never show up as dataset rows, so you are never billed for them. Open the **Output** tab or the key-value store:

- `CITY_REPORT`: one entry per city with `status` (`ok`, `partial`, `error`, `skipped`), the permits read, matched, already delivered and stored, the newest issue date, each dataset's API endpoint, and plain-language `messages`.
- `RUN_SUMMARY`: totals, permits per city, stop reason and the charged item count.

### Pricing

**Pay per event: $0.002 per permit** ($2 per 1,000 permits), plus Apify's small automatic per-run start fee.

- You pay only for permit rows stored in the dataset. Filtered-out permits, permits already delivered in only-new mode, errors and the reports are free.
- Platform usage is included in the event price. No proxy costs.
- Set **Maximum cost per run** when starting the Actor; it stops cleanly when the budget is used.

### Politeness, robots.txt and legal notes

- The Actor reads `robots.txt` of every API host once and skips any dataset whose API path is disallowed. Socrata's published `Crawl-delay: 1` is honored, requests are paced per host, identify as `BuildingPermitsScraperApifyActor/0.1`, and back off on HTTP 429 and 5xx errors.
- Portals whose robots.txt disallows their API (for example Boston and San Jose) are deliberately not included.
- Permits are public records published by each government as open data. Each portal's own terms of use apply.
- **Personal data:** the Actor never includes owner, applicant or contact phone numbers or e-mail addresses. E-mail addresses inside text are masked. The main row has `ownerName` only where the city publishes an owner name in the permit record; owner mailing addresses are not a main-row field. When `includeRawRecord` is on, those owner name and owner mailing-address columns are also removed from `raw` (along with phone and e-mail fields), so a city-specific dump cannot leak them. If you contact people or process data about identifiable people, you are responsible for complying with GDPR/CCPA, telemarketing (TCPA, Do-Not-Call) and anti-spam (CAN-SPAM) rules.

### Limitations

- **Fields vary by city.** Not every city publishes contractor, value, ZIP or coordinates. Missing values are `null`, never guessed.
- **Trade tags and property type come from the permit text** where the city has no explicit field, so they can be imperfect. Use `keywords` or `permitTypes` for precise matching.
- **Publication lag:** cities update their portals daily to weekly (LA and Las Vegas can lag about a week). Only-new mode re-checks the last 14 days so late permits are not missed.
- **NYC** uses the current DOB NOW system. Permits that only exist in the legacy BIS system are not included.
- **Washington DC** publishes one dataset per year. Layers for 2023 to 2026 are included, and only the years in your date range are queried.
- Narrow filters on big cities can scan many permits. The `maxScannedPerCity` limit (default 25,000) keeps runs fast; the city is then marked `partial`.

### Tips

- Start with a small `maxItems` (for example 20) to preview the columns, then scale up.
- For lead alerts, schedule a daily run with `onlyNew: true` and a unique `stateKey` per search.
- Combine `trades` with `minValue` to focus on bigger jobs, or `zipCodes` to cover your service area.
- Use `maxItemsPerCity` when reading many cities so one large city does not use the whole budget.

### FAQ

**Do I need an API key or login?** No. These are the public open-data APIs each city provides.

**Can you add my city?** Probably. Open an issue with the city name and a link to its open-data permit dataset. Cities with a Socrata, ArcGIS or Carto permit API that robots.txt allows are quick to add.

**Why did a city return no rows?** Open the City report. It says whether nothing was issued in your date range, nothing matched your filters, or the portal had a problem.

**Is a permit ever billed twice?** Not within a run, and not across runs when you use `onlyNew` with the same `stateKey`.

**Something looks wrong or a field is missing.** Open an issue from the Actor's *Issues* tab with your input and the run link.

# Actor input Schema

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

One or more cities or counties. Every city's permits come out in the same normalized columns.

## `issuedAfter` (type: `string`):

Only permits issued on or after this date. Use a date (`2026-01-31`) or a relative value such as `7 days`, `2 weeks` or `3 months` (counted back from today). Leave empty for the last 12 months.

## `issuedBefore` (type: `string`):

Only permits issued on or before this date (same formats). Leave empty for up to today.

## `trades` (type: `array`):

Keep permits tagged with any of these trades. Tags come from the permit type and work description, so they work the same in every city (for example `solar` finds "PV system", "roof mounted solar panels" and "22.8 KW").

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

Keep permits whose type, description, contractor or address contains any of these words (case-insensitive), for example `kitchen`, `tenant improvement`, `Tesla`.

## `permitTypes` (type: `array`):

Keep permits whose permit type, subtype or work class contains any of these texts (case-insensitive), for example `new building`, `electrical`, `demolition`.

## `propertyType` (type: `string`):

Residential or commercial only. Uses the city's own residential/commercial field when it has one, otherwise the permit text. Permits that cannot be classified are left out when you choose one.

## `minValue` (type: `integer`):

Only permits with a declared project value / valuation at or above this amount. Permits without a value are left out when set. Leave empty for no minimum.

## `maxValue` (type: `integer`):

Only permits with a project value at or below this amount. Leave empty for no maximum.

## `contractorRequired` (type: `boolean`):

Leave out permits where the city does not publish a contractor or permittee company.

## `zipCodes` (type: `array`):

Keep permits in these ZIP codes. A prefix works too (`787` = all of 787xx).

## `onlyNew` (type: `boolean`):

Lead-alert mode for scheduled runs: each permit is delivered (and billed) once. The Actor remembers what it delivered in a named key-value store in your account and re-checks the last 14 days, because cities publish some permits late. The first run looks back to "Issued on or after" or 30 days.

## `stateKey` (type: `string`):

Use a different name for each saved search or schedule (for example `austin-solar`), so separate searches do not share memory.

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

Stop after this many permits in total. Every permit row is one billed item.

## `maxItemsPerCity` (type: `integer`):

Optional cap per city, so one big city cannot use the whole budget. Leave empty to share the total limit.

## `maxScannedPerCity` (type: `integer`):

Safety limit for narrow filters: stop looking after this many permits per city (filtered-out permits are free). Default 25,000.

## `includeRawRecord` (type: `boolean`):

Add the city's original record as `raw` (phone, e-mail, owner name and owner mailing-address fields removed). Useful when you need a city-specific column.

## Actor input object example

```json
{
  "cities": [
    "new-york",
    "chicago",
    "los-angeles"
  ],
  "issuedAfter": "30 days",
  "propertyType": "any",
  "contractorRequired": false,
  "onlyNew": false,
  "stateKey": "default",
  "maxItems": 100,
  "maxScannedPerCity": 25000,
  "includeRawRecord": false
}
```

# Actor output Schema

## `items` (type: `string`):

No description

## `overview` (type: `string`):

No description

## `leads` (type: `string`):

No description

## `cityReport` (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 = {
    "cities": [
        "new-york",
        "chicago",
        "los-angeles"
    ],
    "issuedAfter": "30 days",
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("onomatopoeia_dev/building-permits-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 = {
    "cities": [
        "new-york",
        "chicago",
        "los-angeles",
    ],
    "issuedAfter": "30 days",
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("onomatopoeia_dev/building-permits-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 '{
  "cities": [
    "new-york",
    "chicago",
    "los-angeles"
  ],
  "issuedAfter": "30 days",
  "maxItems": 100
}' |
apify call onomatopoeia_dev/building-permits-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,onomatopoeia_dev/building-permits-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/guXc73F1LFpT0KIeT/builds/GBsjtbxwSCdGnFZER/openapi.json
