# Building Permits - Contractor Leads from Official City Data (`retrainmap/building-permits-leads`) Actor

Newly issued building permits from 12 US city and county open-data portals, as leads for contractors, roofers, solar, HVAC, suppliers and insurers. Filter by city, date, work type, keywords, value and residential or commercial. One row per permit, newest first.

- **URL**: https://apify.com/retrainmap/building-permits-leads.md
- **Developed by:** [RetrainMap Team](https://apify.com/retrainmap) (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

$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.

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

## Building permits: contractor leads from official city data

Get the building permits that cities just issued, from the official open-data portals of 14 U.S. cities and counties. A permit means real work is about to start at a real address: a new house, a remodel, a new roof, a solar system, a furnace swap, a pool. This Actor reads those city records and gives you one clean row per permit: address, issue date, type of work, description, project value and, where the city publishes them, the owner and the contractor.

The data comes from each city's own open-data portal, not from scraping search pages, so it is complete, fast and does not break when a website changes.

Cities and counties covered: **Chicago, Los Angeles, San Francisco, Seattle, Austin, New York City, Dallas, New Orleans, Cincinnati, Cambridge (MA), Norfolk (VA), Baton Rouge, Mesa (AZ) and Marin County (CA).**

### What you can do with it

- **Roofers, solar installers, HVAC, plumbing, electrical and pool companies:** find the homes and buildings where your kind of work was just permitted, or see which competitors pulled the permits.
- **Building-supply and equipment sellers:** reach the contractors who have active jobs this week.
- **Subcontractors:** find general contractors starting new construction and large remodels near you.
- **Insurers, lenders and property investors:** see new construction, additions and demolitions by address and value.
- **Market research:** count permits by city, type of work and value, week by week.

### How to use it

Press **Start** with the default input to get permits issued in the last 7 days in all 14 cities and counties. Then narrow it down:

| Input | What it does | Default |
|---|---|---|
| Cities | Any of `Chicago`, `Los Angeles`, `San Francisco`, `Seattle`, `Austin`, `New York City`, `Dallas`, `New Orleans`, `Cincinnati`, `Cambridge`, `Norfolk`, `Baton Rouge`, `Mesa`, `Marin County` | all 14 |
| Days back | How many days to read, 1 to 90 | 7 |
| Issued from / until | An exact date range instead (at most 90 days) | not set |
| Work types | Any of `new construction`, `addition/alteration`, `demolition`, `roofing`, `solar`, `HVAC/mechanical`, `electrical`, `plumbing`, `pool`, `sign`, `other` | all |
| Keywords | Keep only permits whose description or permit type contains one of these words, for example `battery`, `ADU`, `kitchen`, `generator` | all |
| Minimum project value | Keep only permits with a reported value at or above this amount | no minimum |
| Residential or commercial | Keep only one kind, where the city says which (Chicago and most New York City permits do not, so they are left out) | any |
| Maximum permits | Stop after this many rows, split evenly across the chosen cities. With a very small number, the cities listed first get the rows | 200 |

Cities publish with a delay (see below), so **set Days back to 14** if you want every city in one run. To follow new permits continuously, schedule the Actor to run each morning with **Days back = 3**.

#### Example: new roofs and solar on homes in Texas, last two weeks

```json
{ "cities": ["Austin", "Dallas"], "days_back": 14, "work_types": ["roofing", "solar"], "property_use": "residential", "max_records": 500 }
```

#### Example: projects worth $250,000 or more in New York City and Los Angeles

```json
{ "cities": ["New York City", "Los Angeles"], "days_back": 30, "min_valuation": 250000, "max_records": 1000 }
```

### What you get

One row per permit, newest first:

| Column | Example |
|---|---|
| `city`, `state` | Chicago, IL |
| `permit_number` | B200517229 |
| `issued_date` | 2026-11-13 |
| `status` | ACTIVE |
| `permit_type` | The city's own label, for example `PERMIT – EXPRESS PERMIT PROGRAM - Small-Scale Solar PV System` |
| `work_type` | One of the 11 work types above, for example `solar` |
| `property_use` | `residential` or `commercial`, where the city says which |
| `description` | INSTALL SOLAR PANELS ON ROOF OF PRINCIPAL BUILDING... |
| `valuation_usd` | 32360 |
| `street`, `city_name`, `zip` | 4514 N MERRIMAC AVE, Chicago (for New York City, `city_name` is the borough) |
| `latitude`, `longitude` | 41.962568, -87.783357 |
| `owner_name` | The property owner, where the city lists one. Placeholders such as "PR" or "Not Applicable" are left blank |
| `contractor_name` | SUNRUN INSTALLATION SERVICES. Where a permit lists a general contractor and trade contractors, the general contractor |
| `contractor_phone` | Austin, Mesa and part of New York City |
| `contractor_license` | New York City and Mesa; some Marin County and Cambridge permits |
| `record_url` | Link to the city's permit page (Seattle, Austin, Cincinnati) |
| `source`, `source_url` | The city dataset the row came from |

`work_type` is worked out from the city's permit type first and the description second. Site-safety permits (scaffolds, sidewalk sheds, construction fences), elevators, fire sprinklers and alarms, occupancy and rental permits count as `other`.

Download the results as JSON, CSV or Excel, or read them through the Apify API.

### How many permits, and how fresh

Measured on November 16, 2026: between November 2 and November 16, 2026 the 14 cities and counties published about **16,400 permits**. New York City about 6,200, Dallas about 2,800, Austin about 2,300, Los Angeles about 1,300, Chicago about 1,200, New Orleans about 730, San Francisco about 560, Cincinnati about 360, Seattle about 240, Baton Rouge about 170, Mesa about 170, Marin County about 150, Norfolk about 145 and Cambridge about 35.

Cities publish with a delay. On November 16, 2026 the newest permit in each source was issued on:

| Source | Newest permit |
|---|---|
| Dallas | November 16 |
| New Orleans | November 15 |
| Austin, Marin County, New York City (older jobs) | November 14 |
| Chicago, San Francisco, Seattle, New York City (DOB NOW), Cincinnati, Cambridge, Norfolk, Mesa | November 13 |
| Los Angeles, Baton Rouge | November 7 |

Los Angeles and Baton Rouge are about a week behind, so a 7-day run may return no permits for them. The Actor returns whatever each city has published for your dates.

### What differs by city

| City | Owner | Contractor | Contractor phone | Project value | Map point |
|---|---|---|---|---|---|
| Chicago | Yes | Yes | No | Yes | Yes |
| Los Angeles | No | No | No | Yes | Yes |
| San Francisco | No | No | No | Most permits | Yes |
| Seattle | No | Rarely | No | Yes | Yes |
| Austin | No | Yes | Yes | Some permits | Most permits |
| New York City | Yes | Yes (the permit holder) | Older jobs only | Most permits | Yes |
| Dallas | No | Rarely | No | Rarely | No |
| New Orleans | Yes | Most permits | No | Most permits | Yes |
| Cincinnati | No | Yes | No | Yes | Some permits |
| Cambridge | No | Yes | No | Yes | Yes |
| Norfolk | No | No | No | Yes | Yes |
| Baton Rouge | Most permits | About half | No | About half | Yes |
| Mesa | No | Some permits | Some permits | Most permits | Yes |
| Marin County | No | Yes | No | Yes | Yes |

New York City combines two city datasets: "DOB NOW: Build" (most permits today) and the older "DOB Permit Issuance" list for jobs filed in the earlier system. Cambridge combines its new-construction and addition/alteration lists. Mesa, Norfolk and New Orleans publish no ZIP code, and Chicago none for the work site. San Francisco publishes no owner or contractor. Cincinnati publishes the permit type but no written description.

### Price

You pay **per permit returned**. There is no start fee, and permits that your filters remove are not charged.

### Where the data comes from, and its limits

- **Sources:** "Building Permits" (City of Chicago), "Building and Safety - Building Permits Issued from 2020 to Present" (City of Los Angeles), "Building Permits" (City and County of San Francisco), "Building Permits" (City of Seattle), "Issued Construction Permits" (City of Austin), "DOB NOW: Build – Approved Permits" and "DOB Permit Issuance" (New York City Department of Buildings), "Building Permits" (City of Dallas), "Permits" (City of New Orleans), "Cincinnati Building Permits" (City of Cincinnati), "Building Permits: New Construction" and "Building Permits: Addition/Alteration" (City of Cambridge), "Permits and Inspections" (City of Norfolk), "EBR Building Permits" (City of Baton Rouge / Parish of East Baton Rouge), "Building Permits" (City of Mesa) and "Building Permit" (County of Marin), each on the city's or county's open-data portal.
- **Not included:** e-mail addresses. Some cities publish them; this Actor does not copy them. Phone numbers appear only where the city's record lists them.
- **One row per permit.** Norfolk lists one row per inspection and New York City lists permit renewals; the Actor keeps one row per permit number, with the newest issue date in your range.
- **Work types are a best effort** from each city's own labels and descriptions; check the `permit_type` and `description` columns when it matters.
- **People:** owners and contractors are named in public city records. Use them in line with the laws that apply to you, including rules on unsolicited marketing.

This Actor is not affiliated with or endorsed by any city, county or state government.

# Actor input Schema

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

Any of: Chicago, Los Angeles, San Francisco, Seattle, Austin, New York City, Dallas, New Orleans, Cincinnati, Cambridge, Norfolk, Baton Rouge, Mesa, Marin County. Empty means all.

## `days_back` (type: `integer`):

How many days back from today (or from 'Issued until') to read. 1 to 90.

## `issued_from` (type: `string`):

First issue date to include, as YYYY-MM-DD. Overrides 'Days back'. The range may cover at most 90 days.

## `issued_until` (type: `string`):

Last issue date to include, as YYYY-MM-DD. Default: today.

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

Any of: new construction, addition/alteration, demolition, roofing, solar, HVAC/mechanical, electrical, plumbing, pool, sign, other. Empty means all.

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

Keep only permits whose work description or permit type contains one of these words, for example battery, ADU, kitchen, generator.

## `min_valuation` (type: `integer`):

Keep only permits with a reported project value at or above this amount. Permits without a reported value are left out when this is set. 0 means no minimum.

## `property_use` (type: `string`):

Keep only residential or only commercial permits. Chicago and most New York City permits do not say which, so they are left out when this is set.

## `max_records` (type: `integer`):

Stop after this many rows, split evenly across the chosen cities. With a very small number, the cities listed first get the rows (put the cities you care most about first). You are charged per row.

## `request_interval_ms` (type: `integer`):

Pause between requests to the city portals.

## Actor input object example

```json
{
  "cities": [
    "Chicago",
    "Los Angeles",
    "San Francisco",
    "Seattle",
    "Austin",
    "New York City",
    "Dallas",
    "New Orleans",
    "Cincinnati",
    "Cambridge",
    "Norfolk",
    "Baton Rouge",
    "Mesa",
    "Marin County"
  ],
  "days_back": 7,
  "min_valuation": 0,
  "property_use": "any",
  "max_records": 200,
  "request_interval_ms": 300
}
```

# Actor output Schema

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

One row per building permit, newest first.

## `results_csv` (type: `string`):

The same rows as a CSV file.

# 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": [
        "Chicago",
        "Los Angeles",
        "San Francisco",
        "Seattle",
        "Austin",
        "New York City",
        "Dallas",
        "New Orleans",
        "Cincinnati",
        "Cambridge",
        "Norfolk",
        "Baton Rouge",
        "Mesa",
        "Marin County"
    ],
    "days_back": 7,
    "max_records": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("retrainmap/building-permits-leads").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": [
        "Chicago",
        "Los Angeles",
        "San Francisco",
        "Seattle",
        "Austin",
        "New York City",
        "Dallas",
        "New Orleans",
        "Cincinnati",
        "Cambridge",
        "Norfolk",
        "Baton Rouge",
        "Mesa",
        "Marin County",
    ],
    "days_back": 7,
    "max_records": 200,
}

# Run the Actor and wait for it to finish
run = client.actor("retrainmap/building-permits-leads").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": [
    "Chicago",
    "Los Angeles",
    "San Francisco",
    "Seattle",
    "Austin",
    "New York City",
    "Dallas",
    "New Orleans",
    "Cincinnati",
    "Cambridge",
    "Norfolk",
    "Baton Rouge",
    "Mesa",
    "Marin County"
  ],
  "days_back": 7,
  "max_records": 200
}' |
apify call retrainmap/building-permits-leads --silent --output-dataset

```

## MCP server setup

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

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/4GHqUkO5a5lm4YJOf/builds/b5duy2YfPV011MKvP/openapi.json
