# US Building Permits Scraper (official city open data) (`wellbuilt_seahare/us-building-permits`) Actor

Get newly issued building permits from official open-data portals in New York, Chicago, Los Angeles, San Francisco, Austin, Seattle, New Orleans and Baton Rouge. Filter by date, keyword and job cost. One clean schema, no owner names.

- **URL**: https://apify.com/wellbuilt_seahare/us-building-permits.md
- **Developed by:** [Kossin Labs](https://apify.com/wellbuilt_seahare) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 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 Permits Scraper (official city open data)

Pull newly issued building permits from the official open-data portals of 8 US cities, all in one clean table. Built for contractors, suppliers, solar and roofing installers, real-estate and construction-lead teams who want fresh permit leads without checking each city site.

### Cities covered

| City | Source (official portal) | Contractor name |
|---|---|---|
| New York City, NY | NYC Open Data, DOB NOW: Build Approved Permits | Yes (+ license no.) |
| Chicago, IL | City of Chicago Data Portal, Building Permits | Yes |
| Los Angeles, CA | LA Open Data, Building Permits Issued 2020 to present | No |
| San Francisco, CA | DataSF, Building Permits | No |
| Austin, TX | Austin Open Data, Issued Construction Permits | Yes |
| Seattle, WA | Seattle Open Data, Building Permits | When published |
| New Orleans, LA | NOLA Open Data, Permits | Business names only |
| Baton Rouge, LA | Open Data BR, Building Permits | Business names only |

Data comes straight from each city's public Socrata API, usually updated daily. More cities are on the way. Want one? Open an issue.

### What you can filter

- **Cities**: pick any of the 8.
- **Issue date range**: defaults to the last 7 days.
- **Keyword** in the work description: `solar`, `roof`, `ADU`, `demolition`, `pool`, `new building`...
- **Minimum estimated cost**: skip small jobs.
- **Max results** per city and in total, so you control spend.

### Example input

```json
{
  "cities": ["new-york-ny", "chicago-il", "austin-tx"],
  "issuedFrom": "2026-11-01",
  "keyword": "solar",
  "minEstimatedCost": 20000,
  "maxResultsPerCity": 200
}
```

### Output

One row per permit, same fields for every city (empty when a city doesn't publish that field):

```json
{
  "city": "New York City, NY",
  "permitNumber": "Q01487211-I1-SL",
  "permitType": "Solar",
  "subType": "Initial Permit",
  "status": "Permit Issued",
  "description": "INSTALLATION OF SOLAR PANELS, ROOFTOP, RAILED, GRID-TIED, 10 MODULES, 4.1KW",
  "address": "25-20 146 STREET",
  "zip": "11354",
  "area": "Queens",
  "approvedDate": "2026-11-12",
  "issueDate": "2026-11-18",
  "estimatedCost": 20500,
  "contractorName": "MOMENTUM SOLAR",
  "contractorLicense": "104468",
  "latitude": 40.776152,
  "longitude": -73.821742,
  "source": "https://data.cityofnewyork.us/d/rbx6-tga4"
}
```

Export as JSON, CSV, Excel, or pull it through the Apify API, and schedule it daily or weekly to get only new permits.

### Pricing

Pay per result: you are charged only for permits saved to the dataset. Set a max total charge on the run if you want a hard cap.

### Privacy

This Actor returns public permit records only. It never returns property owner names or the names of private individuals. Contractor fields are kept only when they are business names.

### Notes

- Each city decides what it publishes and how often, so field coverage differs by city (see the table).
- Estimated cost is what the applicant declared to the city, not a final price.
- Data is provided by the cities under their open-data terms. Kossin Labs is not affiliated with any city.

Made by Kossin Labs. Questions or a city request: use the Issues tab.

# Actor input Schema

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

Which city open-data portals to pull permits from.

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

Earliest issue date. Defaults to 7 days ago.

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

Latest issue date. Defaults to today.

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

Optional. Only permits whose description contains this text, e.g. solar, roof, ADU, demolition, pool.

## `minEstimatedCost` (type: `integer`):

Optional. Skip small jobs, e.g. 50000.

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

Maximum number of permits to return per city.

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

Maximum total number of permits to return across all cities.

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

Optional free token from any Socrata portal for higher rate limits on very large pulls.

## Actor input object example

```json
{
  "cities": [
    "new-york-ny",
    "chicago-il",
    "los-angeles-ca"
  ],
  "maxResultsPerCity": 50,
  "maxResults": 150
}
```

# Actor output Schema

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

Dataset with the permit records.

# 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": [
        "new-york-ny",
        "chicago-il",
        "los-angeles-ca"
    ],
    "maxResultsPerCity": 50,
    "maxResults": 150
};

// Run the Actor and wait for it to finish
const run = await client.actor("wellbuilt_seahare/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": [
        "new-york-ny",
        "chicago-il",
        "los-angeles-ca",
    ],
    "maxResultsPerCity": 50,
    "maxResults": 150,
}

# Run the Actor and wait for it to finish
run = client.actor("wellbuilt_seahare/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": [
    "new-york-ny",
    "chicago-il",
    "los-angeles-ca"
  ],
  "maxResultsPerCity": 50,
  "maxResults": 150
}' |
apify call wellbuilt_seahare/us-building-permits --silent --output-dataset

```

## MCP server setup

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