Skip to main content
Glama
cea-building-permits

cea-building-permits

by ceadigital
README.md
# Building Permits & Code Violations Scraper + Owner Skip Trace (Python CLI, SDK & MCP Server)

[![Apify Store](https://img.shields.io/badge/Apify_Store-cea__digital%2Fbuilding--permits--code--violations--scraper-00C853?style=flat-square)](https://apify.com/cea_digital/building-permits-code-violations-scraper)
[![Direct Unified Key](https://img.shields.io/badge/Direct_Unified_Key-%242_Tripwire_%7C_%2429%2Fmo-2563EB?style=flat-square)](https://ceadigital.io/tools)
[![Run in Postman](https://img.shields.io/badge/Run_in_Postman-v2.1_Collection-FF6C37?style=flat-square&logo=postman&logoColor=white)](https://ceadigital.io/templates/postman-collection.json)
[![Glama MCP](https://img.shields.io/badge/Glama-MCP_Directory-8B5CF6?style=flat-square)](https://glama.ai/mcp/servers/ceadigital/building-permits-code-violations-scraper)
[![Zero Charge on Misses](https://img.shields.io/badge/Miss_Guarantee-%240.00_Below_Min_Job_Value-10B981?style=flat-square)](https://ceadigital.io/tools)

Extract live **municipal building permits** (`commercial_ti`, `solar`, `roofing`, `adu_addition`) and **code enforcement violations / pre-foreclosure liens** from Socrata & ArcGIS Open Data portals (Austin, Chicago, Los Angeles, NYC, Charleston, Miami, Phoenix), automatically **pierce anonymous LLC owners to wireless mobile phones & deliverable emails**, and screen **General Contractor licenses + U.S. Treasury OFAC SDN compliance** over pure HTTP (`Accept-Encoding: gzip, deflate`, zero headless browser).

---

> **Permitted use:** Results come from public and third-party records for lawful business use. They are **not consumer reports**: do not use them for credit, employment, insurance or tenant-screening decisions (FCRA). Before calling or texting any number, follow the TCPA and Do-Not-Call rules. See [Compliance & permitted use](#compliance--permitted-use).

## 1-Click Ecosystem & No-Code Integrations

| Platform / Channel | Direct Link |
| :--- | :--- |
| **Direct $29/mo Stripe API Key & $2 Tripwire Pass (Free 1-Row Preview)** | **[https://ceadigital.io/tools](https://ceadigital.io/tools)** |
| **Apify Store Actor (`cea_digital/building-permits-code-violations-scraper`)** | **[https://apify.com/cea_digital/building-permits-code-violations-scraper](https://apify.com/cea_digital/building-permits-code-violations-scraper)** |
| **Run in Postman (Public Collection v2.1)** | **[https://ceadigital.io/templates/postman-collection.json](https://ceadigital.io/templates/postman-collection.json)** |
| **1-Click Google Sheets Custom Function (`=PERMITSKIP(A2, "solar", 15000)`)** | **[https://ceadigital.io/templates/Code.gs](https://ceadigital.io/templates/Code.gs)** |
| **1-Click n8n Native Workflow Template (`.workflow.json`)** | **[https://ceadigital.io/templates/building-permits-code-violations-scraper.workflow.json](https://ceadigital.io/templates/building-permits-code-violations-scraper.workflow.json)** |
| **Clay.com HTTP API Column Blueprints** | **[https://ceadigital.io/templates/clay-http-column-blueprints.json](https://ceadigital.io/templates/clay-http-column-blueprints.json)** |
| **Glama MCP Server Directory** | **[https://glama.ai/mcp/servers/ceadigital/building-permits-code-violations-scraper](https://glama.ai/mcp/servers/ceadigital/building-permits-code-violations-scraper)** |

---

## Quickstart #1 — Direct Unified API Key (`https://ceadigital.io/tools`)

Use one **`cea_live_`** Unified API Key (**$2.00 One-Time 100-Hit Tripwire Pass** or **$29/mo Growth Plan for 5,000 hits**) across all 4 CEA Digital tools:

```bash
export CEA_API_KEY="cea_live_your_key_here"
python permits_cli.py \
  --city "Austin, TX" \
  --permit-type commercial_ti \
  --min-job-value 25000 \
  --screen-contractor-kyb
```

Or via `curl`:

```bash
curl -sS -X POST "https://ceadigital.io/v1/tools/building-permits-code-violations-scraper" \
  -H "Authorization: Bearer $CEA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "citiesOrZips": ["Austin, TX", "Chicago, IL"],
    "permitTypes": ["commercial_ti", "code_violation"],
    "minJobValueUsd": 25000,
    "autoSkipTraceOwner": true,
    "screenContractorKyb": true
  }' | jq .
```

---

## Quickstart #2 — Apify Store (`cea_digital/building-permits-code-violations-scraper`)

Run on Apify Pay-Per-Event (`$0.004/permit` on Bronze+ plans, `$0.00` on misses or below `minJobValueUsd`) or chain directly to `maxcopell/zillow-detail-scraper` / `compass/crawler-google-places` via `zillowOrMapsDatasetId`:

```bash
export APIFY_TOKEN="apify_api_your_token_here"
python permits_cli.py \
  --apify \
  --city "Austin, TX" \
  --permit-type solar
```

```bash
curl -sS -X POST "https://api.apify.com/v2/acts/cea_digital~building-permits-code-violations-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "citiesOrZips": ["Austin, TX"],
    "permitTypes": ["solar", "roofing"],
    "minJobValueUsd": 15000,
    "autoSkipTraceOwner": true
  }' | jq .
```

---

## Quickstart #3 — Model Context Protocol (MCP) for Claude, Cursor & Glama

### Remote Streamable-HTTP MCP (Zero Install)
```bash
claude mcp add --transport http ceadigital-b2a https://ceadigital.io/mcp
```

### Local Stdio MCP Server (`mcp_server.py`)
```json
{
  "mcpServers": {
    "cea-building-permits": {
      "command": "python3",
      "args": ["/path/to/building-permits-code-violations-scraper/mcp_server.py"],
      "env": {
        "CEA_API_KEY": "cea_live_optional_key_or_blank_for_free_preview"
      }
    }
  }
}
```

---

## License

MIT License — Copyright (c) 2026 CEA Digital ([ceadigital.io](https://ceadigital.io))

## Compliance & permitted use

- **Not a consumer reporting agency (FCRA).** CEA Digital is not a consumer reporting agency, and results are not "consumer reports" under the Fair Credit Reporting Act (15 U.S.C. § 1681 et seq.). Do not use this data, in whole or in part, to decide anyone's eligibility for credit, insurance, employment, housing or tenancy, or for any other purpose covered by the FCRA.
- **Calls and texts (TCPA).** Many returned numbers are wireless. Under the Telephone Consumer Protection Act (47 U.S.C. § 227), calls made with an autodialer or a prerecorded or artificial voice, and marketing texts, to wireless numbers generally require the recipient's prior express consent, and telemarketing requires prior express written consent. "Dialer-ready" columns are a file format, not consent. Obtaining consent is your responsibility.
- **Do-Not-Call.** Before any telemarketing, scrub every number against the National Do Not Call Registry and applicable state DNC lists, and honor opt-out requests. Some states, such as Florida and Oklahoma, have stricter "mini-TCPA" laws.
- **Email (CAN-SPAM).** Commercial emails must identify you as the sender, include a valid physical postal address and offer a working opt-out that you honor within 10 business days.
- **Accuracy.** Records come from public and third-party sources and may be outdated or wrong. Verify before acting. Results are provided as-is.
- **Your responsibility.** You are solely responsible for complying with all federal, state and local laws that apply to how you use this data. This section is general information, not legal advice.