# US Building Permit Leads (15 City Open Data APIs) (`benenjoyscoding/building-permit-leads`) Actor

New building permits from 15 US cities and counties, read from each city's official open data API. One clean table with job value, trade, contractor, address and coordinates. Filter by value, trade, ZIP or contractor, and get only new permits on scheduled runs.

- **URL**: https://apify.com/benenjoyscoding/building-permit-leads.md
- **Developed by:** [Ben Becker](https://apify.com/benenjoyscoding) (community)
- **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.

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 Permit Leads

Get the building permits your city issued this week, in one clean table, straight from the city's own open data API.

Roofers, solar installers, HVAC and pool companies, suppliers, lenders and insurers use permits as leads: a permit means a job is happening at that address right now. This actor reads 15 official US city and county open data portals, puts every permit into the same shape, and lets you keep only the ones you care about.

### What you get

Each permit comes back with:

- **Where:** jurisdiction, city, state, street address, ZIP, latitude and longitude
- **What:** permit number, permit type, work description, status, and trade tags (roofing, solar, HVAC, remodel, new construction and more)
- **How big:** declared job value in dollars
- **When:** issued date and applied date
- **Who:** contractor company name, and the contractor's phone and license number where the city publishes them
- **Source:** a link to the official dataset the permit came from

Owner and individual applicant names are never included.

### Cities covered

| City or county | Contractor | Job value | Coordinates |
|---|---|---|---|
| Austin, TX | yes, with phone | yes | yes |
| Baton Rouge, LA | yes | yes | yes |
| Chicago, IL | yes (general contractor first) | yes | yes |
| Cincinnati, OH | yes | yes | some |
| Corona, CA | no | yes | yes |
| Los Angeles, CA | no | yes | yes |
| Marin County, CA | yes, with license | yes | yes |
| Mesa, AZ | yes | yes | yes |
| Montgomery County, MD (residential) | no | yes | yes |
| Montgomery County, MD (commercial) | no | yes | yes |
| New Orleans, LA | yes | yes | yes |
| New York, NY | filing business, with license | yes | yes |
| Norfolk, VA | no | yes | yes |
| Orlando, FL | yes | yes | no |
| Seattle, WA | yes | yes | yes |

Each city updates its data on its own schedule, usually daily. A few publish with a delay of a week or more. Every run saves a `COVERAGE` record that shows, per city, how many permits were read, how many matched your filters, and the newest issued date the city has published, so you always know how fresh each city is.

### How to use it

1. Pick the cities, or leave the list empty for all of them.
2. Pick a date range. The default is the last 7 days.
3. Add filters if you want: minimum job value, trades, keywords, ZIP codes, contractor name.
4. Run it, then export to CSV, Excel or JSON, or connect it to Google Sheets, Zapier or Make.

#### Fresh leads on a schedule

Turn on **Only new permits** and schedule the actor to run every morning. It remembers which permits it already delivered and skips them, so each run gives you only new leads and you never pay twice for the same permit.

If you run several schedules with different filters, give each one its own **Memory name**.

### Example inputs

Roofing jobs over $10,000 in Austin and Orlando this week:

```json
{
  "sources": ["austin", "orlando"],
  "daysBack": 7,
  "trades": ["roofing"],
  "minValuation": 10000
}
```

Every new solar permit in all cities, delivered daily:

```json
{
  "trades": ["solar"],
  "daysBack": 3,
  "onlyNew": true
}
```

Track what a competitor is pulling permits for:

```json
{
  "contractorContains": ["acme roofing"],
  "daysBack": 90
}
```

### Pricing

You pay per permit delivered. Filters run before you are charged, so permits you filter out cost nothing. Set **Max permits per run** to cap the cost of any run.

### How it works

Every source is an official government open data portal running the Socrata API, which is built for this kind of automated access. The actor asks each portal only for permits in your date range (and above your minimum value where the city stores it as a number), reads them in pages of 1,000, and waits between requests so it stays well inside the portals' public rate limits. No website pages are scraped and no logins are used.

### Notes

- Trade tags come from the permit type and description text, so a permit can have several tags, and some vague permits are tagged `other`.
- Job value is what the applicant declared to the city. Some cities leave it blank for trade permits.
- Want another city? Most large US cities publish permits on an open data portal. Ask in the Issues tab.

# Actor input Schema

## `sources` (type: `array`):

Which cities and counties to read. Leave empty for all of them.

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

Permits issued in the last this many days, counting today. Ignored when you set an issued-from date.

## `issuedFrom` (type: `string`):

Optional. Start of a fixed date range, inclusive.

## `issuedTo` (type: `string`):

Optional. End of a fixed date range, inclusive. Defaults to today.

## `minValuation` (type: `integer`):

Skip permits whose declared job value is below this. Permits with no value listed are skipped too when this is set.

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

Keep permits that match any of these trades. Trades are tagged from the permit type and work description.

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

Keep permits whose type or description contains any of these words (case does not matter).

## `contractorContains` (type: `array`):

Keep permits whose contractor name contains any of these words. Useful for tracking competitors.

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

Keep permits in these 5-digit ZIP codes. Permits without a ZIP are skipped when this is set.

## `requireContractor` (type: `boolean`):

Skip permits that list no contractor.

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

Remember which permits earlier runs delivered and skip them. Turn this on for a daily or weekly schedule so you only pay for fresh leads.

## `stateStoreName` (type: `string`):

Use a different name per saved task if you run several schedules with different filters.

## `maxResults` (type: `integer`):

Stop after this many permits in total. You pay per permit.

## `maxResultsPerSource` (type: `integer`):

Stop reading a city after this many permits.

## `socrataAppToken` (type: `string`):

A free app token from any Socrata open data portal raises the request rate. Not needed for normal runs.

## Actor input object example

```json
{
  "sources": [
    "austin",
    "seattle"
  ],
  "daysBack": 7,
  "requireContractor": false,
  "onlyNew": false,
  "stateStoreName": "building-permit-leads-state",
  "maxResults": 100,
  "maxResultsPerSource": 1000
}
```

# Actor output Schema

## `permits` (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 = {
    "sources": [
        "austin",
        "seattle"
    ],
    "daysBack": 7,
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("benenjoyscoding/building-permit-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 = {
    "sources": [
        "austin",
        "seattle",
    ],
    "daysBack": 7,
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("benenjoyscoding/building-permit-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 '{
  "sources": [
    "austin",
    "seattle"
  ],
  "daysBack": 7,
  "maxResults": 100
}' |
apify call benenjoyscoding/building-permit-leads --silent --output-dataset

```

## MCP server setup

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