# Multi-City Building Permits & Trade Intelligence Unifier (`divy4/multi-city-building-permits-unifier`) Actor

Live HTTP intelligence engine tracking municipal building permits across Austin, Seattle, Chicago, NYC, Denver, Los Angeles, Toronto, and Melbourne. Classifies specialized trades (solar, EV chargers, HVAC, roofing), normalizes valuations, and tracks contractors with zero browser overhead.

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

## Pricing

from $2.00 / 1,000 verified 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

## Multi-City Building Permits & Trade Contractor Intelligence Unifier

> **Unified High-Velocity Municipal Building Permit Feeds across 8 Premier Metros with Automated Trade Classification, Valuation Floors, and Stateful Delta Sync.**

Commercial subcontractors, building equipment manufacturers (HVAC, solar, electrical, commercial roofing), construction suppliers, and real estate analysts spend $15,000–$40,000/year on legacy construction lead providers.

This Actor eliminates the high-cost subscription barrier by aggregating official municipal building permits across **Austin, Seattle, Chicago, NYC, Denver, Los Angeles, Toronto, and Melbourne** directly via high-speed SODA JSON and ArcGIS REST endpoints into a single canonical stream.

***

### Key Features & Competitive Advantage

1. **8 Tier-1 Global Metros in One Schema**:
   - **Austin, TX** (City of Austin SODA Open Data)
   - **Seattle, WA** (Seattle Open Data SODA API)
   - **Chicago, IL** (City of Chicago Data Portal SODA API)
   - **New York City, NY** (NYC Open Data DOB NOW / Permit Issuance SODA API)
   - **Denver, CO** (Denver Open Data & ArcGIS FeatureServer)
   - **Los Angeles, CA** (City of Los Angeles SODA Open Data)
   - **Toronto, ON** (City of Toronto CKAN / Open Data)
   - **Melbourne, VIC** (City of Melbourne Open Data API)

2. **Automated Trade Classification Engine**:
   - `solar`: Rooftop photovoltaic arrays, microinverters, solar farms.
   - `ev_charger`: Level 2 & DC Fast EV charging stations, EVSE installations.
   - `roofing`: Commercial TPO membranes, tear-offs, reroofing, architectural shingles.
   - `hvac`: Chillers, commercial heat pumps, rooftop units (RTU), VRF systems.
   - `commercial_ti`: Commercial tenant improvements, office remodels, retail fitouts.
   - `plumbing`: Commercial water heaters, backflow preventers, sewer lines.
   - `electrical`: Service upgrades, 400A/800A switchgear, transformers.
   - `other`: General construction, structural alterations.

3. **Job Valuation Floor & Date Filtering**:
   - Target only high-value opportunities by filtering with `minValuation` (e.g. $50,000+ or $500,000+).
   - Ingest permits issued on or after specific dates with `issuedAfter` (YYYY-MM-DD).

4. **Stateful Delta Sync (`onlyNew: true`)**:
   - SHA-256 fingerprint deduplication tracks already-processed permits via Apify Key-Value Store.
   - Scheduled daily or weekly cron jobs emit *only net-new or modified permits*, eliminating duplicate spend.

5. **Ultra-Low Cost Pure HTTP Architecture**:
   - Zero headless browser overhead. Uses pure HTTP client with Brotli stream stripping and structural assertion checks.
   - Runs in <256MB RAM and completes within seconds.

***

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

Predictable and risk-free pricing:

- **Actor Run Start**: **$0.005** (`apify-actor-start`)
- **Per Verified Permit**: **$0.006** (`apify-default-dataset-item`)

***

### Example Input Configuration

```json
{
  "metros": ["austin", "seattle", "chicago"],
  "trades": ["solar", "roofing", "hvac"],
  "minValuation": 25000,
  "issuedAfter": "2026-01-01",
  "onlyNew": true,
  "maxItems": 50
}
```

***

### Canonical Output Dataset Record

