# US Contractor License Scraper - Builder & Trade Leads (`scrapesage/us-contractor-license-scraper`) Actor

Scrape licensed-contractor leads from US state boards (California CSLB, Washington L\&I, Oregon BCD): business name, license number, trade, status, bond & insurance carriers, owner, phone & address. Filter by city, trade & date; monitor only-new licenses. Keyless, no browser.

- **URL**: https://apify.com/scrapesage/us-contractor-license-scraper.md
- **Developed by:** [Scrape Sage](https://apify.com/scrapesage) (community)
- **Categories:** Lead generation, Agents, Integrations
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.50 / 1,000 contractor license scrapeds

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## US Contractor License Scraper — Builder & Trade Leads (Bond, Insurance, Phone & Owner)

Extract **licensed-contractor records straight from official US state licensing boards** — **California (CSLB)**, **Washington (L\&I)** and **Oregon (BCD)** — and turn every one into a ready-to-contact **B2B lead**. Get the business name, license number, **trade/classification, license status, surety-bond carrier & amount, liability-insurance & workers'-comp carriers, the qualifier/owner, phone, and full address** — plus a **0–100 lead score** on every row.

These are government-published licensing records, not a thin directory scrape: the result is the **richest contractor lead dataset on the Apify Store**, with bond and insurance details no other scraper ships.

No login, no API key, no browser — fast, keyless extraction with monitoring built in.

### Why this contractor scraper?

Most "contractor" scrapers just dump a Google-Maps listing or a single state's name + address. This actor pulls the **authoritative license file** from each state board and joins in the bond, insurance and principal data:

| Data | Typical scrapers | This actor |
|---|---|---|
| Official license number & status | partial | ✅ every state |
| Trade / classification (GB, electrical, plumbing, HVAC, roofing…) | partial | ✅ normalized |
| Business **phone** | ❌ often null | ✅ CA + WA |
| Qualifier / owner / principal name | ❌ | ✅ |
| **Surety-bond** carrier, number & amount | ❌ | ✅ CA + WA |
| **Liability insurance** carrier, policy & amount | ❌ | ✅ WA |
| **Workers' comp** carrier & status | ❌ | ✅ CA |
| Issue date / expiration date (renewal intent) | ❌ | ✅ |
| Entity type (LLC, corp, sole owner…) | ❌ | ✅ |
| Lead score (0–100) | ❌ | ✅ |
| "Only new licenses since last run" monitoring | ❌ | ✅ |

### Use cases

- **Lead generation** — newly licensed contractors are active buyers: they need insurance, surety bonds, financing, accounting, job-management software (Procore, Buildertrend, Jobber), materials, vehicles, staffing and marketing. Score them by `leadScore`, filter by `trades`, and reach them by `phone` + `principalName`.
- **Renewal & cross-sell campaigns** — use `expiringBefore` to find licenses about to lapse (perfect for insurance, bond and software renewals), or read each contractor's existing `bond` / `insurance` / `workersComp` carrier to target competitive displacement.
- **Fresh-license monitoring** — turn on `monitorMode` (or set `issuedAfter`) and schedule a daily run to capture brand-new contractors the moment they're licensed in a city or trade.
- **Market & competitive intelligence** — map contractor density and trade mix by city, track active-vs-inactive ratios, and analyze which surety/insurance carriers dominate a market.
- **Verification & compliance** — confirm a contractor's license status, classification, bond and workers' comp before hiring or onboarding a vendor.

### How to use

1. [Sign up for Apify](https://console.apify.com/sign-up) — the free plan is enough to try this actor.
2. Open the **US Contractor License Scraper**, choose states and enter cities (WA/OR) or business names / license numbers (CA), then click **Start**.
3. Watch contractor leads stream into the dataset table.
4. **Export** as JSON, CSV, Excel, XML, or RSS — or pull results programmatically via the [Apify API](https://docs.apify.com/api/v2).

### Input

```json
{
    "states": ["California", "Washington", "Oregon"],
    "cities": ["Seattle, WA", "Portland, OR"],
    "businessNames": ["Pacific Plumbing"],
    "licenseNumbers": ["1000000"],
    "trades": ["Electrical", "Plumbing"],
    "activeOnly": true,
    "issuedAfter": "2026-01-01",
    "expiringBefore": "2026-12-31",
    "includeBondAndInsurance": true,
    "withPhoneOnly": false,
    "maxResults": 2000,
    "monitorMode": false
}
```

- **states** — any subset of `California`, `Washington`, `Oregon` (the three states with a clean, reliable source). Leave empty for all three.
- **cities** — cities to pull all contractors from for **Washington & Oregon** (`Seattle, WA`, `Portland, OR`, or a bare `Tacoma`). California has no public city browse — use business names / license numbers for CA.
- **businessNames** — company names (or partials). In California this runs a CSLB name search and pulls the full license detail for every match; in WA/OR it filters the registry by name.
- **licenseNumbers** — direct lookups. Numeric values are California (CSLB); alphanumeric values (e.g. `ALLYEEL740KR`, `BB319`) are Washington/Oregon.
- **trades** — keep only `General Building / Construction`, `Electrical`, `Plumbing`, `HVAC / Mechanical`, `Roofing`, `Elevator`, `Boiler`. Leave empty for all.
- **activeOnly** — drop expired/revoked/suspended/cancelled licenses.
- **issuedAfter / expiringBefore** — fresh-license and renewal-intent date filters (`YYYY-MM-DD`).
- **includeBondAndInsurance** *(default true)* — for Washington, join the official surety-bond, liability-insurance and principal datasets onto each contractor (California always returns bond + workers' comp from the detail page).
- **withPhoneOnly** — only keep contractors that have a phone (CA + WA).
- **monitorMode** *(default false)* — remember licenses already returned and emit only new ones on the next run. Pairs with [Schedules](https://docs.apify.com/platform/schedules).
- **maxResults / maxResultsPerState / deduplicateResults / maxConcurrency / proxyConfiguration** — limits & runtime controls.

### Output

One record per contractor license (`type: "contractor"`):

```json
{
    "type": "contractor",
    "state": "Washington",
    "stateCode": "WA",
    "licenseNumber": "FREEDBC744LQ",
    "businessName": "Freedom Builders Cooperative",
    "dba": null,
    "licenseType": "Construction Contractor",
    "classifications": [
        { "code": null, "description": "Construction Contractor" },
        { "code": null, "description": "General" }
    ],
    "tradeCategories": ["General Building / Construction"],
    "status": "ACTIVE",
    "isActive": true,
    "entityType": "Corporation",
    "issueDate": "2026-06-18",
    "expireDate": "2028-06-18",
    "ageInDays": 2,
    "expiresInDays": 729,
    "phone": "(206) 608-3809",
    "street": "6113 35th Ave S",
    "city": "Seattle",
    "addressState": "WA",
    "postalCode": "98118",
    "businessId": "606215029",
    "principalName": "Murphy, Matthew",
    "principals": [{ "name": "Murphy, Matthew", "since": "2026-06-18" }],
    "bond": [
        { "firmName": "Westfield Insurance Co", "accountId": "545214J", "amount": 30000, "effectiveDate": "2026-05-19", "expirationDate": "Until Canceled" }
    ],
    "insurance": [
        { "company": "State National Ins Co Inc", "policyNumber": "NXTDRVWJJH00GL", "amount": 300000, "effectiveDate": "2026-05-20", "expirationDate": "2027-05-20" }
    ],
    "workersComp": null,
    "sourceUrl": "https://data.wa.gov/resource/m8qx-ubtq.json?contractorlicensenumber=FREEDBC744LQ",
    "leadScore": 100,
    "searchContext": { "mode": "city", "query": "Seattle" },
    "scrapedAt": "2026-06-20T02:13:47.357Z"
}
```

California (CSLB) records additionally include `dba`, `qualifyingBond` (the qualifying individual / owner), `workersComp` (carrier, policy & dates) and code-level `classifications` (e.g. `C36 – Plumbing`, `C-61 / D21 – Machinery and Pumps`). Every state also passes through its remaining published columns under `additionalData`.

### Automate & schedule

Run this actor on autopilot and pull results into your own stack:

- **[Apify API](https://docs.apify.com/api/v2)** — start runs, fetch datasets, and manage schedules over REST.
- **[apify-client for JavaScript](https://docs.apify.com/api/client/js/)** and **[apify-client for Python](https://docs.apify.com/api/client/python/)** — official SDKs.
- **[Schedules](https://docs.apify.com/platform/schedules)** — run it daily/weekly with `monitorMode` to capture newly licensed contractors in a city or trade automatically.
- **[Webhooks](https://docs.apify.com/platform/integrations/webhooks)** — trigger downstream actions (CRM import, Slack alert, email sequence) the moment a run finishes.

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

const client = new ApifyClient({ token: 'MY_APIFY_TOKEN' });

const run = await client.actor('scrapesage/us-contractor-license-scraper').call({
    states: ['Washington'],
    cities: ['Seattle, WA'],
    trades: ['Electrical'],
    activeOnly: true,
    issuedAfter: '2026-01-01',
    monitorMode: true,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(`Got ${items.length} contractor leads`);
```

### Integrate with any app

Connect the dataset to 5,000+ apps — no code required:

- **[Make](https://docs.apify.com/platform/integrations/make)** — multi-step automation scenarios.
- **[Zapier](https://docs.apify.com/platform/integrations/zapier)** — push new contractor leads straight into your CRM.
- **[Slack](https://docs.apify.com/platform/integrations/slack)** — get notified when a monitored city or trade gets a new license.
- **[Google Drive / Sheets](https://docs.apify.com/platform/integrations/drive)** — auto-export every run to a spreadsheet.
- **[Airbyte](https://docs.apify.com/platform/integrations/airbyte)** — pipe results into your data warehouse.
- **[GitHub](https://docs.apify.com/platform/integrations/github)** — trigger runs from commits or releases.

### Use with AI assistants (MCP)

The output is clean, LLM-ready JSON. Call this actor from Claude, ChatGPT, or any agent framework through the **[Apify MCP server](https://docs.apify.com/platform/integrations/mcp)** — ask your assistant to "find newly licensed electrical contractors in Seattle and list their phone numbers and bond carriers" and let it run this scraper for you.

### Agent-ready: autonomous payments (x402 & Skyfire)

This actor is **agent-ready** — AI agents can discover it, run it, and **pay for it autonomously**, with no Apify account and no human in the loop. It uses [pay-per-event](https://docs.apify.com/platform/actors/publishing/monetize/pay-per-event) pricing and [limited permissions](https://docs.apify.com/platform/actors/development/permissions), so it qualifies for Apify's agentic-payment standards:

- **[x402](https://docs.apify.com/platform/integrations/x402)** — an open, HTTP-native payment protocol. Agents pay per run in USDC on the Base network directly through the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp) — no account, no API key.
- **[Skyfire](https://docs.apify.com/platform/integrations/skyfire)** — agent-to-service payments for fully autonomous AI-agent workflows.

Building an AI agent, MCP tool, or autonomous data pipeline? This scraper is ready to plug in and pay as it goes.

### More scrapers from scrapesage

Build a complete **construction & local-services lead-gen stack**:

- **[US Building Permits Scraper](https://apify.com/scrapesage/us-building-permits-scraper)** — construction projects & permit pulls (find who's building what, and the contractor on the job).
- **[US Business Formation Scraper](https://apify.com/scrapesage/us-business-formation-scraper)** — newly registered LLCs & companies for fresh B2B leads.
- **[Thumbtack Scraper](https://apify.com/scrapesage/thumbtack-scraper)** — home-service pro profiles, reviews & hire data.
- **[Houzz Scraper](https://apify.com/scrapesage/houzz-scraper)** — home-design & remodeling professionals.
- **[Hipages Scraper](https://apify.com/scrapesage/hipages-scraper)** — Australian trades & home-services leads (ABN, licence, phone).
- **[FMCSA Trucking Scraper](https://apify.com/scrapesage/fmcsa-trucking-scraper)** — motor-carrier & trucking-company leads from the federal registry.
- **[Google Maps with Contact Details](https://apify.com/scrapesage/google-maps-with-contact-details)** — local businesses with emails, phones & socials.
- **[Website Contact Scraper](https://apify.com/scrapesage/website-contact-scraper)** — turn any list of company websites into emails & phone numbers.

### Tips

- **California discovery**: CSLB only allows targeted lookups (no city browse). Search by `businessNames` (a name search returns and enriches every matching license) or paste numeric `licenseNumbers`. For city- or trade-wide bulk discovery, use Washington & Oregon.
- **Fresh leads**: combine `issuedAfter` with `monitorMode` and a daily [Schedule](https://docs.apify.com/platform/schedules) to capture only contractors licensed since your last run.
- **Renewal campaigns**: set `expiringBefore` to a date 30–90 days out to find licenses about to lapse.
- **Leaner Washington runs**: turn off `includeBondAndInsurance` to skip the bond/insurance/principal joins when you only need core license + contact data.
- **Cost control**: use `activeOnly`, `trades`, `withPhoneOnly` and the per-state / global caps to keep runs focused on the leads you actually want.

### FAQ

**Which states are supported?** California (CSLB), Washington (L\&I) and Oregon (BCD) — the states that publish a clean, reliably scrapeable contractor-license source. More states are added on request; vote on the actor's **Issues** tab.

**Do I need an API key or login?** No. All three sources are public government records — Washington & Oregon via their official open-data APIs, California via the public CSLB license-check pages. No key, no account, no browser.

**How do I get all contractors in a city?** Put the city in `cities` (e.g. `Seattle, WA`) for Washington or Oregon. California doesn't offer a public city search, so for CA use business names or license numbers.

**Where do the bond and insurance details come from?** Directly from the state boards — California's license-detail page lists the contractor's bond and workers'-comp carriers; Washington publishes official surety-bond and liability-insurance datasets that this actor joins onto each contractor by license number.

**Can I export to Google Sheets, CSV, or Excel?** Yes — one click in the dataset view, or automatically on every run via the [Google Drive integration](https://docs.apify.com/platform/integrations/drive).

**How do I monitor only newly licensed contractors?** Turn on `monitorMode` (and/or set `issuedAfter`), then create a [Schedule](https://docs.apify.com/platform/schedules). Each run emits only licenses not seen before — perfect for a daily fresh-lead feed into your CRM.

**A field is null — why?** Some records genuinely don't publish a field (Oregon doesn't expose phones; an exempt contractor has no workers'-comp carrier; an inactive license may have no current bond). Fields are `null` only when the data doesn't exist, not because the scraper skipped them.

**Is scraping this data legal?** This actor collects publicly available licensing records only. You are responsible for using the data in compliance with applicable laws (e.g. CCPA for personal data) and each board's terms.

### Need help?

Open an issue on the actor's **Issues** tab, or visit the [Apify help center](https://help.apify.com/). Feature requests — especially new states — are welcome; this actor is actively maintained.

# Actor input Schema

## `states` (type: `array`):

Pick any subset of the supported state licensing boards: California (CSLB), Washington (L\&I) and Oregon (BCD). These are the only US states with a clean, reliably scrapeable contractor-license source — so there are no empty runs. Washington & Oregon support city/trade bulk discovery; California supports targeted business-name and license-number lookups. Leave empty to use all three. More states added on request.

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

Cities to pull all contractors from — e.g. "Seattle, WA", "Portland, OR", or just "Tacoma". Used for Washington & Oregon bulk discovery (California has no public city browse — use Business names / License numbers for CA). Add a state suffix to target one state; a bare city runs against every selected WA/OR state.

## `businessNames` (type: `array`):

Company names (or partial names) to search. In California this runs a CSLB name search and pulls the full license detail for every match; in Washington & Oregon it filters the registry by name. Example: "Pacific Plumbing", "ABC Construction".

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

Look up specific licenses directly. Numeric values (e.g. 1000000) are treated as California (CSLB); alphanumeric values (e.g. ALLYEEL740KR, BB319) are looked up in Washington & Oregon.

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

Keep only contractors in these trades (matched flexibly across each state's wording). Leave empty for all trades.

## `activeOnly` (type: `boolean`):

Drop licenses that are clearly inactive (expired, revoked, suspended, cancelled, out of business…). Keeps active and unknown-status records.

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

Only return licenses issued/effective on or after this date — the key to fresh, high-intent leads (newly licensed contractors). Applies to California & Washington (Oregon does not publish an issue date). Example: 2026-01-01.

## `expiringBefore` (type: `string`):

Only return licenses that expire on or before this date — perfect for renewal-intent campaigns (insurance, bonds, software). Example: 2026-12-31.

## `includeBondAndInsurance` (type: `boolean`):

For Washington, join the official surety-bond, liability-insurance and principal/owner datasets onto each contractor — the richest contractor lead record published anywhere. California always returns bond + workers' comp from the license detail. Turn off for a faster, leaner Washington pull.

## `withPhoneOnly` (type: `boolean`):

Only keep contractors that have a phone number (California & Washington expose phones; Oregon does not).

## `maxResultsPerState` (type: `integer`):

Cap the number of contractor records collected per state.

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

Global cap on the total number of contractor records emitted in this run, across all states.

## `deduplicateResults` (type: `boolean`):

Emit each contractor only once per run (keyed by state + license number).

## `monitorMode` (type: `boolean`):

Remember licenses already returned and emit ONLY contractors not seen in previous runs (newly issued / newly listed). Pairs with Apify Schedules to capture fresh contractor leads automatically.

## `monitorStoreName` (type: `string`):

Named key-value store holding the 'already seen' license ids for monitoring mode. Use a different name per tracked scope (e.g. one per city or trade).

## `socrataAppToken` (type: `string`):

Optional Socrata app token to raise the open-data API throttling limit on very large Washington/Oregon runs. Not required for normal use.

## `maxConcurrency` (type: `integer`):

Maximum parallel requests.

## `proxyConfiguration` (type: `object`):

Proxy settings. The state open-data APIs are clean on the default Apify proxy; California (CSLB) automatically uses US residential for reliability.

## Actor input object example

```json
{
  "states": [
    "California",
    "Washington",
    "Oregon"
  ],
  "cities": [
    "Seattle, WA"
  ],
  "businessNames": [],
  "licenseNumbers": [],
  "trades": [],
  "activeOnly": false,
  "includeBondAndInsurance": true,
  "withPhoneOnly": false,
  "maxResultsPerState": 1000,
  "maxResults": 2000,
  "deduplicateResults": true,
  "monitorMode": false,
  "monitorStoreName": "contractor-license-monitor",
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped contractor-license records in the default dataset.

# 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": [
        "Seattle, WA"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapesage/us-contractor-license-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": ["Seattle, WA"] }

# Run the Actor and wait for it to finish
run = client.actor("scrapesage/us-contractor-license-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": [
    "Seattle, WA"
  ]
}' |
apify call scrapesage/us-contractor-license-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapesage/us-contractor-license-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/gQbZOqZtCYLhikdRR/builds/m2Buf9D0ok2Oc3Uq5/openapi.json
