# US Building Permits Feed: SF, Austin, New Orleans (`asunoki/us-building-permits-feed`) Actor

Newly issued building permits from official city open-data portals in one schema: type, value, address, status, coordinates, contractor company. Schedule it and get only permits you have not seen. No API key. No owner names, phones or e-mails.

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

## Pricing

from $2.00 / 1,000 new 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 Feed: new issued permits from San Francisco, Austin and New Orleans

> **Status: local build, not published.** Draft Store README. Not pushed to Apify, no pricing set.

Get building permits the day the city publishes them, in one schema, for three US cities. Filter by keyword ("solar",
"roof", "ADU"), project value, ZIP and permit type. Schedule it daily and each run outputs only permits you have not
received before. No API key, no login.

**Cost:** pay per permit stored (proposed $0.002 per permit, final price shown on the pricing tab) plus Apify's small per-run
start fee ($0.00005). `maxItems` caps every run, so a run never costs more than `maxItems x price` plus that fee, and the run also stops at the maximum charge you set for it.
Permits that are filtered out, already seen, or not stored are never charged; the summary row is free.

### Who it is for

Solar, roofing, HVAC, electrical and plumbing companies, suppliers, and local real-estate or construction analysts who want a
daily list of newly issued permits in a few big metros, with value, address and coordinates, to track local demand, projects
and competitors' activity, without maintaining three different portal integrations. Read "Terms you inherit" below before
using the data for outreach.

### What you get

One row per permit: `permitId`, `city`, `state`, `permitNumber`, `permitType`, `permitClass`, `workType`, `status`,
`issuedDate`, `appliedDate`, `valueUsd`, `address`, `zip`, `latitude`, `longitude`, `housingUnits`, `description`,
`contractorCompany`, `permitUrl`, `datasetUrl`, `license`, `attribution`, `fetchedAt`. Also `report.csv` (same rows) and a run summary
(`OUTPUT`). A free summary row at the end of the dataset reports rows scanned, matched, skipped and per-city status.

See `docs/sample-output.json` for real rows from a local run.

### Cities and sources

| City | Source (official open-data portal) | Licence shown on the portal |
|---|---|---|
| San Francisco | data.sf.gov, Building Permits (i98e-djp9) | Open Data Commons PDDL 1.0 |
| Austin | data.austintexas.gov, Issued Construction Permits (3syk-w9eu) | Public Domain U.S. Government label; City terms: public domain, free and without restriction |
| New Orleans | data.nola.gov, Permits (rcm3-fn58) | CC0 1.0 |

Data: City and County of San Francisco, City of Austin, City of New Orleans open-data portals. This Actor
is not affiliated with or endorsed by any city. Details and caveats in `docs/DATA_SOURCE.md`.

### Ready-made code and workflows

