# US Building Permits Feed: Contractor Leads by City (`datacrate/us-building-permits-feed`) Actor

Fresh building permits from official city open-data portals (Chicago, Seattle, Austin, San Francisco) in one schema: project type (roof, solar, HVAC, new build), job value, address, contractor business. Delta mode returns only new permits.

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

## Pricing

from $1.60 / 1,000 permit returneds

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 Feed – contractor leads from official city open data

Get freshly issued **building permits** for **Chicago, Seattle, Austin and San Francisco** in one clean schema: normalized **project type** (roof, solar, HVAC, electrical, plumbing, new construction, demolition, renovation, signage), **job value in USD**, work-site address, coordinates, description and the contractor business when the city publishes it. Data comes straight from each city's official open-data portal (Socrata API). No scraping, no browser, no API key, no proxies.

It is built for roofers, solar and HVAC installers, electricians, suppliers, lead-gen agencies and market researchers who want a daily list of new permits, and for analysts who need one consistent schema across cities.

**First run:** press Start. The prefill (Chicago, Seattle, Austin, issued in the last 7 days, 100 permits) costs about **$0.20 at $0.002 per permit** and finishes in under a minute. **Empty input also works:** you get 100 permits spread across all four cities, issued in the last 7 days.

### What you can do with it

- **Daily lead list:** schedule the actor with `onlyNewSinceLastRun: true` and pull only permits you have not seen before. Every row carries `isNew` and `firstSeenAt`.
- **Trade filters:** `permitTypes: ["roof","solar"]` returns only that work. The `projectType` field is derived from the city's own permit type plus the work description, so it works the same in every city.
- **Big-ticket projects:** `minJobValueUsd: 250000` keeps only permits with a reported job value at or above that amount.
- **Keyword search:** `keyword: "tankless"` or `"ADU"` searches description, permit type, address and contractor name.
- **Market research:** compare permit volume and job value by city and project type over `daysBack` up to 365.

### Input

| Field | What it does |
|---|---|
| `cities` | `chicago`, `seattle`, `austin`, `sf` (San Francisco). Empty = all four |
| `daysBack` | Permits issued in the last N days (1 to 365, default 7) |
| `permitTypes` | `roof`, `solar`, `hvac`, `electrical`, `plumbing`, `new-construction`, `demolition`, `renovation`, `signage`, `other`. Empty = all |
| `minJobValueUsd` | Minimum reported job value. Permits with no reported value are skipped when this is above 0 |
| `keyword` | Case-insensitive text match |
| `onlyNewSinceLastRun`, `stateKey` | Delta mode: skip permits already returned by an earlier run with the same State name. The first run returns everything |
| `maxItems` | Cap on permits (default 100). You pay per permit. Results are newest first and spread evenly across the selected cities |

Example: `{ "cities": ["chicago", "seattle", "austin"], "daysBack": 7, "maxItems": 100 }`

Roofing leads example: `{ "permitTypes": ["roof"], "daysBack": 30, "onlyNewSinceLastRun": true, "maxItems": 500 }`

### Output

```json
{
  "city": "seattle",
  "cityName": "Seattle",
  "state": "WA",
  "permitId": "7121108-CN",
  "permitType": "Building - New",
  "projectType": "new-construction",
  "status": "Issued",
  "issuedAt": "2026-11-17",
  "filedAt": "2026-04-24",
  "address": "1241 NE 90TH ST",
  "zip": "98115",
  "latitude": 47.69385746,
  "longitude": -122.31318158,
  "description": "Construct north one-family dwelling (Unit 1) per plan...",
  "jobValueUsd": 351430,
  "contractorName": null,
  "contractorRole": null,
  "isNew": null,
  "firstSeenAt": "2026-11-18T19:43:34.740Z",
  "sourceDataset": "https://data.seattle.gov/resource/76t5-zqzr.json",
  "sourceUrl": "https://services.seattle.gov/portal/customize/LinkToRecord.aspx?altId=7121108-CN",
  "source": "City of Seattle, Building Permits (data.seattle.gov/resource/76t5-zqzr). License: Public Domain ...",
  "license": "Public Domain (dataset license field on data.seattle.gov)",
  "attribution": "City of Seattle, Building Permits (data.seattle.gov/resource/76t5-zqzr)"
}
```

Notes on fields:

- `projectType` is our normalization (see list above). `permitType` is the city's own wording.
- `jobValueUsd` is the value reported on the permit. `null` means the city did not report one (a reported 0 is treated as not reported).
- `contractorName` is a business or contractor company name, only where the city publishes one (Austin, Seattle and Chicago for some permit types). San Francisco's dataset has no contractor field. Cities do not publish contractor license numbers in these datasets, so there is no license field.
- Dates are the city's local calendar dates (`YYYY-MM-DD`).
- `isNew` is `null` until a baseline exists for your State name, then `true` or `false`.

### Data sources, terms and license evidence

All data is read from the cities' official open-data portals through their documented SODA API (`/resource/<id>.json`). Terms were checked on 2026-11-18:

