# US Building Permits: Construction Leads by Trade & Alerts (`pikoulas/us-building-permits`) Actor

New building permits from 18 US cities' and counties' official open-data portals, NYC, LA, Chicago, Dallas, San Diego County and more: by trade (solar, roofing, HVAC, pool...), keyword, ZIP and value, with the work, cost and contractor. Alerts give only new permits. No API key.

- **URL**: https://apify.com/pikoulas/us-building-permits.md
- **Developed by:** [Spyridon Pikoulas](https://apify.com/pikoulas) (community)
- **Categories:** Lead generation, Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Building Permits: Construction Leads by Trade & Alerts

Building permits as they're issued in 18 US cities and counties, from the official open-data
portals where each one publishes them, sorted by trade, without an account or an API key:

New York City, Chicago, Los Angeles, Dallas, Austin, San Francisco, Seattle, New Orleans,
San Diego County, Collin County (Plano, McKinney, Frisco), Pierce County (WA), Baton Rouge,
Cincinnati, Mesa (AZ), Montgomery County (MD, residential and commercial), Orlando, Marin County
(CA) and Cambridge (MA).

Pick the work you sell:

- **Trades:** solar, roofing, HVAC, electrical, plumbing, pools, new construction, additions and
  ADUs, remodels, demolition, windows and doors, fences and decks. Every permit comes tagged with
  its trades, so one run can feed several teams.
- **Keywords:** your own words in the description or type: `battery`, `restaurant`, `elevator`.
- **ZIP codes**, **least value** and **only with a contractor** narrow it to the leads you want.
- **New permits only:** a schedule gives each permit once, the late-published ones too, and you
  pay only for those.

Each permit comes with its number, type, trades, the description of the work, its status, the
address and ZIP, the dates it was applied for and issued, the estimated cost, the contractor's
company name, and where the city gives them the contractor's phone and licence number, housing
units added, coordinates and a link to the permit's page. Owners' and applicants' names, often
private people, are left out; the description is the city's own text, and sometimes names the
owner.

Together they publish about 40,000 permits a month. It costs **$3 per 1,000 permits**.

### What people use it for

- **Trade leads:** new solar, roofing, pool or HVAC permits in your ZIPs every morning, sent to a
  sheet or your CRM, each one once.
- **Supplier and distributor sales:** which contractors pull the most permits in your trade, and
  for how much work.
- **Builder and development tracking:** new homes and additions by city, with the builder named
  (Collin County's suburbs, San Diego County, New Orleans).
- **Competitor tracking:** the permits a rival's company is named on.

### How to get US building permits

1. Click **Try for free**; Apify's free plan covers a first run.
2. Pick **Cities** and **Trades**, and enter **Keywords** or **ZIP codes** if you like.
3. Click **Start**, then download the results as JSON, CSV, Excel or HTML, or read them through
   the API.

An input with more options:

```json
{
  "cities": ["los-angeles", "san-diego-county", "marin-county"],
  "trades": ["solar"],
  "keywords": ["battery"],
  "zipCodes": ["92040", "92019", "90026"],
  "issuedWithinDays": 30,
  "minValue": 10000,
  "withContractorOnly": true,
  "maxResultsPerCity": 0
}
```

Filters combine, and the values within one are alternatives: `["solar"]` with `["battery"]` keeps
a permit that is either. Each city's permits come newest first; `maxResultsPerCity` caps them, 0
for all that match.

### Lead alerts: new permits only

With `"trackChanges": true`, a run gives, and charges for, only the permits no earlier run with
the same `memory` gave. Schedule it every morning or every Monday on the last 30 days, and each
permit arrives once: today's, and the ones Los Angeles or Montgomery County publish two weeks
late. A day with nothing new succeeds with "No new permits since the last run with this memory."

```json
{
  "cities": ["dallas", "collin-county-tx", "austin"],
  "trades": ["pool", "fence-deck"],
  "issuedWithinDays": 30,
  "trackChanges": true,
  "memory": "north-texas-pools"
}
```

Give each alert its own `memory` name. The memory is kept in your account's key-value store
`us-building-permits-memory`; a permit not seen for 60 days is forgotten.

### Output

```json
{
  "city": "Austin",
  "state": "TX",
  "permitNumber": "2026-128176 EP",
  "permitType": "Electrical Permit / Auxiliary Power",
  "description": "We plan to install 14.960 kW DC ROOF MOUNT SOLAR PV SYSTEM WITH (34) HYUNDAI SOLAR: HiS-T440NF(BK) 440W PV MODULES ALONG WITH\n (1) TESLA: POWERWALL 3 (1707000-21-Y)",
  "trades": ["solar", "electrical"],
  "status": "Active",
  "address": "5311 AVENUE G",
  "zip": "78751",
  "issuedDate": "2026-11-06",
  "appliedDate": "2026-09-29",
  "value": 35454.0,
  "contractor": "ATX Solar",
  "contractorPhone": "5128039652",
  "contractorLicense": null,
  "housingUnits": null,
  "latitude": 30.31793681,
  "longitude": -97.71964748,
  "url": "https://abc.austintexas.gov/web/permit/public-search-other?t_detail=1&t_selected_folderrsn=13780754",
  "dataset": "https://data.austintexas.gov/d/3syk-w9eu"
}
```

`trades` are found by their words in the type and description (a heat pump is `hvac`, a panel
upgrade `electrical`), so a permit can have several or none. `value` is the cost of the work as
the city gives it; 0 and 1, which some enter as placeholders, are null. `dataset` is the portal's
page for the city's dataset; `url`, where the city has one, is the permit's own page.

### Use it as an API

One call runs it and returns the results as JSON (for runs under 5 minutes; longer ones start a
run and read its dataset). Apify's Python and JavaScript clients, and its Make, Zapier and n8n
integrations, work the same way.

```bash
curl -X POST "https://api.apify.com/v2/acts/pikoulas~us-building-permits/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"cities": ["austin", "dallas"], "trades": ["roofing"], "issuedWithinDays": 7}'
```

AI agents can call it as a tool through Apify's MCP server: `https://mcp.apify.com?tools=pikoulas/us-building-permits`.

### How much does it cost to get US building permits?

You pay **$0.003 per permit**, which is $3 per 1,000 permits, on Apify's paid plans, and $4 per
1,000 on the free plan. There are no monthly fees, and a search that finds nothing costs nothing;
with new permits only, you pay for the new ones. Set a spending limit on a run and it stops there
with what it has.

### Good to know

- Each city publishes on its own timetable: most within a day or two, Pierce County about a week
  behind, Los Angeles and Montgomery County one to two weeks, so a run over the last 7 days can
  find few or none from them. With new permits only, a 30-day window catches them once.
- Fields differ by city: Chicago, Mesa, Orlando, New Orleans, Pierce County and Cambridge publish
  no ZIP codes, so a ZIP search leaves them out; Los Angeles, San Francisco, Dallas, Pierce County
  and Montgomery County name no contractor; Austin, Mesa, Orlando and San Diego County give the
  contractor's phone; Dallas no longer gives a value.
- San Diego and Pierce County cover their unincorporated areas (the county's own permits), and
  Collin County's come from its appraisal district, for every city in it; Cambridge's are its
  additions and alterations.
- A week from all of them (about 7,400 permits, a third of them New York City's) took 43 seconds
  on the platform; a trade or ZIP narrows it to a few hundred in seconds. A run over 30 days of
  every permit can reach the run's spending limit first (it stopped at 20,000 on ours); raise
  it, or narrow the search.
- It reads each portal as a guest: it names itself in its User-Agent (`BuildingPermitsActor`),
  keeps to the one request a second each portal's robots.txt asks for, from one address and
  without a proxy. NYC's portal often answers busy; a page is asked again, a little later each
  time. If a portal refuses, that city is left out and the run goes on with the others; the log
  says so.

### FAQ

#### Where does the data come from?

From each city's or county's open-data portal, which publishes its permits for anyone to read
and reuse, each under its own terms:

- **Public domain:** Austin, Seattle, Baton Rouge, Cincinnati and Montgomery County; San Francisco
  and Cambridge under the [ODC Public Domain Dedication](https://opendatacommons.org/licenses/pddl/);
  New Orleans under [CC0](https://creativecommons.org/publicdomain/zero/1.0/).
- **New York City:** its public data sets are open "without any registration requirement, license
  requirement or restrictions on their use", and the City may ask that you name the source and
  version of the data set
  ([NYC Admin Code §23-502](https://nycadmincode.readthedocs.io/t23/c05/index.html)).
- **Marin County:** the [Open Database License](https://opendatacommons.org/licenses/odbl/), which
  asks you to credit Marin County and to share a database you publish from it under the same
  licence.
- **Chicago, Los Angeles, Mesa, Orlando, Dallas, San Diego County, Pierce County and Collin
  County** (on the Texas Open Data Portal)**:** their portals' terms of use.

Your use of the data is your own responsibility; if you're unsure, ask a lawyer. This Actor isn't
affiliated with or endorsed by any of these cities or counties, or by Tyler Technologies, whose
Socrata platform runs their portals.

#### Something missing or not working?

Open an issue on the **Issues** tab with the input you used, or ask there for a city or a field
you need.

If it does what you need, a review on the **Reviews** tab helps others find it.

# Actor input Schema

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

Empty for all of them.

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

Permits for any of these trades, found by their words in the permit's description and type (roofing: reroof, roofing, shingle...). Each permit is tagged with all its trades either way; leave empty for all.

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

Your own words, in the permit's description or type: battery, ADU, restaurant. A permit with any of them, or of a trade above, is kept.

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

Five-digit ZIP codes; a permit in any of them is kept. Chicago, Mesa, Orlando, New Orleans, Pierce County and Cambridge publish none, so they're left out when this is set.

## `issuedWithinDays` (type: `integer`):

Only permits issued in the last this many days. Los Angeles and Montgomery County publish one to two weeks behind; with New permits only, 30 days catches their late ones once.

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

Only permits whose estimated cost of work is at least this; permits without a cost are left out.

## `maxResultsPerCity` (type: `integer`):

Newest first; 0 for all that match. With New permits only, the newest this many are checked and the new ones among them given.

## `withContractorOnly` (type: `boolean`):

Only permits that name the contractor's company: leads you can call or sell to. Los Angeles, San Francisco, Dallas, Pierce County and Montgomery County name none.

## `trackChanges` (type: `boolean`):

Give, and charge for, only the permits no earlier run with the same memory gave, late-published ones too. Schedule it daily or weekly for lead alerts that don't repeat.

## `memory` (type: `string`):

One per alert, so two schedules don't share a memory. Kept in your account's key-value store us-building-permits-memory; a permit not seen for 60 days is forgotten.

## Actor input object example

```json
{
  "cities": [
    "austin",
    "seattle"
  ],
  "trades": [
    "solar",
    "roofing"
  ],
  "issuedWithinDays": 30,
  "maxResultsPerCity": 20,
  "withContractorOnly": false,
  "trackChanges": false,
  "memory": "default"
}
```

# Actor output Schema

## `overview` (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": [
        "austin",
        "seattle"
    ],
    "trades": [
        "solar",
        "roofing"
    ],
    "maxResultsPerCity": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pikoulas/us-building-permits").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": [
        "austin",
        "seattle",
    ],
    "trades": [
        "solar",
        "roofing",
    ],
    "maxResultsPerCity": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pikoulas/us-building-permits").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": [
    "austin",
    "seattle"
  ],
  "trades": [
    "solar",
    "roofing"
  ],
  "maxResultsPerCity": 20
}' |
apify call pikoulas/us-building-permits --silent --output-dataset

```

## MCP server setup

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

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/L6P68qngIUJ5DnDXP/builds/Ct8w5KZahgaImccni/openapi.json
