# Contractor License Lookup & Leads: New & Expiring, 7 US States (`pikoulas/contractor-licenses`) Actor

Verify contractor licences by number or business name, or get leads from seven state boards (CA CSLB, AZ ROC, TX, WA, OR, CT, NY): newly licensed contractors, or licences expiring in the weeks ahead for insurance, bond and renewal offers. Status, classifications, dates, address and phone.

- **URL**: https://apify.com/pikoulas/contractor-licenses.md
- **Developed by:** [Spyridon Pikoulas](https://apify.com/pikoulas) (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

from $2.50 / 1,000 licences

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

## Contractor License Lookup & Leads: New & Expiring, 7 US States

Contractor licences from seven state licensing boards' own publications, to verify contractors or to
find new ones, without an account or API key: California's Contractors State License Board (CSLB),
Arizona's Registrar of Contractors (ROC), the Texas Department of Licensing and Regulation (TDLR),
Washington's Labor & Industries (L\&I), Oregon's Construction Contractors Board (CCB), Connecticut's
Department of Consumer Protection (DCP) and New York's Department of Labor contractor registry.

- **Licence lookup:** give **Licence numbers** or **Business names**, and get each licence's status,
  classifications, issue and expiry dates, address and phone. A number found in none of the states
  searched comes back as `Not found`, uncharged: the boards list only active licences, so that's a
  contractor to ask about. Arizona's lookup gives a licence in any status, revoked or suspended too.
  For marketplaces, insurers, lenders and property managers that check contractors before they hire
  or pay them.
- **New contractor leads:** with **Only new licences** on, a scheduled run gives, and charges for,
  only the licences no earlier run gave: every newly licensed roofer or solar installer in your
  territory, each week, to a sheet or CRM through Make, Zapier or n8n, for a first offer before
  anyone else's.
- **Expiring licence leads:** with **Expires within days**, the licences expiring from today to then:
  contractors about to renew their licence, and with it their surety bond, liability insurance or
  continuing education. Scheduled weekly with **Only new licences**, each one comes once, as it
  enters the window.
- **Search** by **States**, **Trades** (general contractors, remodeling, electrical, plumbing, HVAC,
  roofing, solar, painting, landscaping, concrete, flooring, carpentry, windows, pools, fencing,
  excavation, demolition, fire protection and elevators, matched in each board's own licence types
  and classifications), **Cities**, **ZIP codes**, **Issued within days** and **Expires within days**.

Each licence comes with its number, the business name and trade name (dba), licence type and every
classification it holds, status, issue and expiry dates, business type, business address, county and
phone, and the board's list it comes from. Only businesses are given: owners', officers' and
qualifiers' names are left out, and so is a licence with no business name.

It costs **$2.50 per 1,000 licences**.

### What people use it for

- **Verification:** check that a contractor holds an active licence in the trade, and when it
  expires, one at a time through the API or a list at once.
- **New businesses:** contractors licensed since the last run, for a first offer.
- **Renewals:** insurance agents, surety bond brokers and continuing-education schools reach the
  contractors whose licence expires next month, before they renew.
- **Sales to contractors:** suppliers, software, insurance and financing sold to licensed solar
  installers, electricians, roofers or remodelers in your territory.
- **Market research:** how many licensed contractors of a trade work in a city or ZIP.

### How to get contractor licences

1. Click **Try for free**; Apify's free plan covers a first run.
2. Choose **States**, and give **Licence numbers** or **Business names** to look up, or **Trades**,
   **Cities** or **ZIP codes** to search.
3. Click **Start**, then download the results as JSON, CSV, Excel or HTML, or read them through
   the API.

An input with more options:

```json
{
  "states": ["CA", "WA", "CT"],
  "trades": ["electrical", "hvac"],
  "zipCodes": ["95811", "98101", "06105"],
  "issuedWithinDays": 365,
  "maxResultsPerState": 0
}
```

A lookup:

```json
{
  "states": ["WA", "OR", "CT", "NY", "AZ"],
  "licenseNumbers": ["ECOSTSC758NN", "233740", "HIC.0631057", "26-639SQ-CR", "ROC 339306"],
  "businessNames": ["Bright Sparks"]
}
```

For leads, turn on **Only new licences**, give the search a **Memory name**, and schedule the run
(Apify's **Schedules**, weekly for example). The first run gives what the search finds, up to **Max
licences per state**, and remembers it; each run after gives only what's new since. With **Issued
within days**, the first run keeps to recent licences too:

```json
{
  "states": ["CA", "WA", "CT"],
  "trades": ["roofing", "solar"],
  "issuedWithinDays": 30,
  "onlyNew": true,
  "memory": "roofing-solar-leads",
  "maxResultsPerState": 0
}
```

Renewal leads, the electricians and solar installers whose licence expires in the next 60 days:

```json
{
  "states": ["CA", "TX", "WA", "OR"],
  "trades": ["electrical", "solar"],
  "expiresWithinDays": 60,
  "maxResultsPerState": 0
}
```

### Output

```json
{
  "state": "CA",
  "licenseNumber": "1064533",
  "businessName": "SUPERIOR ELECTRIC AND SOLAR INC",
  "dba": null,
  "licenseType": "C-10 Electrical",
  "classifications": [
    "C-10 Electrical",
    "C-46 Solar"
  ],
  "status": "CLEAR",
  "issued": "2020-03-20",
  "expires": "2028-03-31",
  "businessType": "Corporation",
  "address": "7649 EASTBREEZE CRCLE",
  "city": "SACRAMENTO",
  "zip": "95828",
  "county": "Sacramento",
  "phone": "(916) 856 7807",
  "source": "https://www.cslb.ca.gov/onlineservices/dataportal/"
}
```

Fields come as each board writes them, so names, cities and phones differ in case and format from
state to state. A field a board doesn't publish is `null`.

A licence number found in none of the states searched:

```json
{
  "state": null,
  "licenseNumber": "NOPE123",
  "status": "Not found",
  "statesSearched": ["WA", "OR", "CT", "NY", "TX"]
}
```

with the other fields `null`. It comes only when every state was read to its end, and isn't charged.

### What each board gives

| State | List | Licences | Notes |
|---|---|---|---|
| California | CSLB's list by classification | Every licence currently in good standing | The most complete: all classifications, county, phone. |
| Arizona | ROC's contractor search | Licences in any status for a lookup, active ones for a search | No dates or street address: city, ZIP and phone. A search gives up to about a thousand businesses, a city alone about 250, so a full one is asked again per classification; the biggest classifications statewide, roofing or KB-2 dual contractors, are cut there, so give their cities. |
| Texas | TDLR's licences | A/C, electrical, electrical sign, elevator and appliance installation contractors | No issue dates. A/C contractors come without address or phone: TDLR gives only their mailing address, which is left out. |
| Washington | L\&I contractor licences | Active construction, electrical, plumbing and elevator contractors | Up to two specialties each. `issued` is the licence's effective date. |
| Oregon | CCB active licences | Active licences, one per business with all its endorsements | Endorsements say residential or commercial, general or specialty, not the trade, so only general contractors can be searched for by trade. |
| Connecticut | DCP licences and credentials | Active contractor registrations and licences: home improvement, electrical, plumbing, heating and cooling and more | An individual's credential comes under the name they trade as. |
| New York | DOL contractor registry | Active registrations of contractors on public work | No trades, so it's searched only for general contractors. `issued` is the current certificate's. |

### Use it as an API

One call runs it and returns the results as JSON (for runs under 5 minutes; longer ones start a
run and read its dataset). Apify's Python and JavaScript clients, and its Make, Zapier and n8n
integrations, work the same way.

```bash
curl -X POST "https://api.apify.com/v2/acts/pikoulas~contractor-licenses/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"states": ["CA"], "trades": ["solar"], "cities": ["Sacramento"], "maxResultsPerState": 0}'
```

AI agents can call it as a tool through Apify's MCP server: `https://mcp.apify.com?tools=pikoulas/contractor-licenses`.

### How much does it cost to get contractor licence data?

You pay **$0.0025 per licence**, which is $2.50 per 1,000, on Apify's paid plans, and $3.50 per
1,000 on the free plan. There are no monthly fees, and a search that finds nothing, a number not
found, or a lead run with nothing new costs nothing.
Set a spending limit on a run and it stops there with what it has.

### Good to know

- The boards update their lists daily or weekly.
- Speed: a trade in a city takes seconds, and so does a lookup outside California: five numbers
  in five states took 12 seconds. California sends its whole list for a classification, so a big
  trade is slower: the first 33,000 of its general contractors took 2.5 minutes, and a lookup
  through every classification about 8.5 minutes. A lookup by number stops once every number has
  turned up; give its **Trades** to read fewer classifications.
- **Licence numbers** and **Business names** match as given, a name anywhere in the business name
  or dba; Texas gives one number to several licence types, each a row. Arizona's numbers are ROC's six
  digits, given with or without `ROC`, and come without it.
- Arizona: a lookup or a trade in a city takes seconds; a city without a trade is asked per
  classification once it comes back full, about 165 searches at two seconds each.
- **Only new licences** keeps each memory name's licences in a key-value store in your account named
  `contractor-licenses-memory`; a licence no run reads for 60 days is forgotten. A run reads its
  whole search to find the new ones, but charges only for those. Delete the record to start over.
- **Expires within days** reads each board's own expiry date, as of the board's last update.
  Connecticut's contractor licences mostly expire at the end of a month, so they come in bunches.
- **Cities** match the city the board gives exactly, so a suburb has to be named itself.
- It reads each board's list as a guest: it names itself in its User-Agent
  (`ContractorLicensesActor`), keeps a second between requests to a board, two to ROC and three to
  CSLB, from one address and without a proxy. If a board refuses, the run goes on with the other
  states, and the log says which.

### FAQ

#### Where does the data come from?

From the boards' own publications: CSLB's [data portal](https://www.cslb.ca.gov/onlineservices/dataportal/),
ROC's public [contractor search](https://azroc.my.site.com/AZRoc/s/contractor-search), and the open data portals of [Texas](https://data.texas.gov/d/7358-krk7),
[Washington](https://data.wa.gov/d/m8qx-ubtq), [Oregon](https://data.oregon.gov/d/g77e-6bhs),
[Connecticut](https://data.ct.gov/d/ngch-56tr) and [New York](https://data.ny.gov/d/i4jv-zkey).
California's information is public domain under the [State's conditions of use](https://www.ca.gov/use/);
Washington's list is published under the Open Data Commons Public Domain Dedication, Oregon's and
Connecticut's as public domain, and New York's under the [OPEN-NY Terms of Use](https://data.ny.gov/dataset/OPEN-NY-Terms-Of-Use/77gx-ii52),
which allow any lawful use. Your use of the data is your own responsibility, including the rules on
marketing to businesses where you are; if you're unsure, ask a lawyer.

This Actor isn't affiliated with or endorsed by any of these boards or states.

#### Something missing or not working?

Open an issue on the **Issues** tab with the input you used, or ask there for a state or field you
need.

If it does what you need, a review on the **Reviews** tab helps others find it.

# Actor input Schema

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

The boards to read. None means all seven.

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

Licences to verify, as the board writes them (1064533, ROC 339306, HIC.0631057, ECOSTSC758NN), looked up in the states above. A number found in none of them, with the filters given, comes as a row with the status Not found, uncharged: the boards list only active licences, or in California those in good standing; Arizona gives a licence in any status, revoked or suspended too. California's list comes by classification, so a lookup there reads every classification of the trades given, or all of them.

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

Business or trade names, or a part of one (Bright Sparks, Solar), matched in the business name and dba.

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

Licences in any of these trades, by the board's own licence types and classifications. None means every contractor. Oregon's and New York's lists tell only general contractors apart, so they're left out of a search by other trades. Arizona gives active licences in a search by trade or city.

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

Business cities, as the board writes them (Sacramento, Seattle). None means the whole state.

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

Five-digit business ZIP codes.

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

Only licences issued in the last this many days, for new businesses: the first issue in California, Oregon and Connecticut, the effective date in Washington, the current certificate's in New York. Arizona's search and Texas give no dates and are left out.

## `expiresWithinDays` (type: `integer`):

Only licences expiring from today to this many days ahead, for renewal leads: contractors about to renew their licence, and with it their bond, insurance or continuing education. The boards list only current licences, so a lapsed one isn't given. Arizona's search gives no dates and is left out.

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

The most licences from each state; 0 for all. With only new licences, it counts the new ones.

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

Give, and charge for, only the licences no earlier run with the same memory gave. Schedule it weekly or daily for leads on newly licensed contractors. The whole search is read to find them, but only the new ones are charged.

## `memory` (type: `string`):

One per alert, so two schedules don't share a memory. Kept in your account's key-value store contractor-licenses-memory; a licence no run reads for 60 days is forgotten.

## Actor input object example

```json
{
  "states": [
    "CA",
    "WA"
  ],
  "trades": [
    "solar"
  ],
  "maxResultsPerState": 20,
  "onlyNew": false,
  "memory": "default"
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `expiring` (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": [
        "CA",
        "WA"
    ],
    "trades": [
        "solar"
    ],
    "maxResultsPerState": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("pikoulas/contractor-licenses").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": [
        "CA",
        "WA",
    ],
    "trades": ["solar"],
    "maxResultsPerState": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("pikoulas/contractor-licenses").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": [
    "CA",
    "WA"
  ],
  "trades": [
    "solar"
  ],
  "maxResultsPerState": 20
}' |
apify call pikoulas/contractor-licenses --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pikoulas/contractor-licenses"
        }
    }
}
```

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/WhlOuM82JK8tOdVAH/builds/aa6xcQ5YxgPWRXyGD/openapi.json