Example: new solar and roofing permits in Austin. Runnable Node.js and Python examples (CSV output, a printed cost estimate before every run, a spend cap), a weekly GitHub Actions workflow and a free demo: [asunokio-official/apify-recipes](https://github.com/asunokio-official/apify-recipes?utm_source=apify\&utm_medium=readme\&utm_campaign=us-building-permits-feed). Published by the same author (ASUNOKI), MIT licence.

### Honest limits

- **Three cities only.** Several Store Actors cover 10 to 44 cities (including Chicago, NYC and LA). We included only
  portals whose dataset carries an explicit public-domain-type licence and whose terms do not restrict commercial use.
  Seattle was left out because its data policy restricts commercial use of data that can be configured as a list of
  individuals. If you need other cities, use another Actor.
- **Not real time.** Portals publish with a lag. Measured on Sunday 22 Nov 2026: the newest permit was issued on Friday
  20 Nov in San Francisco, Austin and New Orleans. Expect permits 1 to 3 days after issue
  (more over weekends). A new permit appears in the next run after the city publishes it. The default window is 7 days; with
  "only new" nothing repeats.
- **Declared values are self-reported.** Some cities contain placeholders (San Francisco often has 1.0; Austin has 0 for
  some trades). Filter with `minValueUsd` if you only want real projects.
- **Fields differ by city.** `permitClass` only for Austin; `contractorCompany` only for Austin and New Orleans;
  `zip` is not published by New Orleans; `housingUnits` only for Austin. Missing values are `null`.
- **Issued permits only** (by issue date), not applications or inspections.
- **No owner, applicant or personal contractor names, no phone numbers, no e-mail addresses.** Those columns are never
  requested. Phone numbers and e-mails typed into free-text descriptions are replaced by a marker. A contractor company name
  is output only when it looks like a business (LLC, Inc, Roofing, ...); this is a heuristic and can miss real companies
  with plain names or, rarely, let through a personal name that contains such a word. Turn it off with
  `includeContractorCompany: false`.
- Cities may change or retire datasets. The Actor checks the source format on every run and stops loudly instead of
  emitting wrong data (see below).

### How it works

1. For each selected city, reads permits issued on or after your window start from the portal's public SODA API, newest
   first, in pages of 1,000, with timeouts and retries (backoff, `Retry-After`).
2. Applies your filters locally, the same way for every city.
3. Remembers which permits it has already output for the same filter set (named key-value store). Permits cut off by
   `maxItems` or your spending limit are not remembered, so the next run still delivers them.
4. Interleaves cities within the same issue date, so one big city cannot crowd out the others when `maxItems` applies.

**Error handling.** A city that is down does not stop the others. If a portal drops or renames a column, or a row has no
usable ID or date, the run stores the other cities' permits and then fails with `schema_changed`, so you notice. A
temporary outage of one city (HTTP 429/5xx, network error, or an HTML maintenance page) is retried with backoff and then
reported as an error in the summary; the run fails only if no city could be read. A city that returns no permits at all for
the window gets a `source_empty` warning. Nothing is charged for permits that were not stored.

### Input examples

Solar and roofing permits above $5,000 in Austin and San Francisco:

```json
{ "cities": ["austin", "san-francisco"], "keywords": ["solar", "roof"], "minValueUsd": 5000, "maxItems": 200 }
```

Every new permit in all three cities, daily schedule:

```json
{ "lookbackDays": 7, "onlyNew": true, "maxItems": 1000 }
```

### Comparison (Apify Store, checked 2026-11-22)

| Actor | Cities | 30-day users | Price per item |
|---|---|---|---|
| pink_comic/building-permits-construction-leads | 44 portals | 23 | $0.002 to $0.0016 |
| handstands.io/us-building-permit-scraper | 13 | 12 | $0.01 |
| samstorm/building-permit-lead-scraper | several | 11 | $0.003 |
| inexhaustible_glass/us-building-permits-scraper | many | 9 | $0.008 + $0.02 start fee |
| hanamira/building-permits-search | 6 + any Socrata | 9 | $0.004 |
| This Actor | 4 | new | not set (see `docs/COST.md`) |

Full list: `docs/COMPETITORS.md`.

Where this Actor differs: explicit licence per source, a scheduled "only new" feed with persistent state, privacy by
design (no owner/applicant/contact columns), loud failure on source changes, and a hard per-run spending cap. Where it is
weaker: fewer cities.

### Terms you inherit

The data is public domain or CC0, but each city publishes terms of use. By using the output you accept them:

- **Austin** (https://data.austintexas.gov/stories/s/ranj-cccq): credit the City of Austin and the source department; do not
  try to re-identify people in the data or contact individuals represented in it.
- **San Francisco** (https://data.sf.gov/terms-of-use): data is provided "as is"; you indemnify the City for your use.
- **New Orleans**: CC0; the City says the data "is free to use and free to share".

This Actor provides building-permit records for market and project research. It does not provide homeowner names or contact
details, and it is not a tool for contacting the residents of a permit address. Not legal advice.

### Attribution

Permit data: City of Austin, Texas, Austin Development Services (City of Austin Open Data Portal); City and County of San
Francisco, Department of Building Inspection (DataSF); City of New Orleans, Department of Safety and Permits. Each row carries
`datasetUrl`, `license` and `attribution`; the run's `OUTPUT` lists dataset URL, licence, attribution and terms URL per city
(New Orleans: https://datadriven.nola.gov/open-data/). This Actor is not affiliated with or endorsed by any of the cities.

# Actor input Schema

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

Leave empty for all three cities. Each city is read from its own official open-data portal.

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

A permit matches if any keyword appears, e.g. "solar", "roof", "ADU", "demolition", "pool". Leave empty for all permits.

## `permitTypeContains` (type: `array`):

Text in the permit type or work type, e.g. "electrical", "plumbing", "new construction".

## `minValueUsd` (type: `number`):

Skips permits whose declared value is below this or missing. Declared values are what the applicant reported; some cities use placeholders like 1.

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

5-digit ZIP codes. New Orleans does not publish a ZIP, so those permits are excluded when this is set.

## `lookbackDays` (type: `integer`):

Portals publish with a lag of about 1 to 3 days. With "only new" on and a daily schedule, a 7-day window repeats nothing and catches every permit the city publishes within 7 days of its issue date.

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

Remembered per filter set in a named key-value store. Turn off to get the whole window every time.

## `includeDescription` (type: `boolean`):

Free text from the permit, shortened to 800 characters. E-mail addresses and phone numbers typed into it are replaced by a marker.

## `includeContractorCompany` (type: `boolean`):

Austin and New Orleans only. A name is output only if it contains a business word (LLC, Inc, Roofing, ...); other names are dropped. This is a heuristic: a sole trader whose trade name has such a word can pass.

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

You are charged per permit stored (plus Apify's small per-run start fee), so this caps the cost of a run. Permits cut by the limit stay new for the next run while they are still inside the window.

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

Not needed. If the portals throttle you at high volume, a free token from the portal raises the limit.

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

Leave empty to use the default.

## Actor input object example

```json
{
  "cities": [
    "austin",
    "san-francisco"
  ],
  "keywords": [
    "solar",
    "roof"
  ],
  "lookbackDays": 7,
  "onlyNew": true,
  "includeDescription": true,
  "includeContractorCompany": true,
  "maxItems": 200
}
```

# Actor output Schema

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

No description

## `reportCsv` (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": [
        "austin",
        "san-francisco"
    ],
    "keywords": [
        "solar",
        "roof"
    ]
};

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

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

```

## MCP server setup

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