# Goodlists Oregon Contractors (`goodlists/goodlists-oregon-contractors`) Actor

- **URL**: https://apify.com/goodlists/goodlists-oregon-contractors.md
- **Developed by:** [Thomas](https://apify.com/goodlists) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 contractor records

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

## Oregon Contractor Renewal Calendar

Find Oregon construction businesses with a state-reported liability insurance expiration in your sales territory. Each result includes the contractor's legal name, CCB license number, state-listed work phone, registered city and county, carrier and a link to the public filing. The feed reads the Oregon Construction Contractors Board and Building Codes Division datasets on each live run.

### Find a territory

To get up to 25 Washington County accounts whose reported policies expire in 31–60 days, use this input:

```json
{"dataset":"renewals","county":"Washington","minDays":31,"maxDays":60,"limit":25}
```

Choose **renewals** for reported expirations 1–90 days ahead, **registrations** for original license terms in the last 90 calendar days, or **directory** for all qualifying accounts. City and county are exact, case-insensitive matches. You can also filter by ZIP prefix, carrier text or a confirmed electrical, plumbing or limited-maintenance HVAC/R credential. Set a result limit to control the size of the export. Days are calculated in Pacific time.

### Use the results

Open the run's dataset to see the matching accounts or download them as CSV. Your CRM import key is `ccb_license`. A company with multiple qualifying endorsements is listed once per license. The run summary records the edition date and output count. The Actor is designed for pay-per-result billing. See the Pricing tab for the effective rate.

### Interpreting the records

Coverage includes identifiable business entities with an active construction endorsement, valid Oregon registered ZIP and county, and a plausible state-listed work phone. Registered addresses can differ from service areas. Work phone numbers are checked for format. A reported policy expiration can change when the contractor files a replacement policy. It does not establish a lapse or interest in a quote.

The first CCB registration date belongs to the license. An established business may obtain a new license. Specialty-trade matches require an unambiguous business-name, city and ZIP match to a current BCD credential. Blank specialty or insurance fields mean supporting evidence was unavailable or conflicting.

Sources: [Oregon CCB active licenses](https://data.oregon.gov/d/g77e-6bhs) and [Oregon BCD licenses](https://data.oregon.gov/d/vhbr-cuaq).

# Actor input Schema

## `dataset` (type: `string`):

Upcoming renewals, recent first license terms or all qualifying accounts.

## `county` (type: `string`):

Exact county, e.g. Washington.

## `city` (type: `string`):

Exact registered city.

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

First one to five ZIP digits.

## `carrier` (type: `string`):

Part of the reported carrier name.

## `trade` (type: `string`):

Exact BCD match: Electrical, Plumbing, or HVAC/R (limited maintenance).

## `minDays` (type: `integer`):

Inclusive bound for the selected dataset.

## `maxDays` (type: `integer`):

Inclusive bound for the selected dataset.

## `limit` (type: `integer`):

Maximum output rows.

## Actor input object example

```json
{
  "dataset": "renewals",
  "limit": 100
}
```

# Actor output Schema

## `accounts` (type: `string`):

No description

## `csv` (type: `string`):

No description

## `summary` (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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("goodlists/goodlists-oregon-contractors").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("goodlists/goodlists-oregon-contractors").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 '{}' |
apify call goodlists/goodlists-oregon-contractors --silent --output-dataset

```

## MCP server setup

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

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/ytW6vb5GRpRJmEBFH/builds/r4hYkTS75OCykuXzX/openapi.json
