# Us Contractor Licenses (`great_pistachio/us-contractor-licenses`) Actor

Contractor, trade, and professional license records across WA, CT, CO, and TX in one feed from official open data. Business, owner/principal, license type, status, address, and phone. Filter by trade and pull only recently issued licenses for fresh leads or credential verification.

- **URL**: https://apify.com/great\_pistachio/us-contractor-licenses.md
- **Developed by:** [Saturnin Pugnet](https://apify.com/great_pistachio) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $8.00 / 1,000 results

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/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 & Professional License Search

Contractor, trade, and professional license records across **Washington, Connecticut, Colorado, and Texas** in one unified feed, straight from official state open-data portals. No key, no browser, near-zero maintenance.

### What you get

- **Fresh licensee leads** — pull only licenses issued (or updated) in the last N days for newly-licensed contractors, agents, and pros.
- **Credential verification (KYB)** — look up a business or person by name and confirm license number, type, status, and expiration.
- **Targeted trade lists** — filter by license type (HVAC, electrical, plumbing, real estate, cosmetology, and more).

### Sources

| Source | Coverage | New-license date |
|--------|----------|------------------|
| Washington L\&I | Registered construction contractors (business, owner/principal, specialty, phone) | ✅ effective date |
| Connecticut eLicense | All professions (trades, real estate, healthcare, cosmetology…) | ✅ issue date |
| Colorado DORA | All professions | ✅ first-issue date |
| Texas TREC | Real-estate agents & brokers | ✅ (via record update) |
| Texas TDLR | Trades: A/C, electrical, plumbing… (owner, business, county) | registry lookup (no date) |

### Input

```json
{ "sources": ["wa"], "licenseTypeFilter": "electric", "sinceDays": 30 }
```

```json
{ "sources": ["ct", "co"], "nameContains": "acme", "sinceDays": 3650 }
```

```json
{ "sources": ["tx_trades"], "licenseTypeFilter": "a/c", "maxResultsPerSource": 500 }
```

| Field | Description |
|-------|-------------|
| `sources` | Which registries: `wa`, `ct`, `co`, `tx_agents`, `tx_trades`. Empty = all |
| `licenseTypeFilter` | Substring match on license type/specialty (e.g. `hvac`, `plumb`, `real estate`) |
| `nameContains` | Substring match on licensee / business / owner name |
| `zipPrefix` | Keep only ZIPs starting with this prefix |
| `sinceDays` | New licenses in the last N days (date-based sources). Large value = full registry |
| `maxResultsPerSource` | Cap per source (required for `tx_trades`, which has no date column) |
| `maxResults` | Overall cap. 0 = unlimited |

### Output

Each record: `state`, `source`, `licenseeName`, `businessName`, `ownerName`, `licenseNumber`, `licenseType`, `specialty`, `status`, `issueDate`, `expirationDate`, `address`, `city`, `stateCode`, `zip`, `phone`, `county`, `sourceUrl`, `dataSource`.

### Related Actors

- [US New Business Filings](https://apify.com/great_pistachio/us-new-business-filings) — new business registrations across 6 states
- [US Building Permits](https://apify.com/great_pistachio/us-building-permits) — daily permits, solar/roofing/HVAC leads
- [US Business Search](https://apify.com/great_pistachio/us-business-search) — multi-state entity search & KYB

# Actor input Schema

## `sources` (type: `array`):

Which state registries to pull. Leave empty for all.

## `licenseTypeFilter` (type: `string`):

Only include licenses whose type/specialty contains this text (case-insensitive), e.g. 'electric', 'plumb', 'hvac', 'real estate', 'contractor'. Leave empty for all.

## `nameContains` (type: `string`):

Only include records whose licensee, business, or owner name contains this text (case-insensitive). Leave empty for all.

## `zipPrefix` (type: `string`):

Only include records whose ZIP starts with this prefix (where a ZIP is published). Leave empty for all.

## `sinceDays` (type: `integer`):

For date-based sources (WA, CT, CO, TX agents), only licenses issued/updated in the last N days. Use a large value (e.g. 3650) to pull the full registry.

## `maxResultsPerSource` (type: `integer`):

Cap per source. Required for the TX trades source (no date column). 0 = unlimited for date-based sources.

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

Cap total across all sources. 0 = unlimited.

## Actor input object example

```json
{
  "sources": [],
  "licenseTypeFilter": "",
  "nameContains": "",
  "zipPrefix": "",
  "sinceDays": 30,
  "maxResultsPerSource": 50,
  "maxResults": 0
}
```

# Actor output Schema

## `defaultDataset` (type: `string`):

Contractor, trade, and professional license records - business/licensee name, owner, license type, status, issue date, address and phone where published

# 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 = {
    "maxResultsPerSource": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("great_pistachio/us-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 = { "maxResultsPerSource": 50 }

# Run the Actor and wait for it to finish
run = client.actor("great_pistachio/us-contractor-licenses").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxResultsPerSource": 50
}' |
apify call great_pistachio/us-contractor-licenses --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=great_pistachio/us-contractor-licenses",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/zajZj4mM2RaX3iQdS/builds/fywlFwY1KO9Odsssj/openapi.json
