# Building Permits Scraper — Solar & Roofing ($0.50/1k) (`desastreger/us-metro-building-trade-permits`) Actor

Scrape fresh US residential & commercial building, solar PV, roofing, HVAC, electrical & remodel permits from 5 major municipal Socrata APIs (LA, Chicago, Austin, SF, Seattle). Normalized contractor leads. Early-bird $0.50/1k (rises to $1.50/1k). +MCP.

- **URL**: https://apify.com/desastreger/us-metro-building-trade-permits.md
- **Developed by:** [Ignacio De Saeger](https://apify.com/desastreger) (community)
- **Categories:** Lead generation, Real estate, MCP servers
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 normalized us metro building or trade permit leads

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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 — Solar, Roofing, HVAC & Construction Leads API

Scrape live municipal residential and commercial building permits, solar PV installations, roofing jobs, electrical panel upgrades, HVAC mechanical work, plumbing permits, and commercial tenant improvements across five major US metros—**Chicago, Austin, Seattle, Los Angeles, and San Francisco**—from official Socrata Open Data portals in one normalized schema. Instead of wrestling with incompatible city column names (`permit_` vs `pcis_permit` vs `permitnum`), every permit is mapped to an identical 18-field structure with `permitId`, `metro`, `city`, `state`, `tradeCategory` (`SOLAR`, `ROOFING`, `ELECTRICAL`, `HVAC_MECHANICAL`, `PLUMBING`, `NEW_CONSTRUCTION`, `COMMERCIAL_REMODEL`, `GENERAL_BUILDING`), `permitType`, `status`, `issueDate`, `address`, `zipCode`, `description`, `estimatedCostUsd`, `contractorName`, `contractorPhone`, `contractorLicense`, `leadScore`, `priorityTier`, and `sourcePortalUrl`. Built with per-city fault isolation and native MCP Standby Server support in 128 MB RAM. No external API key or proxy required.

### Use cases

- **Solar, Battery & EV Charger Distribution:** Capture newly issued residential and commercial solar PV and electrical panel-upgrade permits (`tradeFilter: "solar"` or `"electrical"`) with contractor contact details.
- **Roofing, HVAC & MEP Material Supply:** Target active roofing, heat-pump, mechanical, and plumbing jobs filtered by minimum project valuation (`minEstimatedCostUsd`).
- **Commercial Real Estate (CRE) & Tenant Improvement Scouting:** Monitor high-dollar `commercial_remodel` and `new_construction` filings across top US metro markets.
- **Construction Fintech, Insurance & Equipment Rental:** Reach active licensed contractors immediately after permit issuance for bonding, equipment leasing, or project financing.
- **AI GTM & Field-Sales Agents via MCP:** Query live multi-city construction permit pipelines directly inside Claude Desktop, Cursor, or Google Antigravity via `/mcp`.

***

### Launch Pricing (Pay-Per-Event)

> \[!IMPORTANT]
> **Early-Adopter Launch Rate (`$0.50 / 1,000 permits`):** Temporary promotional pricing (**60x cheaper** than `$30/1k` Store competitors) for early adopters & integrations.
> **Upcoming Standard Rate (`$1.50 / 1,000 permits`):** Price will step up once initial launch benchmarks are met — and even the permanent standard rate remains **20x cheaper** than comparable `$30/1k` building-permit scrapers.

Transparent usage-based pricing with zero monthly subscription overhead:

| Event | Description | Early-Adopter Launch (FREE) | Upcoming Standard Rate |
| :--- | :--- | :--- | :--- |
| **`building-permit-lead`** *(primary)* | Normalized US metro building, solar, roofing, electrical, HVAC, plumbing, or commercial remodel permit lead | **$0.0005 / permit ($0.50 / 1k)** | $0.0015 / permit ($1.50 / 1k) |
| **`apify-actor-start`** | One-time container start fee per Actor run | **$0.00005 / run** | $0.00005 / run |

***

### Supported US Metro Portals (`metros`)

| Metro Key | City / State | Official Municipal Open-Data Portal |
| :--- | :--- | :--- |
| `chicago` | Chicago, IL | City of Chicago Dept. of Buildings (`ydr8-5enu`) |
| `austin` | Austin, TX | City of Austin Issued Construction Permits (`3syk-w9eu`) |
| `seattle` | Seattle, WA | City of Seattle SDCI Building Permits (`76t5-zqzr`) |
| `los_angeles` | Los Angeles, CA | City of Los Angeles LADBS Permits (`xnhu-aczu`) |
| `san_francisco` | San Francisco, CA | San Francisco Dept. of Building Inspection (`i98e-djp9`) |

***

### 1-Click JSON Input Example

```json
{
  "metros": ["chicago", "austin", "seattle", "los_angeles", "san_francisco"],
  "tradeFilter": "solar",
  "minEstimatedCostUsd": 15000,
  "keywords": ["battery", "PV"],
  "maxResults": 25
}
```

***

### Sample Output JSON

```json
{
  "permitId": "2026-141802 EP",
  "metro": "austin",
  "city": "Austin",
  "state": "TX",
  "tradeCategory": "SOLAR",
  "permitType": "Electrical Permit - Solar - Residential",
  "status": "Active",
  "issueDate": "2026-11-09",
  "address": "4812 SHOAL CREEK BLVD",
  "zipCode": "78756",
  "description": "Install 11.2 kW rooftop solar PV array with battery energy storage system",
  "estimatedCostUsd": 38500,
  "contractorName": "FREEDOM SOLAR LLC",
  "contractorPhone": "(512) 555-0194",
  "contractorLicense": null,
  "leadScore": 83,
  "priorityTier": "HOT",
  "sourcePortalUrl": "https://abc.austintexas.gov/web/permit/public-search-other?t_detail=1&t_selected_folderrsn=13791002"
}
```

***

### API Quickstart (cURL, Node.js, Python)

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/desastreger~us-metro-building-trade-permits/run-sync-get-dataset-items?token=<APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"metros": ["chicago", "austin", "seattle"], "tradeFilter": "all", "maxResults": 10}'
```

#### Node.js (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('desastreger/us-metro-building-trade-permits').call({
  metros: ['chicago', 'austin', 'seattle'],
  tradeFilter: 'solar',
  minEstimatedCostUsd: 15000,
  maxResults: 25,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("desastreger/us-metro-building-trade-permits").call(
    run_input={"metros": ["austin", "los_angeles"], "tradeFilter": "roofing", "maxResults": 25}
)
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)
```

