# Washington L\&I Contractor Scraper — Leads, Bond, Insurance (`scrapers_lat/washington-lni-contractors-scraper`) Actor

Scrape WA State L\&I registered contractors & licensed trades: business name, license/registration #, UBI, status, address, county, phone, owners, bond, insurance, expiration & violations. Export JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers\_lat/washington-lni-contractors-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $20.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.
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

## Washington L\&I Contractor License Scraper (Leads, Bond & Insurance)

> Turn the Washington State L\&I "Verify a Contractor" directory into a clean contractor lead list. Search by business name, license/registration number, WA UBI or workers' comp account and get business name, license/registration number, UBI, status, full address, county, phone, owners/principals, plus surety bond, liability insurance, workers' comp and violations. Filter and export ready-to-use records.

**📥 [Input](https://apify.com/scrapers_lat/washington-lni-contractors-scraper/input-schema) · 📤 [Output](https://apify.com/scrapers_lat/washington-lni-contractors-scraper/output-schema) · 💰 [Pricing](https://apify.com/scrapers_lat/washington-lni-contractors-scraper/pricing) · ▶️ [Examples](https://apify.com/scrapers_lat/washington-lni-contractors-scraper/examples)**

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Contractor leads](https://img.shields.io/badge/Data-Contractor%20leads-blue)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)

<table><tr>
<td align="center"><strong>Business, owners & phone</strong><br>full address, county, city & ZIP</td>
<td align="center"><strong>License, UBI & status</strong><br>type, effective & expiration dates</td>
<td align="center"><strong>Bond, insurance & violations</strong><br>surety bond, liability & workers' comp</td>
</tr></table>

<br>

### What you get

Each record includes:

- **Business / contractor / tradesperson** name and WA L\&I **license or registration number**
- **WA UBI** (Unified Business Identifier)
- **Owners / principals** with role and start/end dates
- **Full address**: street, city, **county**, state and ZIP
- **Phone** number
- **License / registration type** (Construction Contractor, Electrician, Plumber, Elevator, etc.), **specialty/scope** and **entity type**
- **License status**, **effective**, **expiration** and any **suspension** date
- **Surety bond(s)**: bond company, account number and amount
- **Liability insurance**: company, amount and expiration
- **Workers' comp**: account status, account id and assigned representative
- **Violations**, **safety-violation** and **contractor-violation** flags, and **DOSH inspection** count
- Direct **detail page URL** for each record

Only real records are charged. Empty runs cost nothing.

### Who is it for

| Use case | Who benefits |
|---|---|
| B2B sales & lead gen | Suppliers and services selling to Washington contractors |
| Insurance & bonding | Agents targeting contractors by bond, insurance and license type |
| Recruiting & staffing | Firms sourcing licensed trades and their owners |
| KYB & compliance | Verifying registration, UBI, bond and violation status |
| Market research | Analysts mapping WA's construction market by city, county and type |

### How to use it

1. Add one or more **search terms** (e.g. a business name like `construction`, a license number, a 9-digit UBI, or a workers' comp account number).
2. Choose **Search By** to match your terms (name, license, UBI, or account).
3. Keep **Fetch Full Details** on to enrich each record with phone, owners, address, county, bond and insurance; turn it off for listing-only rows.
4. Optionally use the server-side facets (**contractor/trade type**, **city**, **ZIP**, **active only**, **active workers' comp**, **has safety/contractor violations**) or the client-side filters (**status**, **city**, **name contains**).
5. Set **Max Contractors** and run. Export results as JSON, CSV or Excel.

### Filters that beat a manual lookup

- Search many names/numbers in one run
- Restrict to **active registrations** or **active workers' comp** only
- Facet by **contractor/trade type**, **city** or **ZIP**
- Surface only businesses **with safety or contractor violations**
- Post-filter by **status**, **city** or **business-name** substring

### Output

One row per contractor/license. Full field list is in the [output schema](https://apify.com/scrapers_lat/washington-lni-contractors-scraper/output-schema). Data comes from Washington State L\&I public records.

### Notes

- Free Apify plans are capped at 10 records per run.
- Coverage: WA registered construction contractors, licensed electrical/plumbing/elevator trades and tradespeople, and businesses with workers' comp accounts or violations on file.

# Actor input Schema

## `searchQueries` (type: `array`):

One or more search terms. Depending on Search By, each is a business/contractor name, a contractor/tradesperson license number, a 9-digit WA UBI number, or a workers' comp account number. One run searches all of them.

## `searchBy` (type: `string`):

What each search term represents.

## `withDetails` (type: `boolean`):

When on, each contractor is enriched with phone, street address, county, business owners/principals, entity type, effective/expiration dates, surety bond(s) and liability insurance. Turn off to return listing-only rows (name, license #, UBI, status, city).

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

Limit results to currently active contractor registrations/licenses.

## `activeWorkersComp` (type: `boolean`):

Limit results to businesses with an active, paid-to-date workers' comp account.

## `hasSafetyViolation` (type: `boolean`):

Keep only businesses that have a DOSH safety violation on file.

## `hasContractorViolation` (type: `boolean`):

Keep only businesses that have a contractor violation on file.

## `contractorTypes` (type: `array`):

Server-side facet, e.g. Construction Contractor, Electrical Contractor, Plumber, Electrician, Elevator Contractor. Leave empty for all.

## `cityFilter` (type: `string`):

Restrict the search to a single city (server-side facet). Leave empty for all cities.

## `zipFilter` (type: `string`):

Restrict the search to a single ZIP code (server-side facet). Leave empty for all.

## `statuses` (type: `array`):

Keep only records whose status contains one of these (e.g. Active, Expired, Suspended). Leave empty for all.

## `filterCities` (type: `array`):

Keep only records in these cities. Leave empty for all.

## `nameContains` (type: `array`):

Keep only records whose business name contains one of these terms. Leave empty for all.

## `maxContractors` (type: `integer`):

Maximum number of records to return across all searches.

## `useResidentialProxy` (type: `boolean`):

Route requests through Apify US residential proxy. Off by default; enable only if the site starts blocking direct requests.

## Actor input object example

```json
{
  "searchQueries": [
    "construction"
  ],
  "searchBy": "Name",
  "withDetails": true,
  "activeOnly": false,
  "activeWorkersComp": false,
  "hasSafetyViolation": false,
  "hasContractorViolation": false,
  "maxContractors": 50,
  "useResidentialProxy": false
}
```

# Actor output Schema

## `results` (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 = {
    "searchQueries": [
        "construction"
    ],
    "maxContractors": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/washington-lni-contractors-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 = {
    "searchQueries": ["construction"],
    "maxContractors": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/washington-lni-contractors-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 '{
  "searchQueries": [
    "construction"
  ],
  "maxContractors": 50
}' |
apify call scrapers_lat/washington-lni-contractors-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapers_lat/washington-lni-contractors-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/vpJOoW1MF3MgD3xqw/builds/JBcYVqYWZxkoaj9to/openapi.json
