# Contractor License Scraper: State License Lookup & Leads (`steadyscrape/contractor-license-scraper`) Actor

Contractor licenses from state registers: California CSLB, Texas TDLR, Washington L\&I, Oregon CCB, Connecticut, Colorado, New York. Look up license numbers or get new contractor leads by trade: status, classification, owner, phone, address, insurance, bond. Export to JSON, CSV or Excel, or via API.

- **URL**: https://apify.com/steadyscrape/contractor-license-scraper.md
- **Developed by:** [Steady Scrape](https://apify.com/steadyscrape) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 license delivereds

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

## Contractor License Scraper: state license lookup and contractor leads

**Contractor License Scraper** exports **contractor licenses** from the official state registers of **California (CSLB)**, **Texas (TDLR)**, **Washington (L\&I)**, **Oregon (CCB)**, **Connecticut (DCP)**, **Colorado (DORA)** and **New York (DOL)**. Each license is one clean row with the same columns in every state: license number, type, **classifications** (C-10 Electrical, ROOFING, HIC…), trades, **status** and whether it is active, **business name**, DBA, owner or qualifier, issue and expiration dates, **address, city, county, ZIP and phone**, plus **workers' compensation, insurance and bond** where the state publishes them. Look up **license numbers** in bulk, or filter by state, trade, classification code, city, county, ZIP code, status and **issue date**, so new contractors licensed this month become fresh leads. Export to JSON, CSV or Excel, or use it via API.

The data comes straight from each state's own open-data portal (data.wa.gov, data.texas.gov, data.oregon.gov, data.ct.gov, data.colorado.gov, data.ny.gov) and from CSLB's License Master file. No login, no key, no browser. Every row names its agency, its source and the terms it was published under. This Actor is an independent tool. It is not affiliated with or endorsed by any of these agencies.

### What can this contractor license scraper do?

- **New contractor leads**: every contractor licensed in the last 7, 30 or 90 days, with a phone and an address. Sell insurance, bonds, software, supplies, financing or marketing to businesses in their first weeks.
- **Contractor license lookup in bulk**: paste up to 100 license numbers and get each one's status, expiration, classifications, insurance and bond in one run, instead of one search at a time on each state's site.
- **Trade lists**: all active electricians, plumbers, HVAC, roofing, solar or pool contractors of a city, county or ZIP code.
- **Insurance and surety prospecting**: Washington, Oregon and California publish each contractor's insurer, policy, bond company, bond amount and expiration.
- **Compliance and vendor checks**: confirm a contractor's license is active and in good standing before hiring, paying or partnering.

### How to get contractor licenses

1. Choose the **states** (each one's newest licenses come first where the state dates them).
2. To check known contractors, paste their **license numbers**. Or pick **trades** or type a **classification** code ("C-10", "B", "HIC", "EC"), and narrow by **cities**, **counties** or **ZIP codes**.
3. Keep **License status** on "Active only", or choose "Any status" for expired, suspended and inactive licenses too.
4. For new businesses, set **Issued in the last N days** (for example 30) or **Issued since**.
5. Set **Max licenses per state** and **Max licenses in total**, run, and download the dataset as CSV, Excel or JSON.

### Input

| Field | What it does |
|---|---|
| `states` | `CA`, `TX`, `WA`, `OR`, `CT`, `CO`, `NY`. Default: all seven. |
| `trades` | General contractor, electrical, plumbing, HVAC, roofing, solar, painting, landscaping, tree service, concrete and masonry, flooring and tile, carpentry and drywall, pool and spa, fire protection, elevator, demolition, low voltage and security, earthwork and paving, glazing, asbestos and lead, well drilling, fencing, siding and gutters, metal and welding. |
| `classification` | A state's own classification: a code matched exactly (`C-10`, `C10`, `B`, `HIC`, `CGC1`, `EC`) or words of its name (`tree service`). |
| `licenseNumbers` | Up to 100 license numbers as the state writes them (`1000013`, `TIPTOTR742QC`, `HIC.0644210`), in any case. Each is looked for in every state chosen, so choose the states they belong to. |
| `status` | `active` (default) or `any`. |
| `issuedWithinDays` / `issuedFrom` | Only licenses first issued in the last N days, or since a day (YYYY-MM-DD). |
| `cities`, `counties`, `zipCodes` | Up to 50 each. A ZIP code can be a prefix (`981`). |
| `onlyWithPhone` | Only licenses whose state lists a phone. |
| `maxResultsPerState`, `maxResults` | Limits; 0 means no limit. |

Example: check two California contractors and one Washington contractor, whatever their status.

```json
{
    "states": ["CA", "WA"],
    "licenseNumbers": ["1000002", "1000013", "TIPTOTR742QC"],
    "status": "any"
}
```

Example: new electricians and plumbers in Washington and Oregon, licensed in the last 30 days, with a phone.

```json
{
    "states": ["WA", "OR"],
    "trades": ["electrical", "plumbing"],
    "issuedWithinDays": 30,
    "onlyWithPhone": true,
    "maxResultsPerState": 200
}
```

### Output example

```json
{
    "rowType": "license",
    "status": "ok",
    "state": "WA",
    "stateName": "Washington",
    "agency": "Washington State Department of Labor & Industries (L&I)",
    "licenseNumber": "TIPTOTR742QC",
    "licenseType": "CONSTRUCTION CONTRACTOR",
    "classifications": ["ROOFING"],
    "trades": ["roofing"],
    "licenseStatus": "ACTIVE",
    "isActive": true,
    "businessName": "TIP TOP ROOFING LLC",
    "alternateName": null,
    "ownerName": "Diaz Reyes, Antonio",
    "businessType": "Limited Liability Company",
    "issueDate": "2026-11-09",
    "expirationDate": "2028-11-09",
    "address": "10227 20TH ST SE UNIT D302",
    "city": "LAKE STEVENS",
    "county": null,
    "addressState": "WA",
    "zipCode": "98258",
    "phone": "(425) 309-3609",
    "workersCompensation": null,
    "insuranceCompany": "Hadron Specialty Insurance Com",
    "insurancePolicyNumber": "HSICISC010008157",
    "insuranceAmount": 1000000,
    "insuranceExpirationDate": "2027-10-26",
    "bondCompany": "Westfield Insurance Co",
    "bondNumber": "576455D",
    "bondAmount": 15000,
    "bondExpirationDate": null,
    "licenseLookupUrl": null,
    "sourceName": "L&I Contractor License Data - General (data.wa.gov)",
    "sourceUrl": "https://data.wa.gov/d/m8qx-ubtq",
    "dataLicense": "Open Data Commons Public Domain Dedication and License (PDDL)",
    "unreadFields": [],
    "scrapedAt": "2026-11-16T07:06:21.848Z"
}
```

When a state cannot answer a filter, could not be read, or has nothing for your filters, you get one **free** row instead, for example:

```json
{
    "rowType": "status",
    "status": "filter_unsupported",
    "query": "OR",
    "reason": "Oregon was not read: its register publishes no classification tagged with the trades asked, so \"Trades\" would leave out every license. Remove that filter to get Oregon's licenses. Nothing was charged.",
    "scrapedAt": "2026-11-16T07:06:21.848Z"
}
```

### Output fields

| Field | Meaning |
|---|---|
| `rowType`, `status` | `license` and `ok` on a license; `status` and its kind (`no_results`, `source_unavailable`, `source_changed`, `filter_unsupported`, `spending_limit`) on a free row, which also carries `query` (the state) and `reason`. |
| `state`, `stateName`, `agency` | Where the license is issued and who issues it. |
| `licenseNumber`, `licenseType` | The state's license, registration or certificate number and its type. |
| `classifications`, `trades` | The state's own classifications as it names them, and the trades read from them. |
| `licenseStatus`, `isActive` | The state's status text, and whether the license is in force today (not expired, suspended or inactive). |
| `businessName`, `alternateName`, `ownerName`, `businessType` | The business, its DBA or second name, the owner, principal or qualifier, and the entity type. |
| `issueDate`, `expirationDate` | First issue date and expiration (YYYY-MM-DD). |
| `address`, `city`, `county`, `addressState`, `zipCode`, `phone` | The business's address and phone as the state lists them. |
| `workersCompensation` | Workers' compensation coverage or exemption. |
| `insuranceCompany`, `insurancePolicyNumber`, `insuranceAmount`, `insuranceExpirationDate` | Liability or workers' compensation insurance on file. |
| `bondCompany`, `bondNumber`, `bondAmount`, `bondExpirationDate` | The contractor's surety bond. |
| `licenseLookupUrl` | The state's own page for the license, where it has one (Colorado). |
| `sourceName`, `sourceUrl`, `dataLicense` | The register, its link and its terms. |
| `unreadFields` | Fields the state publishes that could not be read for this row. Empty when everything was read. |
| `scrapedAt` | When the row was read (UTC). |

### What each state publishes

| State | Register | Licenses | Phone | County | Issue date | Insurance and bond |
|---|---|---|---|---|---|---|
| California | CSLB License Master file | ~245,000, every classification | yes | yes | yes | workers' comp, bond |
| Texas | TDLR All Licenses | A/C, electrical, sign, elevator, appliance installation, water well | yes (not A/C) | yes | no (expiration only) | no |
| Washington | L\&I Contractor License Data | every contractor, 85 specialties | yes | no | yes | insurance and bond |
| Oregon | CCB Active Licenses | active only, by endorsement | yes | yes | yes | insurance and bond |
| Connecticut | DCP State Licenses and Credentials | home improvement and 30 trade credentials | no | no | yes | no |
| Colorado | DORA Professional Licenses | electrical and plumbing contractors and masters | no | no | yes | no |
| New York | DOL Contractor Registry | public-work contractor registry | yes | no | yes | workers' comp flag |

A filter a state cannot answer (a county in Washington, a phone in Connecticut, an issue date in Texas) skips that state with a free row rather than delivering licenses that do not match.

### How much does it cost?

You pay **US$0.002 per license** delivered (US$2 per 1,000). Free status rows are never charged. A run asking 7 states for 100 licenses each costs at most US$1.40. California's file is read whole, which takes one to four minutes depending on how fast CSLB sends it; the other states answer in seconds.

### Limits

- California's CSLB file is about 56 MB and is downloaded once per run. CSLB ends every transfer at 150 seconds; when its file does not arrive whole after five tries, California is a free `source_unavailable` row and the other states are still delivered.
- License numbers are not unique across states or license types (Texas "100" is also an Oregon license and several Colorado ones): a number is looked for in every state chosen, and every license that carries it is delivered.
- Texas publishes no issue date, so it is read in the register's own order and cannot answer "issued in the last N days".
- Oregon's register lists active licenses only; New York's registry has no classifications or trades.
- Data is as fresh as each state publishes it: every run reads the registers live, nothing is cached.

### Is it legal to scrape contractor licenses?

Contractor licenses are public records that each state publishes for reuse on its open-data portal or data portal, under the terms named in each row (public domain, PDDL, or the state's open-data terms). Some licenses name people (sole owners, qualifiers, principals). If you use them for marketing, follow the rules that apply to you: CAN-SPAM, the TCPA and Do Not Call lists for phone outreach, and state privacy laws. Read each portal's terms before republishing the data.

### Related Actors

- [Building Permits Scraper](https://apify.com/steadyscrape/building-permits-scraper): building permits with the contractor who pulled them, from 18 US city and county portals.

# Actor input Schema

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

The state registers to read, each one's newest licenses first where the state dates them. California is one 56 MB file read whole (about a minute); Texas publishes no issue date, so it is read in its own order.

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

Only licenses with a classification of one of these trades, read from each state's own classification names (California's C-10 Electrical, Washington's ROOFING specialty, Connecticut's HIC home improvement). Empty: every trade.

## `classification` (type: `string`):

A classification as the state writes it: a code matched exactly ("C-10", "B", "HIC", "EC", "CGC1") or words of its name ("solar", "tree service"). Empty: every classification.

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

Look up these licenses only, numbered as the state numbers them: "1000013" in California, "TIPTOTR742QC" in Washington, "HIC.0644210" in Connecticut. Each number is looked for in every state chosen and short numbers repeat across states, so choose the states they belong to. Set License status to "Any status" to get expired or suspended ones too. Up to 100. Empty: every license.

## `status` (type: `string`):

Active: only licenses the state counts in force today (not expired, suspended or revoked). Any: every license the register lists, inactive ones included.

## `issuedWithinDays` (type: `integer`):

Only licenses first issued from this many days ago up to today: new businesses. 0: any issue day. Ignored when "Issued since" is set.

## `issuedFrom` (type: `string`):

Only licenses first issued on or after this day, YYYY-MM-DD. Empty: use "Issued in the last N days".

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

Only licenses whose business address is in one of these cities, e.g. "Seattle", "Portland". Empty: every city.

## `counties` (type: `array`):

Only licenses in one of these counties, e.g. "Los Angeles", "Travis". California, Texas and Oregon publish a county; the other states are not read when this is set (a free row says so).

## `zipCodes` (type: `array`):

Only licenses whose business ZIP code starts with one of these: a whole ZIP ("98101") or its start ("981"). Empty: every ZIP code.

## `onlyWithPhone` (type: `boolean`):

Only licenses whose state lists a business phone. Connecticut and Colorado publish no phone and are not read when this is on.

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

Stops reading a state after this many licenses. 0: no limit.

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

Stops the run after this many licenses across every state. 0: no limit. Each license is one charged result; free status rows are not charged.

## Actor input object example

```json
{
  "states": [
    "WA",
    "OR",
    "NY"
  ],
  "trades": [],
  "classification": "",
  "licenseNumbers": [],
  "status": "active",
  "issuedWithinDays": 30,
  "cities": [],
  "counties": [],
  "zipCodes": [],
  "onlyWithPhone": false,
  "maxResultsPerState": 5,
  "maxResults": 15
}
```

# Actor output Schema

## `licenses` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "states": [
        "WA",
        "OR",
        "NY"
    ],
    "issuedWithinDays": 30,
    "maxResultsPerState": 5,
    "maxResults": 15
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyscrape/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 = {
    "states": [
        "WA",
        "OR",
        "NY",
    ],
    "issuedWithinDays": 30,
    "maxResultsPerState": 5,
    "maxResults": 15,
}

# Run the Actor and wait for it to finish
run = client.actor("steadyscrape/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 '{
  "states": [
    "WA",
    "OR",
    "NY"
  ],
  "issuedWithinDays": 30,
  "maxResultsPerState": 5,
  "maxResults": 15
}' |
apify call steadyscrape/contractor-license-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,steadyscrape/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/abqCXA69hMTxDoqDZ/builds/RnztgsknFsjzvx2Xl/openapi.json