Every item pushed to Apify Dataset adheres strictly to the canonical schema:

```json
{
  "permitNumber": "2026-150912 BP",
  "metro": "austin",
  "status": "ISSUED",
  "issuedDate": "2026-11-18",
  "permitType": "Solar Photovoltaic Installation",
  "workDescription": "Install 48kW commercial rooftop photovoltaic solar array with 3 inverters",
  "valuation": 145000,
  "trade": {
    "category": "solar",
    "confidence": "HIGH",
    "matchedKeywords": ["photovoltaic", "solar array", "inverter"]
  },
  "contractor": {
    "companyName": "Freedom Solar Power LLC",
    "licenseNumber": null,
    "phone": "5126759000"
  },
  "location": {
    "address": "1100 CONGRESS AVE",
    "city": "Austin",
    "stateOrProvince": "TX",
    "postalCode": "78701",
    "coordinates": {
      "latitude": 30.2747,
      "longitude": -97.7404
    }
  },
  "_sourceUrl": "https://data.austintexas.gov/resource/3syk-w9eu",
  "_fingerprint": "7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e6f7a8b",
  "_scrapedAt": "2026-11-19T20:25:00.000Z"
}
```

# Actor input Schema

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

Municipalities to ingest building permits from. SODA and ArcGIS endpoints are queried concurrently across selected cities.

## `trades` (type: `array`):

Filter by automated trade classification. Select one or more trades to isolate relevant contractor permits.

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

Filter by raw municipality permit types (e.g. \['Commercial Building', 'Demolition', 'Electrical', 'Plumbing']).

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

Filter out minor permits below this dollar threshold (e.g. 50000 for $50K+ commercial projects).

## `issuedAfter` (type: `string`):

Earliest permit issue date to retrieve. Defaults to recent filings if left blank (e.g. '2026-01-01').

## `contractorNames` (type: `array`):

Filter permits by specific contractor or business names (e.g. \['Tesla Energy', 'Sunrun', 'Turner Construction']).

## `searchKeywords` (type: `array`):

Keywords matched against work descriptions (e.g. \['generator', 'transformer', 'cleanroom', 'switchgear']).

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

If enabled, deduplicates against previous runs via Key-Value store and only outputs new or altered permits.

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

Maximum number of unified building permits to collect across selected metros.

## Actor input object example

```json
{
  "metros": [
    "austin",
    "seattle",
    "chicago"
  ],
  "trades": [
    "solar",
    "ev_charger",
    "roofing",
    "hvac"
  ],
  "minValuation": 10000,
  "onlyNew": true,
  "maxItems": 50
}
```

# Actor output Schema

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

Dataset containing normalized building permits with trade classification across Austin, Seattle, Chicago, NYC, Denver, LA, Toronto, and Melbourne.

# 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 = {
    "metros": [
        "austin",
        "seattle",
        "chicago"
    ],
    "trades": [
        "solar",
        "ev_charger",
        "roofing",
        "hvac"
    ],
    "minValuation": 10000,
    "onlyNew": true,
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("divy4/multi-city-building-permits-unifier").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 = {
    "metros": [
        "austin",
        "seattle",
        "chicago",
    ],
    "trades": [
        "solar",
        "ev_charger",
        "roofing",
        "hvac",
    ],
    "minValuation": 10000,
    "onlyNew": True,
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("divy4/multi-city-building-permits-unifier").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 '{
  "metros": [
    "austin",
    "seattle",
    "chicago"
  ],
  "trades": [
    "solar",
    "ev_charger",
    "roofing",
    "hvac"
  ],
  "minValuation": 10000,
  "onlyNew": true,
  "maxItems": 50
}' |
apify call divy4/multi-city-building-permits-unifier --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,divy4/multi-city-building-permits-unifier"
        }
    }
}
```

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/8x5BWMp5yJofOqnFx/builds/4bhMNtweKwOpPKsSF/openapi.json