| City | Dataset | License (from the dataset's own metadata) |
|---|---|---|
| Chicago | `data.cityofchicago.org/resource/ydr8-5enu` (Building Permits) | "See Terms of Use": [Chicago Data Terms of Use](https://www.chicago.gov/city/en/narr/foia/data_disclaimer.html) |
| Seattle | `data.seattle.gov/resource/76t5-zqzr` (Building Permits) | "Public Domain" |
| Austin | `data.austintexas.gov/resource/3syk-w9eu` (Issued Construction Permits) | "Public Domain U.S. Government" ([usa.gov/government-works](https://www.usa.gov/government-works)) |
| San Francisco | `data.sf.gov/resource/i98e-djp9` (Building Permits) | "Open Data Commons Public Domain Dedication and License" (PDDL 1.0) |

**Chicago required disclaimer.** The Chicago Data Terms of Use ask anyone who provides an application using the data to include this notice. It applies to every Chicago row this actor returns and is repeated in each row's `source` field:

> This site provides applications using data that has been modified for use from its original source, www.cityofchicago.org, the official website of the City of Chicago. The City of Chicago makes no claims as to the content, accuracy, timeliness, or completeness of any of the data provided at this site. The data provided at this site is subject to change at any time. It is understood that the data provided at this site is being used at one's own risk.

If you publish or redistribute Chicago data, carry that notice with it. The terms also say the City may require a user to stop using the data. The City of Chicago data is provided "as is".

**Robots and rate limits.** The portals' `robots.txt` set `Crawl-delay: 1` and do not disallow `/resource/*.json`. The actor sends at most one request per second, identifies itself as `datacrate-actor/1.0`, and uses no app token. Each city is queried with date filters and 1,000-row pages, so a typical run makes 1 to 4 requests per city.

**Personal data.** Some portals publish owner and applicant names on permits. This actor never returns them: it keeps only the work-site address, the contractor business or company name (Chicago contacts typed as contractor, Austin `contractor_company_name`, Seattle `contractorcompanyname`) and the permit facts. Owner, applicant, architect and engineer names, phone numbers and email addresses are dropped. A few contractors are sole proprietors, so a contractor name can be a person's trade name. Use contact information responsibly and follow the laws that apply to your outreach.

**Not included, on purpose.** New York City and Los Angeles are not in this version because we could not read open-data terms that confirm commercial reuse for their permit datasets. They can be added once those terms are confirmed.

Not affiliated with or endorsed by any city or government.

### FAQ

**How fresh is the data?** Each portal updates on its own schedule. When we tested on 2026-11-18, Chicago, Seattle and San Francisco had permits issued the previous day and Austin had permits from two days earlier.

**Why are some job values empty?** Not every permit type carries a valuation (for example some Austin trade permits). Empty means the city published none.

**Why does a roof permit show as "renovation"?** `projectType` uses the city's permit type and wording. If a description does not mention a roof, solar, HVAC and so on, it falls back to renovation or other. You can always filter on `keyword` too.

**Can I get more than 100 permits?** Yes, raise `maxItems`. A busy week is several hundred permits in Chicago and Austin alone.

**What if a city portal is down?** The other cities still return. The run log and the `SUMMARY` record in the key-value store show which cities failed. The run fails only if every selected city fails.

### Integrations

- **Schedule** the actor daily with `onlyNewSinceLastRun: true` for a fresh lead list.
- **Webhook** on run success to push new permits into your CRM, Slack or Zapier/Make.
- **API and MCP:** call the actor from the Apify API, or use it as a tool in AI agents through the Apify MCP server.
- Export the dataset as JSON, CSV or Excel from the Console.

### Pricing

Pay per result: **$0.002 per permit** ($2 per 1,000), no start fee. Higher Apify plans get lower per-permit prices. Set `maxItems` to cap spend; the first run above costs about $0.20.

### Changelog

- **1.0** First version: Chicago, Seattle, Austin, San Francisco; normalized project type and job value; delta mode.

# Actor input Schema

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

Any of: chicago, seattle, austin, sf (San Francisco). Empty = all four.

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

Only permits issued in the last N days (1 to 365).

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

Keep only these project types: roof, solar, hvac, electrical, plumbing, new-construction, demolition, renovation, signage, other. Empty = all types.

## `minJobValueUsd` (type: `number`):

Skip permits with a reported job value below this. Permits with no reported value are skipped when this is above 0.

## `keyword` (type: `string`):

Only permits whose description, permit type or address contains this text (case-insensitive), e.g. "tankless" or "solar".

## `onlyNewSinceLastRun` (type: `boolean`):

Return only permits not returned by a previous run with the same State name. The first run returns everything. Every row carries isNew and firstSeenAt.

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

Name of the saved list of already-returned permits. Use different names for different watchlists.

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

Stop after this many permits (newest first, spread across the selected cities). You are charged per permit returned.

## Actor input object example

```json
{
  "cities": [
    "chicago",
    "seattle"
  ],
  "daysBack": 7,
  "permitTypes": [],
  "minJobValueUsd": 0,
  "onlyNewSinceLastRun": false,
  "stateKey": "default",
  "maxItems": 20
}
```

# Actor output Schema

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

One row per permit (default dataset items).

# 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",
        "seattle"
    ],
    "daysBack": 7,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datacrate/us-building-permits-feed").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",
        "seattle",
    ],
    "daysBack": 7,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datacrate/us-building-permits-feed").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",
    "seattle"
  ],
  "daysBack": 7,
  "maxItems": 20
}' |
apify call datacrate/us-building-permits-feed --silent --output-dataset

```

## MCP server setup

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

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/WO3DD7vrGWBQECzsk/builds/6ufAdtLl1E1S02UaB/openapi.json
