# Contractor License Check (Washington & Oregon) (`vanakenj45/contractor-license-check`) Actor

Is this contractor licensed and insured right now? Look up Washington (L\&I) or Oregon (CCB) contractors by license number or business name: status, expiry, insurance and bond dates, with flags for lapsed licenses or insurance. Official state data; up to 100 per run.

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

## Pricing

from $5.00 / 1,000 contractor checkeds

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 Check (Washington & Oregon)

**Is this contractor licensed and insured right now?** Check Washington and Oregon construction
contractors against the **official state license records** in one run: license status, license
expiry, insurance and bond dates, with clear flags when something has lapsed.

- **Washington:** Department of Labor & Industries (L\&I) contractor licenses, with insurance dates.
- **Oregon:** Construction Contractors Board (CCB) active licenses, with bond dates.

### Who it is for

- **Homeowners, property managers and general contractors** vetting a contractor or subcontractor before signing.
- **Insurers, bonding agents, lenders and suppliers** screening contractor lists in bulk.
- **AI agents and automations** that need a license check as a tool (it works over MCP).

### How to use it

Paste license numbers or business names (one per line), pick the state, and run. For mixed states
in one run, use the advanced `contractors` field:

```json
{ "contractors": [ { "state": "WA", "license_number": "BROWNRC093CR" }, { "state": "OR", "business_name": "Example Builders LLC" } ] }
```

### What you get for each contractor

| Field | What it is |
|---|---|
| `input` | What you asked for |
| `found` | Whether a license matched |
| `ok` | `true` when the license is active and neither it nor the insurance has lapsed; `false` otherwise; `null` when not found |
| `flags` | `license_inactive`, `license_expired`, `license_expires_within_30_days`, `insurance_expired`, `insurance_expires_within_30_days`, `no_insurance_on_file` |
| `contractor` | `license_state`, `license_number`, `entity_type`, `license_status`, `license_expires`, `insurance_expires` (WA), `bond_expires` (OR), and for businesses `business_name`, `license_type`, `specialties`; plus `match_method` and `match_confidence` |
| `note` | Why a contractor was not found |

#### Matching and privacy

- **By license number:** exact match (`match_confidence: high`).
- **By business name:** exact name, ignoring case, punctuation and suffixes like LLC or Inc. When
  several different businesses share the name, nothing is guessed: you get "not found" with a
  hint to use the license number.
- **Individuals (sole proprietors)** are shown by license number, status and dates only. No names
  of people, no phone numbers or home addresses are ever returned.

### Pricing

**$0.005 per contractor found and checked.** Contractors that are not found are listed in the
results but **not charged**. You can cap your spend with Apify's maximum cost per run.

### Data sources and limits

- Washington L\&I "Contractor License Data - General" (data.wa.gov, dataset m8qx-ubtq) and its
  insurance dataset (ciwg-agsx); Oregon CCB "Active Licenses" (data.oregon.gov, g77e-6bhs).
  These are official open-data sets published by the states; refresh times are set by each agency.
- The Oregon dataset lists active licenses only, so an inactive Oregon license shows as "not found".
- This is not legal advice or a guarantee of a contractor's standing; confirm critical decisions
  with the state agency.

### Related

- **Building Permit Leads with Contractor License Status**: new building permits with the
  contractor's license status, from the same publisher.

# Actor input Schema

## `state` (type: `string`):

Which state's contractor licenses to search for the lists below.

## `license_numbers` (type: `array`):

Contractor license numbers to check, one per line (exact match).

## `business_names` (type: `array`):

Registered business names to check, one per line. Matched exactly, ignoring case, punctuation and legal suffixes (LLC, Inc). When several different businesses share a name, nothing is guessed: use the license number.

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

Mixed states in one run: \[{"state": "OR", "license_number": "123456"}, {"state": "WA", "business_name": "Summit Roofing LLC"}].

## Actor input object example

```json
{
  "state": "WA",
  "license_numbers": [
    "BROWNRC093CR"
  ],
  "business_names": [
    "A Better Roofing Company Inc"
  ]
}
```

# Actor output Schema

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

One item per contractor looked up: whether it was found, ok (active license, no lapsed insurance), flags, and the license record (number, status, expiry, insurance and bond dates; business name for businesses only).

# 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 = {
    "license_numbers": [
        "BROWNRC093CR"
    ],
    "business_names": [
        "A Better Roofing Company Inc"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vanakenj45/contractor-license-check").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 = {
    "license_numbers": ["BROWNRC093CR"],
    "business_names": ["A Better Roofing Company Inc"],
}

# Run the Actor and wait for it to finish
run = client.actor("vanakenj45/contractor-license-check").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 '{
  "license_numbers": [
    "BROWNRC093CR"
  ],
  "business_names": [
    "A Better Roofing Company Inc"
  ]
}' |
apify call vanakenj45/contractor-license-check --silent --output-dataset

```

## MCP server setup

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

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/nFUWqa9M75tXu3gJx/builds/DsSaxAVhwvRjKzFYo/openapi.json
