# Granicus SmartGov Municipal Building Permits & Leads (`zinky_atelier/smartgov-municipal-permits`) Actor

Multi-tenant scraper for Granicus SmartGov municipal permitting portals (\*.smartgovcommunity.com). Extracts commercial, residential, solar, roofing, HVAC, and planning permits with licensed contractor, parcel, fee, and coordinate enrichment plus stateful SEEN_PERMITS delta deduplication.

- **URL**: https://apify.com/zinky_atelier/smartgov-municipal-permits.md
- **Developed by:** [Travis Burrows](https://apify.com/zinky_atelier) (community)
- **Categories:** Lead generation, Real estate, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $17.50 / 1,000 municipal 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

## Granicus SmartGov Municipal Building Permits & Contractor Lead Feed

Extract newly submitted and issued **commercial building, residential construction, solar PV, roofing, HVAC/mechanical, electrical, ADU, and land-use planning permits** across hundreds of mid-sized US counties, cities, and state agencies powered by **Granicus SmartGov (`*.smartgovcommunity.com`)**.

- **Zero Headless Browsers & Zero Proxy Overhead:** Pure lightweight HTTP extraction running cleanly in **256 MB RAM**.
- **Full Permit Landing Page Enrichment:** Automatically captures **primary contractor company name, state contractor license number & expiration date, property owner of record, assessor parcel number (APN), GIS latitude/longitude, current permit fees, and full milestone dates**—even on portals where search result cards hide contractor and owner details.
- **Stateful `SEEN_PERMITS` Delta Mode (`onlyNew: true`):** Built natively for daily/hourly Apify Schedules feeding **Clay, Make, n8n, Zapier, Slack, HubSpot, Salesforce, and AI MCP agents (`mcp.apify.com`)** without ever paying twice for the same permit.

***

### Why Granicus SmartGov Municipal Portals?

Most off-the-shelf permit scrapers only cover Tier-1 Socrata open-data portals or Accela cities—leaving fast-growing mid-sized counties and regional municipalities completely unmonitored. Granicus SmartGov powers unified permitting across counties and state agencies in **Washington, Arizona, Virginia, Kentucky, Ohio, Missouri, Florida, and beyond**.

| Target B2B Workflow | How Teams Automate This Actor |
| :--- | :--- |
| **Solar, Roofing, HVAC & MEP Trade Subcontractors** | Schedule daily `SubmittedOn: 7D` runs filtered by `"Commercial"` or `"Residential"` to reach property owners and general contractors the day applications enter intake. |
| **Building Material Suppliers, Dumpster & Equipment Rental** | Monitor newly `Issued` commercial alterations, tenant improvements, and new builds with exact GIS coordinates (`latitude` / `longitude`) and licensed GC names. |
| **Commercial Insurance, Surety & Contractor SaaS (Clay / RevOps)** | Extract active contractors (`contractorName` + `contractorLicenseNumber` + `contractorLicenseExpiration`) pulling permits right now for outbound enrichment in Clay. |
| **Real Estate Acquisitions & Land Entitlement Analysts** | Track `Accessory Dwelling Unit`, `Plat`, `Grading`, and `Commercial New Building` filings by parcel number, city, or ZIP code. |

***

### Pre-Configured Verified SmartGov Jurisdictions (17+ Built-In + Custom Hostnames)

Pass any combination of built-in tenant slugs in `jurisdictions`, **plus any custom `*.smartgovcommunity.com` portal** in `customHostnames`:

| Slug | Municipality / Agency | State | Portal Hostname |
| :--- | :--- | :---: | :--- |
| `co-spokane-wa` | Spokane County | WA | `co-spokane-wa.smartgovcommunity.com` |
| `co-kitsap-wa` | Kitsap County | WA | `co-kitsap-wa.smartgovcommunity.com` |
| `co-chelan-wa` | Chelan County | WA | `co-chelan-wa.smartgovcommunity.com` |
| `co-coconino-az` | Coconino County (Flagstaff / Sedona region) | AZ | `co-coconino-az.smartgovcommunity.com` |
| `co-mohave-az` | Mohave County (Lake Havasu / Bullhead region) | AZ | `co-mohave-az.smartgovcommunity.com` |
| `co-campbell-va` | Campbell County | VA | `co-campbell-va.smartgovcommunity.com` |
| `dept-hbc-ky` | Kentucky Dept. of Housing, Buildings & Construction | KY | `dept-hbc-ky.smartgovcommunity.com` |
| `ci-yakima-wa` | City of Yakima | WA | `ci-yakima-wa.smartgovcommunity.com` |
| `ci-lynnwood-wa` | City of Lynnwood | WA | `ci-lynnwood-wa.smartgovcommunity.com` |
| `ci-kingman-az` | City of Kingman | AZ | `ci-kingman-az.smartgovcommunity.com` |
| `co-douglas-wa` | Douglas County | WA | `co-douglas-wa.smartgovcommunity.com` |
| `co-graysharbor-wa` | Grays Harbor County | WA | `co-graysharbor-wa.smartgovcommunity.com` |
| `co-kittitas-wa` | Kittitas County | WA | `co-kittitas-wa.smartgovcommunity.com` |
| `co-lewis-wa` | Lewis County | WA | `co-lewis-wa.smartgovcommunity.com` |
| `co-sanjuan-wa` | San Juan County | WA | `co-sanjuan-wa.smartgovcommunity.com` |
| `co-stevens-wa` | Stevens County | WA | `co-stevens-wa.smartgovcommunity.com` |
| `ci-chehalis-wa` | City of Chehalis | WA | `ci-chehalis-wa.smartgovcommunity.com` |

***

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

You are only billed for permits actually emitted to your dataset—**previously seen duplicates (`onlyNew: true`) and filtered-out records cost $0.00**.

| Event Name | Trigger | Suggested Price | Notes |
| :--- | :--- | :---: | :--- |
| `actor-start` | Once per Actor execution | `$0.01` | Base initialization event |
| `permit-record` | Per normalized permit pushed to dataset | `$0.025` | Includes optional landing-page contractor/parcel/GIS enrichment at no extra charge |

***

### Copy-Paste Example Input

```json
{
  "jurisdictions": ["co-spokane-wa", "co-kitsap-wa", "co-coconino-az"],
  "customHostnames": [],
  "permitTypeFilter": "Commercial",
  "processState": "",
  "dateField": "SubmittedOn",
  "dateWindow": "7D",
  "enrichPermitDetails": true,
  "onlyNew": true,
  "maxItems": 50
}
```

### Sample Output Record

```json
{
  "dedupKey": "co-spokane-wa:B2606929",
  "jurisdictionSlug": "co-spokane-wa",
  "jurisdictionName": "Spokane County, WA",
  "portalHost": "co-spokane-wa.smartgovcommunity.com",
  "permitNumber": "B2606929",
  "referenceNumber": "REFERENCE-26-7701",
  "permitGuid": "c9682a5c-7d35-4ef7-a554-b4ea011e455f",
  "permitType": "Commercial Alteration",
  "department": "Building Department",
  "status": "Application received, in queue for intake.",
  "statusDate": "2026-11-13",
  "streetAddress": "13110 N ADDISON ST",
  "city": "SPOKANE",
  "state": "WA",
  "zipCode": "99208",
  "parcelNumber": "36053.9075",
  "latitude": 47.777283,
  "longitude": -117.404335,
  "applicantName": "Frank, Margaret",
  "ownerName": "NORTH ADDISON HOLDINGS LLC",
  "contractorName": "ACG BUILDS INC",
  "contractorLicenseNumber": "ACGBUIL891KZ",
  "contractorLicenseExpiration": "2028-08-30",
  "currentFees": 2222.27,
  "createdDate": "2026-10-21",
  "submittedDate": "2026-11-13",
  "approvedDate": null,
  "issuedDate": null,
  "closedDate": null,
  "expirationDate": null,
  "attributes": {
    "Sprinkler System": "NFPA13R"
  },
  "detailEnriched": true,
  "detailUrl": "https://co-spokane-wa.smartgovcommunity.com/PermittingPublic/PermitLandingPagePublic/Index/c9682a5c-7d35-4ef7-a554-b4ea011e455f?_conv=1",
  "scrapedAt": "2026-11-14T04:30:00.000Z"
}
```

***

### Automated Daily Delta Schedule (Clay / Make / n8n / Slack)

1. Create a Saved Task in Apify Console with your target `jurisdictions`, `dateWindow: "7D"`, `enrichPermitDetails: true`, and `onlyNew: true`.
2. Add an **Apify Schedule** (`0 6 * * 1-5` — weekdays at 6:00 AM) and connect an integration webhook to **Clay, Make, n8n, HubSpot, or Slack**.
3. The Actor automatically maintains a `SEEN_PERMITS` ledger in persistent Key-Value Store (`smartgov-seen-permits`) and writes full run telemetry to `RUN_SUMMARY`.

***

### How Much Does It Cost? (Tiered Pay-Per-Event Pricing)

Zero monthly subscription—previously seen permits in `onlyNew: true` mode cost `$0`, with automatic discounts across Apify paid plans:

| Event | One-Time? | Free Plan | Bronze | Silver | Gold / Enterprise |
| :--- | :---: | :---: | :---: | :---: | :---: |
| `actor-start` | Yes | `$0.01` | `$0.01` | `$0.01` | `$0.01` |
| `permit-record` *(Primary)* | No | `$0.025` | `$0.0225` | `$0.02` | `$0.0175` |

#### Clay, Make, n8n & AI Agent (`mcp.apify.com`) Chaining

- **Clay.com / Contractor & Home-Services Outbound:** Push enriched parcel numbers, contractor license IDs, and project addresses straight into Clay, Make, n8n, or HubSpot via webhook or CSV/JSON API.
- **AI Agents & MCP (`mcp.apify.com`):** Query multi-jurisdiction Granicus SmartGov municipal building, solar, roofing, and HVAC permits directly from MCP agents.

# Actor input Schema

## `jurisdictions` (type: `array`):

Built-in verified SmartGov tenant slugs (e.g. 'co-spokane-wa', 'co-kitsap-wa', 'co-chelan-wa', 'co-coconino-az', 'co-mohave-az', 'co-campbell-va', 'dept-hbc-ky', 'ci-yakima-wa', 'ci-lynnwood-wa', 'ci-kingman-az', 'co-douglas-wa', 'co-graysharbor-wa', 'co-kittitas-wa', 'co-lewis-wa', 'co-sanjuan-wa', 'co-stevens-wa', 'ci-chehalis-wa').

## `customHostnames` (type: `array`):

Any additional \*.smartgovcommunity.com portal hostnames, URLs, or tenant slugs (e.g. \['co-chelan-wa.smartgovcommunity.com']).

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

Full-text keyword query across permit numbers, site addresses, contractor names, and permit types (e.g. 'solar', 'commercial', 'roof', 'ACG BUILDS').

## `permitTypeFilter` (type: `string`):

Case-insensitive filter on permit type description (e.g. 'Commercial', 'Residential', 'Solar', 'Mechanical', 'Accessory Dwelling Unit').

## `processState` (type: `string`):

Filter by SmartGov workflow state.

## `dateField` (type: `string`):

Which milestone date field to filter on in SmartGov Advanced Search.

## `dateWindow` (type: `string`):

SmartGov relative date range preset (ignored when explicit dateFrom or dateTo is set).

## `dateFrom` (type: `string`):

Optional start date override for the selected dateField (e.g. '2026-10-01').

## `dateTo` (type: `string`):

Optional end date override for the selected dateField (e.g. '2026-11-14').

## `city` (type: `string`):

Restrict permits to a specific site city (e.g. 'SPOKANE', 'BREMERTON').

## `zipCode` (type: `string`):

Restrict permits to a 5-digit ZIP code.

## `streetAddress` (type: `string`):

Restrict permits matching a street name or address.

## `parcelNumber` (type: `string`):

Search permits associated with an exact parcel number.

## `enrichPermitDetails` (type: `boolean`):

When enabled, fetches each permit's public landing page to extract licensed contractor names & state license numbers, owner of record, parcel number, full ZIP, milestone dates, fees, and coordinates.

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

Tracks seen jurisdiction:permitNumber keys in the persistent Key-Value Store ('SEEN_PERMITS') across scheduled cron runs so webhooks/CRMs only receive brand-new permits.

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

Hard cap on total permit records emitted in this run across all selected jurisdictions.

## Actor input object example

```json
{
  "jurisdictions": [
    "co-spokane-wa",
    "co-kitsap-wa"
  ],
  "customHostnames": [],
  "processState": "",
  "dateField": "SubmittedOn",
  "dateWindow": "7D",
  "enrichPermitDetails": true,
  "onlyNew": false,
  "maxItems": 25
}
```

# Actor output Schema

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

Dataset of extracted and enriched municipal permit records.

## `runSummary` (type: `string`):

JSON summary of jurisdictions queried, upstream result counts, deduplicated counts, and PPE events charged.

# 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 = {
    "jurisdictions": [
        "co-spokane-wa",
        "co-kitsap-wa"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("zinky_atelier/smartgov-municipal-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 = { "jurisdictions": [
        "co-spokane-wa",
        "co-kitsap-wa",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("zinky_atelier/smartgov-municipal-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 '{
  "jurisdictions": [
    "co-spokane-wa",
    "co-kitsap-wa"
  ]
}' |
apify call zinky_atelier/smartgov-municipal-permits --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,zinky_atelier/smartgov-municipal-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/cs4Xvh2yagvIJBBLR/builds/0fExDpfbTH5OrV80W/openapi.json