***

### Model Context Protocol (MCP) Standby Server

Connect **Claude Desktop**, **Cursor**, or **Google Antigravity** directly to the live Streamable HTTP MCP endpoint:

```json
{
  "mcpServers": {
    "us-metro-building-trade-permits": {
      "url": "https://desastreger--us-metro-building-trade-permits.apify.actor/mcp",
      "headers": {
        "Authorization": "Bearer <APIFY_TOKEN>"
      }
    }
  }
}
```

#### Available MCP Tools

- `search_metro_building_permits`: Query live building & specialty trade permits across `chicago`, `austin`, `seattle`, `los_angeles`, and `san_francisco` filtered by `tradeFilter`, `minEstimatedCostUsd`, `keywords`, and `maxResults`.
- `list_supported_permit_metros`: List all supported US municipal permit portals, dataset URLs, ordering fields, and supported trade filters.

***

### Data Legality & Provenance

100% of data is retrieved from official US municipal open-data portals (`data.cityofchicago.org`, `data.austintexas.gov`, `data.seattle.gov`, `data.lacity.org`, `data.sfgov.org`) published as public municipal records.

# Actor input Schema

## `metros` (type: `array`):

Municipal Socrata open-data portals to query. Supported keys: 'chicago', 'austin', 'seattle', 'los_angeles', 'san_francisco'.

## `tradeFilter` (type: `string`):

Filter permits to a specific high-intent construction or specialty trade category, or select 'all' to return all categories.

## `minEstimatedCostUsd` (type: `integer`):

Minimum reported project valuation / estimated construction cost in USD (e.g., 15000 for $15,000+ jobs).

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

Optional keywords matched case-insensitively against permit description, permit type, contractor name, or address (e.g., 'EV charger', 'heat pump', 'tenant improvement').

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

Maximum total number of normalized building permit leads to return across selected metros (1 to 500).

## Actor input object example

```json
{
  "metros": [
    "chicago",
    "austin",
    "seattle"
  ],
  "tradeFilter": "all",
  "minEstimatedCostUsd": 0,
  "keywords": [],
  "maxResults": 25
}
```

# Actor output Schema

## `permits` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("desastreger/us-metro-building-trade-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("desastreger/us-metro-building-trade-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 '{}' |
apify call desastreger/us-metro-building-trade-permits --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,desastreger/us-metro-building-trade-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/fkNfeYL6CwKtAEvrx/builds/R5drjzwdiKA5FyxtK/openapi.json
