# US Building Permits Scraper: Construction Leads, 4 Cities (`agents001/us-building-permits`) Actor

Returns US building permits newly issued in New York City, Chicago, San Francisco and Austin from official open data in one schema: work type, valuation, dates, status, contractor company and site address. Construction leads without personal data.

- **URL**: https://apify.com/agents001/us-building-permits.md
- **Developed by:** [Mike Ross](https://apify.com/agents001) (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 permit records

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 Scraper: Construction Leads, 4 Cities

**US building permits scraper** that returns newly issued building permits from official city open data, **one record per permit in one schema across cities**: city, permit number, permit and work type, a shared work category, work description, valuation in US dollars, issued, filed and expiry dates, status, contractor company, site address, ZIP code, neighborhood, latitude and longitude, plus the source record id, a link to the source record and the licence and attribution for each record.

It reads four city permit datasets through their official Socrata open data APIs: **New York City, Chicago, San Francisco and Austin**. Pick the cities and an issue date window, filter by work category, permit type, description keyword, minimum valuation or ZIP code, and schedule it daily with `onlyNew` switched on to get just the permits issued since your last run.

**Privacy built in.** Names, phone numbers, licence numbers and mailing addresses of individuals are removed. Property owner details are never output, not even owner company names. Contact names are kept only where they are clearly business names, such as the contractor company.

Use it to:

- Find construction leads: contractor companies that just pulled permits for roofing, solar, HVAC or new construction in your ZIP codes.
- Get a daily list of new construction and large renovation jobs above a valuation you choose.
- Measure construction activity by city, neighborhood and work type over time.
- See which contractor companies are winning work in a market.

### What you get

| Field | Example | Notes |
|---|---|---|
| `city`, `cityKey`, `state` | New York City, `nyc`, NY | |
| `permitNumber` | `M01468305-I1-GC` | The city's own permit number |
| `sourceId` | `M01468305-I1-GC#1` | Unique row id in the city dataset |
| `permitType`, `workType` | `PERMIT - NEW CONSTRUCTION`, `Plumbing` | As each city publishes them |
| `workCategory` | `new-construction` | One shared category across cities (list below) |
| `filingReason`, `isRenewal` | Initial Permit, false | NYC renewals and Chicago reinstatements are flagged |
| `description` | Interior tenant finish out new commercial space | Work description as filed |
| `valuation` | 350000 | Stated job value or cost in USD |
| `issuedDate`, `filedDate`, `approvedDate`, `expiresDate` | 2026-10-22 | YYYY-MM-DD |
| `status`, `statusDetail` | ACTIVE, INSPECTION ELIGIBLE | |
| `housingUnits` | 3 | San Francisco and Austin |
| `contractorCompany`, `contractorTrade` | SUNRUN INSTALLATION SERVICES INC, Electrical Contractor | Business names only |
| `businesses` | `[{"role": "Expeditor", "name": "PERMIT STUDIO LLC"}]` | Contractor, architect, engineer and expediter firms on the permit |
| `address`, `streetAddress`, `unit`, `neighborhood`, `zipCode` | 990 N LAKE SHORE DR, Chicago, IL 60611 | Site of the work |
| `latitude`, `longitude` | 41.9007333, -87.6198571 | |
| `permitPageUrl` | City permit page | Austin only |
| `sourceUrl` | SODA API URL for this record | |
| `sourceDataset`, `sourceDatasetId`, `sourcePortalUrl`, `sourceDataVersion` | Building Permits, `ydr8-5enu`, dataset page, 2026-10-23T12:19:04Z | Version is the time the city last updated the dataset |
| `license`, `attribution` | | The licence, required notices and our modifications, on every record |
| `isNew` | true | Not returned by a previous run with the same input |

Work categories: `new-construction`, `alteration`, `demolition`, `electrical`, `plumbing`, `mechanical`, `fire-protection`, `structural`, `solar`, `roofing`, `sign`, `elevator`, `temporary-structure` (scaffolds, sidewalk sheds, construction fences, tents), `site-work` (curb cuts, driveways, sidewalks, irrigation) and `other`. The Actor maps them from each city's own permit and work types, and uses the description to spot new buildings, solar and re-roofing inside general permits.

The dataset has four views: **Permits**, **Contractors**, **Locations** and **Sources and licences**. A `RUN_SUMMARY` record in the default key-value store lists rows read, records returned, the dataset version and any errors per city.

### Who uses it

- **Contractors, subcontractors and suppliers**: see which companies just pulled permits for roofing, solar, HVAC, scaffolding or new construction in your ZIP codes, and what the jobs are worth.
- **Building product and equipment sellers**: track new construction and large renovations by valuation.
- **Real estate, investment and market analysts**: measure construction activity by city, neighborhood and work type over time.
- **Insurers, lenders and data teams**: a clean daily feed of permit activity in one schema, with the source record linked.

This is not a homeowner contact list: owner details are removed, and San Francisco's terms forbid contacting individuals in its data. See the city terms below.

### Cities and sources

| City | Dataset | Updated | Contractor company | Valuation |
|---|---|---|---|---|
| New York City | NYC Department of Buildings, DOB NOW: Build Approved Permits (`rbx6-tga4`) | Daily | Yes (permit holder) | Estimated job costs |
| Chicago | City of Chicago Department of Buildings, Building Permits (`ydr8-5enu`) | Daily | Yes (contractor contacts) | Reported cost |
| San Francisco | Department of Building Inspection, Building Permits (`i98e-djp9`) | Daily | Not published | Revised cost, else estimated cost |
| Austin | City of Austin, Issued Construction Permits (`3syk-w9eu`) | Daily | Yes | Total job valuation, else the sum of the trade valuations |

Cities publish permits one to three days after issue, so a window of a few days is normal. New York City covers every permit filed in DOB NOW, which handles all new job filings; permits from the older BIS system are not included. Chicago has no ZIP column, so the Actor takes each permit's ZIP code from the City's own ZIP boundary tagging. Los Angeles is not included yet.

### Input

| Field | Default | What it does |
|---|---|---|
| `cities` | all four | `nyc`, `chicago`, `san-francisco`, `austin` |
| `issuedWithinDays` | 7 | Permits issued from N-1 days ago to today (UTC) |
| `issuedFrom`, `issuedTo` | | A fixed issue date range (YYYY-MM-DD). Overrides `issuedWithinDays` |
| `workCategories` | all | Only these shared categories |
| `permitTypes` | | Only permits whose permit type or work type contains any of these words |
| `descriptionKeywords` | | Only permits whose description contains any of these words |
| `minValuation` | 0 | Minimum stated value in USD. Permits with no value are dropped when this is above 0 |
| `zipCodes` | | Only sites in these 5-digit ZIP codes |
| `excludeRenewals` | false | Drop NYC renewals and Chicago reinstatements |
| `onlyNew` | false | Only permits not returned by a previous run with the same input |
| `maxItems` | 1000 | Maximum records, newest first, shared fairly across cities. 0 means no limit |
| `socrataAppToken` | | Optional secret. A free Socrata app token raises the polite request rate |
| `stateStoreName` | `agents001-us-building-permits-state` | Key-value store that keeps the `onlyNew` history |
| `requestDelaySecs` | 1 (0.25 with a token) | Minimum gap between requests to the same portal |

Example: new construction and demolition permits worth $250,000 or more issued in Chicago and Austin in September 2026.

```json
{
    "cities": ["chicago", "austin"],
    "issuedFrom": "2026-09-01",
    "issuedTo": "2026-09-30",
    "workCategories": ["new-construction", "demolition"],
    "minValuation": 250000,
    "maxItems": 0
}
```

Example: a daily feed of solar permits in Brooklyn and Queens ZIP codes.

```json
{
    "cities": ["nyc"],
    "issuedWithinDays": 3,
    "workCategories": ["solar"],
    "zipCodes": ["11211", "11222", "11101", "11375"],
    "onlyNew": true
}
```

With no input at all the Actor returns up to 1,000 permits issued in the last 7 days across the four cities.

### How "only new permits" works

With `onlyNew` on, the Actor keeps the ids of permits it has returned in a named key-value store in your account (default name `agents001-us-building-permits-state`), one record per distinct input (cities and filters; `maxItems` does not count). Each run returns only permits not returned before. Ids older than the start of the date window are pruned automatically. Change any filter and a fresh history starts. Use a window of 3 to 7 days for daily runs so permits that cities publish late are still picked up.

With `onlyNew` off, the Actor does not open or update this store, so every record has `isNew` set to true. If a run stops with a message that it cannot open the store (for example because another Actor in your account already uses that name), enter a different name in **State store name** and run again.

### Speed and rate limits

The Actor waits at least 1 second between requests to each city portal and runs the four cities in parallel. Each request returns up to 1,000 permits, so a week of permits across all four cities (about 3,500 records) takes under a minute. Socrata throttles anonymous requests by IP from a shared pool; if you run large historical pulls, add a free app token from any Socrata portal (for example data.cityofnewyork.us, Developer Settings).

### Pricing

This Actor uses **pay per event** pricing:

- **$4 per 1,000 permit records** (`permit-record` event, $0.004 each)

Platform usage is included. You only pay for records saved to your dataset, so filters, `onlyNew` and `maxItems` keep costs down. Set a maximum cost per run in the run options and the Actor stops cleanly when it is reached.

### FAQ

**How fresh is the data?**
Each city updates its permit dataset daily, and permits appear one to three days after they are issued. Each run reads the latest data.

**How much does a typical run cost?**
$4 per 1,000 permit records. A run with no input returns up to 1,000 permits, so it costs at most $4. Filters, `onlyNew` and `maxItems` keep it lower.

**Can I schedule it and get only new permits?**
Yes. Schedule it daily in Apify with `onlyNew` on and a window of 3 to 7 days. Each run then returns only permits not returned before for the same input.

**Does it need a login or API key?**
No. A free Socrata app token is optional and only raises the request rate for large historical pulls.

**What formats can I export?**
Apify gives you the dataset as JSON, CSV or Excel, and through the Apify API or an integration.

**Is it legal? Where does the data come from?**
All data comes from each city's official open data portal under the licences and terms listed below. Names and phone numbers of individuals and all property owner details are removed.

**Why is the contractor company empty on some permits?** San Francisco does not publish contractor names in this dataset. In other cities the contact may be an individual, and individuals' names are never output.

**Why do valuations look low for some permits?** Cities publish the value the applicant declared. Small trade permits often state a nominal value, and some Austin trade permits state none.

**Can I get the property owner?** No. Owner details are removed on purpose, and San Francisco's terms forbid re-identifying or contacting individuals.

**Can I add another city?** Only cities whose open data terms allow commercial reuse are included. More cities may follow.

### Licences, attribution and required notices

Every record carries a `license` and an `attribution` field with the notices below, the source dataset id and its version. In every city this Actor modifies the data as follows: only selected columns are read; names, phone numbers, licence numbers and mailing addresses of individuals are removed, and all property owner details are removed; contact names are kept only where they are business names; fields are renamed to one schema shared across cities; dates are converted to ISO 8601 and amounts to numbers; a work category is added; exact duplicate rows are dropped.

**New York City.** Source: NYC Open Data, New York City Department of Buildings (DOB), dataset `rbx6-tga4` (https://data.cityofnewyork.us/d/rbx6-tga4). The version is the dataset's last update time, given in `sourceDataVersion` on each record. NYC public data sets are available without a licence requirement or restrictions on use (NYC Administrative Code section 23-502(d)); the NYC.gov Terms of Use apply. The City provides the data for informational purposes, without warranty.

**Chicago.** Source: City of Chicago Data Portal, Department of Buildings, dataset `ydr8-5enu` (https://data.cityofchicago.org/d/ydr8-5enu), under the City of Chicago Data Portal Terms of Use (https://www.chicago.gov/city/en/narr/foia/data_disclaimer.html). The City requires this disclaimer:

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

**San Francisco.** Source: DataSF, City and County of San Francisco, Department of Building Inspection, dataset `i98e-djp9` (https://data.sf.gov/d/i98e-djp9), under the Open Data Commons Public Domain Dedication and License (PDDL) 1.0 and the DataSF Terms of Use. Under those terms you must not take any measures to re-identify individuals in this data, must not combine it with other data sets for the purpose of re-identification, and must not contact individuals whose information is represented in it.

**Austin.** Source: City of Austin, Texas - data.austintexas.gov, dataset `3syk-w9eu` (https://data.austintexas.gov/d/3syk-w9eu), licensed Public Domain U.S. Government (https://www.usa.gov/government-works).

This Actor is not affiliated with, endorsed by or sponsored by the City of New York, the NYC Department of Buildings, the City of Chicago, the City and County of San Francisco, DataSF, the City of Austin or Tyler Technologies (Socrata).

# Actor input Schema

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

Which city permit datasets to read. Leave empty for all four.

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

Permits issued from N-1 days ago up to today (UTC), so 1 means today only and 7 means the last week. Ignored when you set an issue date range below. Cities publish with a delay of one to three days.

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

Start of a fixed issue date range, YYYY-MM-DD. Overrides 'Issued in the last N days'. If you set only this, the range runs to today.

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

End of a fixed issue date range, YYYY-MM-DD, inclusive. If you set only this, the range covers the 7 days up to it.

## `workCategories` (type: `array`):

Only permits in these shared categories, which the Actor maps from each city's own permit and work types. Leave empty for all.

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

Only permits whose city permit type or work type contains any of these words, for example 'Plumbing', 'New Construction', 'Sidewalk Shed' or 'Remodel'. Case-insensitive.

## `descriptionKeywords` (type: `array`):

Only permits whose work description contains any of these words or phrases, for example 'solar', 'restaurant', 'ADU' or 'kitchen'. Case-insensitive.

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

Only permits with a stated job value or cost of at least this many US dollars. Permits with no stated value are dropped when this is above 0.

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

Only permits for sites in these 5-digit ZIP codes. Chicago ZIP codes come from the City's ZIP boundary tagging of each permit.

## `excludeRenewals` (type: `boolean`):

Drop permit renewals (New York City) and reinstated permits (Chicago) so only first-time permits remain.

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

Remember which permits were already returned for this exact input and only return permits that are new since then. The first run returns everything that matches. Ideal for scheduled daily runs. Changing the cities or filters starts a fresh history.

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

Stop after this many permit records in total, newest first, shared fairly across the chosen cities. 0 means no limit. You pay per permit record returned.

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

A free app token from any Socrata open data portal (for example data.cityofnewyork.us, under Developer Settings). Without one the Actor still works, at a slower polite rate, because Socrata throttles requests without a token.

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

Only used when 'Only permits not seen in previous runs' is on. Name of the key-value store in your account that keeps the list of permits already returned. Each different input gets its own record inside it. Change it only to keep separate histories. If a run reports that it cannot open the store, enter a different name here.

## `requestDelaySecs` (type: `number`):

Minimum seconds between requests to the same city portal. Default 1 second without an app token and 0.25 seconds with one. Keep this polite: these are public government services.

## Actor input object example

```json
{
  "cities": [
    "nyc",
    "chicago",
    "san-francisco",
    "austin"
  ],
  "issuedWithinDays": 7,
  "minValuation": 0,
  "excludeRenewals": false,
  "onlyNew": false,
  "maxItems": 1000,
  "stateStoreName": "agents001-us-building-permits-state"
}
```

# Actor output Schema

## `permits` (type: `string`):

No description

## `contractors` (type: `string`):

No description

## `runSummary` (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": [
        "nyc",
        "chicago",
        "san-francisco",
        "austin"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("agents001/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": [
        "nyc",
        "chicago",
        "san-francisco",
        "austin",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("agents001/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": [
    "nyc",
    "chicago",
    "san-francisco",
    "austin"
  ]
}' |
apify call agents001/us-building-permits --silent --output-dataset

```

## MCP server setup

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