# Building Permit Leads Scraper: Contractor Phone & License (`scrapebench/building-permit-contractor-leads-scraper`) Actor

New building permits from US city and county records by trade and date: address, project value and the contractor's name, phone and licence number. Or list the most active contractors in a city.

- **URL**: https://apify.com/scrapebench/building-permit-contractor-leads-scraper.md
- **Developed by:** [ScrapeBench](https://apify.com/scrapebench) (community)
- **Categories:** Lead generation, Real estate
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.004 / permit

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/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

## Building Permit Leads Scraper: Contractor Phone & License

### Pain points

- Every city publishes its permits in its own portal, with its own columns and filters, so following new jobs across markets means one search per city.
- A permit list without a contractor you can call is half a lead: the contractor's phone and licence number sit in different columns, or a different dataset, city by city.
- Finding which contractors are busiest in a city means downloading thousands of permits and counting them yourself.

### What we solve

- Searches the permit records of the cities you pick for a date window in one run and returns one uniform row per permit.
- Filters on the city's own portal by trade (roofing, solar, HVAC, plumbing, electrical, remodel, new construction, pool...), keyword, permit type, minimum project value, contractor name or licence number.
- Every row carries the contractor's name, licence number and phone where the city publishes them, and every other column the city publishes in extras.
- Switch to the contractors view for one row per contractor with permit count, first and last permit date, total project value, permit types and ZIP codes.

### Summary

Pick cities, a date window and optional filters, and get every permit the city issued: permit number, type, class, work class, status, issue and application dates, description, project value, address, ZIP, coordinates where geocoded, the owner where the record names one, and the contractor's name, contact person, licence number, phone, address and trade where the city publishes them, plus every other column in extras. Contractor fill measured on the permits issued 16-22 November 2026: Miami-Dade 1,443 permits, contractor named on all (17% owner-builders), licence number 83%, phone 82%; Austin 1,134, contractor 90%, phone 92%, no licence numbers; San Francisco about 84% with a contractor and a California (CSLB) licence number, no phone; New Orleans 449, contractor 73%, licence number 51%, no phone; Philadelphia 921, contractor name and address 89%, no phone, licence or project value; Dallas prints the contractor as one string that this actor splits into name, address and phone: the phone and address are there on permits issued 2018 to early 2021 (88% of 2018-2020), and permits since 2021 carry the contractor's name only; no licence number; the address on the row is the job site. Where the city prints no phone, the actor looks one up by business name (on by default, charged only when found). You pay per row delivered.

### Who it's for

- Roofing, solar, HVAC, pool and window contractors looking for fresh projects and competitors' jobs
- Suppliers, equipment renters, lenders, insurers and contractor-software sellers who want contractors that are active right now
- Real-estate investors and analysts tracking renovation and new-construction activity

### How to use

This actor does two jobs. Run it, then collect results from the run's dataset (export to JSON/CSV/Excel, or pull via the Apify API).

**Get a list (export):** no names, just filters; returns the whole matching list.

```json
{
  "cities": [
    "Austin, TX"
  ],
  "daysBack": 7,
  "trades": [
    "roofing"
  ],
  "maxResults": 100
}
```

**Check specific firms (lookup):** put company names or licence numbers in `licenseNumbers`, `contractors`; **Inputs** below says how each is matched.

```json
{
  "licenseNumbers": [
    "CCC058030"
  ],
  "contractors": [
    "Keys Roofing"
  ]
}
```

See **Inputs** below for every available field.

### What you get

One row per record:

| Field | Description |
|---|---|
| `jurisdiction, permit_number, permit_type, permit_class, work_class, status` | Which city, and the permit as the city names it |
| `issue_date, applied_date` | When the city issued the permit and when it was applied for (YYYY-MM-DD) |
| `description, project_value` | The work description and the declared job value (none in Philadelphia) |
| `address, city, state, zip, latitude, longitude` | Where the work is; coordinates where the city geocodes it (Austin, San Francisco, Philadelphia) |
| `owner_name` | The property owner, where the permit record names one (Miami-Dade, Philadelphia) |
| `contractor_name, contractor_contact_name, contractor_license_number` | The contractor business, its contact person, and its licence number (Miami-Dade county licence, California CSLB number in San Francisco, New Orleans licence number). Dallas publishes no licence number |
| `contractor_phone, contractor_website` | As the city prints it (Miami-Dade, Austin), else from the business-name lookup when found; null otherwise |
| `contractor_address, contractor_city, contractor_state, contractor_zip, contractor_trade` | The contractor's address and trade, where published |
| `extras` | Every other column the city publishes for the permit (parcel or folio number, fees, legal description, units, San Francisco's full contractor contact list ...) |
| `permit_count, first_permit_date, last_permit_date, total_project_value, permit_types, zip_codes, permit_numbers` | Contractors view: the contractor's activity across the filtered permits |
| `source_url` | The permit's page where the city publishes one (Austin, New Orleans), else its open-data record |

Sample:

```json
{
  "jurisdiction": "Miami-Dade County, FL",
  "permit_number": "2027011610",
  "permit_type": "BLDG",
  "permit_class": "C",
  "work_class": "DEMOLISH",
  "status": null,
  "issue_date": "2026-11-25",
  "applied_date": "2026-10-29",
  "description": "DEMO",
  "project_value": 70000.0,
  "address": "90 NW 137 AVE",
  "city": "MIAMI",
  "state": "FL",
  "owner_name": "CARDINAL PROPERTY TRUST LLC",
  "contractor_name": "RALPH MERRITT CONSTRUCTION CORP",
  "contractor_license_number": "CGC1519753",
  "contractor_phone": "(305)592-3322",
  "contractor_website": null,
  "contractor_address": "2325 NW 102 PLACE",
  "contractor_city": "MIAMI",
  "contractor_state": "FL",
  "source_url": "https://services.arcgis.com/8Pc9XBTAsYuxx9Ny/arcgis/rest/services/miamidade_permit_data/FeatureServer/0/query?where=PermitNumber%3D%272027011610%27&outFields=*&f=json"
}
```

### Inputs

| Field | Required | Type | Default | Description |
|---|---|---|---|---|
| `cities` | no | array | `["Austin, TX"]` | The city and county permit records to search. Leave empty for all of them. Each city counts separately for 'Maximum results'. |
| `view` | no | string | `"permits"` | 'permits': one row per permit. 'contractors': one row per distinct contractor in the same permits, with permit count, first and last permit date, total project value, permit types and ZIP codes, most active first. |
| `daysBack` | no | integer | `7` | Permits issued in this many days up to today. Ignored when 'Issued on or after' is set. |
| `issuedAfter` | no | string | — | YYYY-MM-DD, e.g. 2026-11-01. |
| `issuedBefore` | no | string | — | YYYY-MM-DD. Default: today. |
| `trades` | no | array | — | Keep permits whose type or description mentions the trade (any of them). 'hvac' also matches mechanical permits. |
| `keywords` | no | array | — | Keep permits whose type, description or contractor name contains any of these words (any case), e.g. 'generator' or 'ADU'. With trades too, a permit must match both. |
| `permitTypes` | no | array | — | Keep permits whose type, class or work class contains any of these words, as the city names them, e.g. 'Plumbing', 'Building', 'Repair', 'New'. |
| `minProjectValue` | no | integer | — | Only permits whose declared project value is at least this much. Philadelphia publishes no value, so it is skipped (a free row says so) when this is set. |
| `contractors` | no | array | — | Only permits of contractors whose name contains any of these, e.g. 'Tesla' or 'ABC Roofing'. |
| `licenseNumbers` | no | array | — | Only permits of these exact contractor licence numbers: Miami-Dade county licence (e.g. CGC1532033), California CSLB number for San Francisco, New Orleans licence number. Austin, Dallas and Philadelphia publish none. |
| `includeContacts` | no | boolean | `true` | Where the permit names a contractor business but no phone (San Francisco, New Orleans, Philadelphia, some others), add one (and its website) looked up by business name. Charged as a separate 'Contact details found' event only on a row that gets a phone. Owner-builders and people are never looked up. |
| `maxResults` | no | integer | `100` | Cap on rows PER CITY (permits, or contractors in the contractors view), newest permits first. |

### Pricing (Pay Per Event)

You pay per result (`permit`) — **no charge for empty runs**. Example: **1134 permits** at *$0.004/result* ≈ **$4.54**.

Example: every permit Austin issued in the week of 16-22 November 2026 (1,134) costs about $4.54. In the contractors view you pay per contractor row instead. A row whose contractor phone came from the lookup also costs $0.002.

### Use cases

- Weekly roofing leads: every roofing permit Miami-Dade issued last week, with the roofer's phone and licence number.
- Solar installer activity: the contractors view on solar permits in Austin for the last 90 days, most active first, with phone.
- Competitor watch: all permits pulled by one contractor (by name or licence number) in San Francisco or New Orleans.
- Big-ticket projects: permits over $250,000 in Austin, San Francisco and New Orleans this month, with owner and contractor.
- Philadelphia contractor list: who is pulling electrical, plumbing and mechanical permits, with their street address.

### Why this actor

- Six cities in one run, one uniform row, filtered on each city's own portal by date, trade, value and contractor.
- The contractor's licence number where the city publishes one, joined in San Francisco from the city's contacts dataset.
- A phone on every Miami-Dade and Austin permit that has one, and a business-name lookup for the rest, charged only when found.
- A contractors view that turns the same permits into a ranked list of active contractors.
- Honest gaps: a free row explains a city with no permits in the window, a filter a city cannot answer, or a portal that did not answer.

### Limitations & updates

Covers Miami-Dade County, Austin, Dallas, San Francisco, New Orleans and Philadelphia only. Dallas stopped publishing the contractor and the job value on new permits when it moved to a new permit system in autumn 2025 (contractor on over 90% of permits up to August 2025, under 2% since October 2025), so a current Dallas window returns the permit, job site, type and description but almost never a contractor or value; older permits carry the contractor's name as one text string, plus address and phone up to early 2021, and there is no licence number; its issue date is stored as text, so a Dallas window is read by month and cut to your exact days here, and rows come newest-record first. Fields are what each city publishes: no phone in San Francisco, New Orleans or Philadelphia (the optional lookup fills some), no licence numbers in Austin, Dallas or Philadelphia, no project value in Philadelphia, no status in Miami-Dade, no coordinates in Miami-Dade or New Orleans. San Francisco's contractor comes from the city's contacts dataset; a permit with no contractor contact there has none. Trade matching is word-based, so a description that never names the trade is missed and a word can match a neighbouring trade (PANEL, DOOR). Contractor names are matched as written; two spellings of one firm without a licence number count as two contractors. The licence number is the city's or county's own (Miami-Dade county licence, CSLB in San Francisco); its current status is not checked.

### FAQ

**Where does the data come from?**

From each city's or county's own open-data portal: Miami-Dade County's building permit layer, the City of Austin's Issued Construction Permits, San Francisco's Building Permits and Building Permits Contacts, New Orleans' permits (BLDS), Philadelphia's L\&I building permits and the City of Dallas's Building Permits. They are read live at run time.

**How recent are the permits?**

As recent as each city posts them: in November 2026 each of the six portals carried permits issued within the last few days. The default window is the last 30 days; set 'Issued within the last' or exact dates.

**Which cities carry the contractor's phone and licence number?**

Measured on the permits issued 16-22 November 2026: Miami-Dade prints the licence number on 83% and the phone on 82% (17% are owner-builders, shown as 'OWNER'); Austin the phone on 92%, no licence numbers; San Francisco a California CSLB licence number on about 84%, no phone; New Orleans a licence number on 51%, no phone; Philadelphia the contractor's name and address on 89%, no phone or licence; Dallas almost no contractor on permits issued since October 2025 (the city stopped publishing it); earlier permits carry the name, and for 2018 to early 2021 the address and phone as well (phone on 88% of 2018-2020, 15% of 2021, none after; no licence number; its address column is the job site). Where the city prints no phone, 'Include contractor phone' looks one up by business name.

**How am I charged?**

$0.004 per permit row, or $0.004 per contractor row in the contractors view. A row whose contractor gets a phone from the business-name lookup also costs $0.002 ('Contact details found'); a lookup that finds nothing is free. Notices are free. 'Maximum results per city' caps each city.

**How do trades and keywords match?**

A trade is a set of words matched in the permit's type, class, work class and description (roofing: ROOF, SHINGLE; hvac: HVAC, MECHANICAL, AIR CONDITION, HEAT PUMP, FURNACE, DUCT; and so on). Keywords match the same fields plus the contractor's name. With both, a permit must match a trade and a keyword.

**Can I search one contractor's permits?**

Yes: by name in 'Contractor names' (any city; the name contains your text) or by exact licence number in 'Contractor licence numbers' (Miami-Dade, San Francisco, New Orleans). Austin, Dallas and Philadelphia publish no licence numbers, so a licence-only search skips them with a free row.

**What does the contractors view count?**

The same filtered permits, grouped by licence number where the city prints one, else by name: permit count, first and last issue date, total declared value, permit types and the property ZIPs, most permits first. Owner-builder permits are left out. Up to 20,000 permits per city are counted in one run; a free row says when a window held more.

**Is the project value always filled?**

Where the city publishes one: Miami-Dade, Austin, San Francisco and New Orleans declare a job value (sometimes 0 for small permits); Dallas did up to 2025 but almost never since its autumn-2025 system change. Philadelphia publishes none, so a 'Minimum project value' skips it with a free row.

### Which actor to choose

Related contractor tools:

- **Florida Contractor License Lookup** — You want to check a Miami-Dade contractor's state licence and status.
- **California Contractor License Lookup** — You want to check a San Francisco contractor's CSLB licence by the number on the permit.
- **Louisiana Contractor License Lookup** — You want to check a New Orleans contractor's state licence.

### Guides & use cases

Written up on **[scrapebench.dev](https://scrapebench.dev)** — the bench that runs and verifies this actor against the live source every night:

- **How-to:** [How to run Building Permit Leads Scraper: Contractor Phone & License](https://scrapebench.dev/guides/how-to-building-permit-contractor-leads-scraper/)
- **Use case:** [Weekly Roofing Leads From Miami-Dade Building Permits](https://scrapebench.dev/use-cases/miami-dade-roofing-permit-leads/)

More actors, coverage and nightly verification results: **[scrapebench.dev](https://scrapebench.dev)**

### Works with AI assistants (MCP)

Callable as an MCP tool, so Claude, Cursor, VS Code Copilot and other MCP clients can run it directly. Grab the config from the [MCP tab](https://apify.com/scrapebench/building-permit-contractor-leads-scraper/api/mcp) on this page — Apify hosts the server and keeps that snippet current, and OAuth signs you in on first connect, so no API token goes in your config file.

Then just ask:

> "List the roofing permits Miami-Dade County issued between 21 and 27 November 2026 with a project value of at least $5,000, with each roofer's phone and licence number."

A test run of that input on 2026-11-27 returned permits such as a $50,000 metal reroof with the roofer's phone and CCC licence number (local test run through the actor's own code). Runs started this way bill exactly like any other run.

### Use it from an AI agent (Agent Skill)

The free [`scrapebench-b2b-leads`](https://github.com/scrapebenchhq/apify-actor-skills/tree/main/scrapebench-b2b-leads) skill teaches Claude Code and other agents to find the right scrapebench Actor for the task and run it. Copy the folder into `~/.claude/skills/`, set `APIFY_TOKEN`, and ask in plain words.

### Data & lawful use

This actor collects publicly available information that the permit offices of Miami-Dade County (Florida), the City of Austin (Texas), the City and County of San Francisco (Department of Building Inspection), the City of New Orleans (Department of Safety and Permits), the City of Philadelphia (Department of Licenses and Inspections) and the City of Dallas (Texas), through their public open-data portals publishes for public
lookup — licence records, business listings and the contact details professionals list there.
Some of it identifies individuals (sole proprietors, licence holders, agents), so treat any
names, phone numbers and emails in your results as personal data.

When you run this actor, you decide what is collected and what it is used for, so you are the
controller of that data and we act only as your processor (Apify Standard Actor Contract).
You need a lawful basis for your use, must honour opt-out and deletion requests, and must
follow the marketing rules that apply to you (CAN-SPAM, TCPA, GDPR, CCPA and similar).
Don't use the output for unsolicited bulk messaging, for screening covered by the FCRA, or
for anything the source's own terms forbid.

Your results are stored in your own Apify account. We don't keep a copy of your results and
don't sell or share them.

### Disclaimer

This is an independent tool. It is not affiliated with, endorsed by or sponsored by
the permit offices of Miami-Dade County (Florida), the City of Austin (Texas), the City and County of San Francisco (Department of Building Inspection), the City of New Orleans (Department of Safety and Permits), the City of Philadelphia (Department of Licenses and Inspections) and the City of Dallas (Texas), through their public open-data portals. Names and marks are used only to describe the data source. Records are
provided as published by the source and may be out of date or incomplete. For anything
consequential (hiring, a permit, a legal decision), confirm the record with the issuing
agency. You are responsible for making sure your use complies with applicable law and the
source's terms.

### Need help?

Open an issue on this actor's **Issues** tab and we'll respond there. Bug reports, missing
fields and feature requests are all welcome. Guides and examples: [scrapebench.dev](https://scrapebench.dev).

If you are a person named in this data and want your record removed from our copy, email
apify-help@scrapebench.dev; the source agency remains the official record.

Your run may be used to improve our services. If something looks off, or you want this actor to fit your use better, please share your run data with us: [Apify Console → Settings → Security → Share run data with developers](https://console.apify.com/settings/security). It lets us see exactly what went wrong and keep improving the actor.

If this actor saved you time, a short review on its Store page helps other buyers find it.

# Actor input Schema

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

The city and county permit records to search. Leave empty for all of them. Each city counts separately for 'Maximum results'.

## `view` (type: `string`):

'permits': one row per permit. 'contractors': one row per distinct contractor in the same permits, with permit count, first and last permit date, total project value, permit types and ZIP codes, most active first.

## `daysBack` (type: `integer`):

Permits issued in this many days up to today. Ignored when 'Issued on or after' is set.

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

YYYY-MM-DD, e.g. 2026-11-01.

## `issuedBefore` (type: `string`):

YYYY-MM-DD. Default: today.

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

Keep permits whose type or description mentions the trade (any of them). 'hvac' also matches mechanical permits.

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

Keep permits whose type, description or contractor name contains any of these words (any case), e.g. 'generator' or 'ADU'. With trades too, a permit must match both.

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

Keep permits whose type, class or work class contains any of these words, as the city names them, e.g. 'Plumbing', 'Building', 'Repair', 'New'.

## `minProjectValue` (type: `integer`):

Only permits whose declared project value is at least this much. Philadelphia publishes no value, so it is skipped (a free row says so) when this is set.

## `contractors` (type: `array`):

Only permits of contractors whose name contains any of these, e.g. 'Tesla' or 'ABC Roofing'.

## `licenseNumbers` (type: `array`):

Only permits of these exact contractor licence numbers: Miami-Dade county licence (e.g. CGC1532033), California CSLB number for San Francisco, New Orleans licence number. Austin, Dallas and Philadelphia publish none.

## `includeContacts` (type: `boolean`):

Where the permit names a contractor business but no phone (San Francisco, New Orleans, Philadelphia, some others), add one (and its website) looked up by business name. Charged as a separate 'Contact details found' event only on a row that gets a phone. Owner-builders and people are never looked up.

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

Cap on rows PER CITY (permits, or contractors in the contractors view), newest permits first.

## Actor input object example

```json
{
  "cities": [
    "Austin, TX"
  ],
  "view": "permits",
  "daysBack": 7,
  "includeContacts": true,
  "maxResults": 100
}
```

# Actor output Schema

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

One row per permit (or per contractor in the contractors view).

## `contractors` (type: `string`):

The contractors view's table.

# 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, TX"
    ],
    "daysBack": 7,
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapebench/building-permit-contractor-leads-scraper").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, TX"],
    "daysBack": 7,
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapebench/building-permit-contractor-leads-scraper").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, TX"
  ],
  "daysBack": 7,
  "maxResults": 100
}' |
apify call scrapebench/building-permit-contractor-leads-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapebench/building-permit-contractor-leads-scraper"
        }
    }
}
```

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/aobAjIvZhrosPycRI/builds/iEjvuIAvAYP3E7HLb/openapi.json
