# Contractor License Feed: New & Suspended Licenses (WA, OR) (`asunoki/contractor-license-events-feed`) Actor

Newly licensed and newly suspended contractors in Washington (L\&I) and Oregon (CCB), from the states' official open data. Filter by trade, city, ZIP, licence type. Schedule it and get only events you have not seen. No API key. Principal names never output.

- **URL**: https://apify.com/asunoki/contractor-license-events-feed.md
- **Developed by:** [Seisuke Nagahara](https://apify.com/asunoki) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 license events

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 Feed: New & Suspended Licenses (WA, OR)

**What you get:** every contractor that was **newly licensed** in Washington or Oregon, and every Washington contractor whose licence
was **suspended**, straight from the states' official open data. One row per event, with licence number, trade, business name, city,
ZIP, status and expiry, Washington UBI, Oregon bond and insurance details, and a link to verify the licence.
**Price:** $3.00 per 1,000 events (proposed; you pay only for rows stored, the summary row is free). **No API key, no login.**

Schedule it weekly (or daily) and you get **only events you have not seen before**.

### Who uses it

- **Selling to new contractors** – insurance and surety agents, equipment and material suppliers, accountants, software for trades
  (scheduling, invoicing), sign and web shops. About 1,000 new licences a month in Washington and 300 to 500 in Oregon.
- **Checking the contractors you work with** – general contractors with subcontractors, property managers, home-service platforms and
  marketplaces. About 1,000 Washington licences are suspended every month (for example when a bond or insurance lapses).
- **Market watchers** – how many new roofers, electricians or plumbers start in a county this month.

### Example input

```json
{
  "states": ["WA", "OR"],
  "events": ["new-license"],
  "keywords": ["roof", "solar"],
  "zipPrefixes": ["980", "981", "972"],
  "registeredEntitiesOnly": true,
  "days": 8
}
```

Run it weekly with `days` 8 (daily: `days` 3) so nothing falls between runs.

### Example row (shortened)

```json
{
  "event": "new-license",
  "eventDate": "2026-11-19",
  "licenseState": "OR",
  "licenseNumber": "262842",
  "businessName": "TSUNAMI CONSTRUCTION LLC",
  "isRegisteredEntity": true,
  "licenseType": "Residential General Contractor",
  "licenseExpirationDate": "2028-11-19",
  "city": "GEARHART", "zip": "97138", "county": "Clatsop",
  "bondCompany": "WESTERN SURETY COMPANY", "bondAmountUsd": 25000,
  "insuranceCompany": "ARTISAN AND TRUCKERS CASUALTY COMPANY", "insuranceAmountUsd": 1000000,
  "workersCompExempt": true,
  "verifyUrl": "https://search.ccb.state.or.us/search/"
}
```

Full field list: see the Output tab (dataset schema) or `docs/sample-output.json`. `report.csv` in the run's key-value store has the
same rows as a spreadsheet.

### Input

| Field | What it does |
|---|---|
| `states` | WA, OR (default both). |
| `events` | `new-license`, `suspended` (default both). Suspensions are Washington only: Oregon publishes active licences only. |
| `keywords` / `excludeKeywords` | Matched on business name, licence type and specialty, case ignored: roof, electric, plumb, hvac, solar, landscap, paint, concrete, … |
| `licenseTypeCodes` | WA: CC construction, EC electrical, PC plumbing, LC elevator. OR: RGC, RSC, RLC, CGC1, CGC2, CSC1, CSC2, LBPR (lead paint), RHISC (home inspector), … |
| `cities`, `zipPrefixes` | Business address city (exact name) or the first 3 to 5 ZIP digits. |
| `registeredEntitiesOnly` | Only LLCs, corporations, partnerships (drops sole proprietors). |
| `includeBusinessContact` | Adds street address and phone, **only for registered entities** (off by default). |
| `days` | Event dates to read (1 to 60, default 7), Pacific time. |
| `onlyNew` | Default on: events already output for the same filters are skipped. |
| `maxItems` | Cost cap per run (default 500). Events cut by the cap stay new for the next run. |

### What a row means, and does not mean

- **New licence** = WA licence effective date / OR original registration date in your window. A business that let its licence lapse
  and got a new one may appear as new; a renewal of an existing licence does not.
- **Suspended** = WA suspension date in your window. `licenseStatus` is the status today (it may already be ACTIVE again or EXPIRED).
- The registers are updated daily (WA three times a day). Events usually appear the same or next working day.
- This is not a background check and not legal advice. Always verify a licence with the regulator (`verifyUrl`) before relying on it.

### Privacy

- Names of principals / responsible managing individuals and fax numbers are **never downloaded**.
- Street address and phone are off by default and, when switched on, given **only for registered business entities**. Sole proprietors
  never get them. Some small LLCs still use a home address or mobile phone: follow the marketing rules that apply to you (e.g.
  do-not-call and TCPA for phone calls). No e-mail addresses are provided.
- `businessName` is the name the contractor registered; sole proprietors often register under their own name.

### Honest limits

- Only Washington and Oregon. California, Arizona, Florida and Texas registers are not included (no open-data API with clear reuse terms).
- Oregon: no suspensions or revocations (not in the open dataset); "registered entity" is inferred from LLC/INC/CORP… in the name.
- Washington: no bond or insurance details in this feed (they are separate datasets).
- If a state changes its dataset, the run **fails loudly** (`schema_changed`) instead of returning wrong rows; you are not charged for rows not stored.

### Reliability

Official keyless APIs only (data.wa.gov, data.oregon.gov). Each request has a 60 s timeout and up to 4 retries (429, 5xx, network
errors, maintenance pages; `Retry-After` respected). One state failing does not lose the other state's rows. A week with no new
Washington licence triggers a "source may be stalled" warning. A typical run takes 5 seconds.

### Data sources and licence

- Washington State Department of Labor & Industries, "L\&I Contractor License Data - General", https://data.wa.gov/d/m8qx-ubtq —
  Open Data Commons Public Domain Dedication and License (PDDL) 1.0.
- Oregon Construction Contractors Board, "CCB Active Licenses", https://data.oregon.gov/d/g77e-6bhs — public domain (ORS 276A.368(3)).

Every row carries this attribution in `license`. This Actor is not affiliated with or endorsed by L\&I, the CCB or either state.

# Actor input Schema

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

Leave empty for both.

## `events` (type: `array`):

Leave empty for both. Oregon publishes active licences only, so suspensions are available for Washington only.

## `keywords` (type: `array`):

Only events whose business name, licence type or specialty contains at least one of these (case ignored), e.g. roof, electric, plumb, hvac, solar, landscap, paint, concrete.

## `excludeKeywords` (type: `array`):

Drop events whose business name, licence type or specialty contains any of these.

## `licenseTypeCodes` (type: `array`):

WA: CC (construction), EC (electrical), PC (plumbing), LC (elevator). OR: RGC, RSC, RLC, RHIC, CGC1, CGC2, CSC1, CSC2, LBPR, RHISC, ... Leave empty for all.

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

City of the business address, exact name (case ignored), e.g. Seattle, Spokane, Portland, Bend.

## `zipPrefixes` (type: `array`):

3 to 5 digits of the business ZIP code, e.g. 980 (Seattle area) or 97209.

## `registeredEntitiesOnly` (type: `boolean`):

Keep only corporations, LLCs, partnerships and similar (WA business type; OR: a legal-form word such as LLC or INC in the name). Drops sole proprietors.

## `includeBusinessContact` (type: `boolean`):

Only for registered business entities; never for sole proprietors or names without a legal form. Off by default: some small LLCs register a home address or a mobile phone.

## `days` (type: `integer`):

Event dates read on every run: today and the days before it. For a daily schedule use 3, for a weekly schedule 8, so nothing falls between runs.

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

Remembered per filter set in a named key-value store. Turn off to get the whole window every time.

## `maxItems` (type: `integer`):

You are charged per event stored, so this caps the cost of a run. Events cut by the limit stay new for the next run.

## `stateStoreName` (type: `string`):

Leave empty to use the default.

## Actor input object example

```json
{
  "states": [
    "WA",
    "OR"
  ],
  "events": [
    "new-license",
    "suspended"
  ],
  "registeredEntitiesOnly": false,
  "includeBusinessContact": false,
  "days": 7,
  "onlyNew": true,
  "maxItems": 500
}
```

# Actor output Schema

## `events` (type: `string`):

No description

## `reportCsv` (type: `string`):

No description

## `runSummary` (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"
    ],
    "events": [
        "new-license",
        "suspended"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("asunoki/contractor-license-events-feed").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",
    ],
    "events": [
        "new-license",
        "suspended",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("asunoki/contractor-license-events-feed").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"
  ],
  "events": [
    "new-license",
    "suspended"
  ]
}' |
apify call asunoki/contractor-license-events-feed --silent --output-dataset

```

## MCP server setup

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

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/LYiJM6zm66ikg80DX/builds/bX5yYsg4yGg6daRM8/openapi.json
