# Oregon CCB Contractors · Phones by County (`corent1robert/or-ccb-contractor-leads`) Actor

Export Oregon CCB licensed contractors from the official open license file. Name, county, city, address and phone — one row per license. Public data. No login. No API key. Free plan: 20 contractors.

- **URL**: https://apify.com/corent1robert/or-ccb-contractor-leads.md
- **Developed by:** [Corentin Robert](https://apify.com/corent1robert) (community)
- **Categories:** Lead generation, Automation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.69 / 1,000 firm with phones

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 CCB Contractors · Phones by County

Build a **CRM list of Oregon licensed contractors** from the **official CCB active-license file** on [data.oregon.gov](https://data.oregon.gov/dataset/CCB-Active-Licenses/g77e-6bhs).

**~56,000 license rows · published phones (~100% on sample).** Open government data. **No emails** on this file.

**No login. No API key. No browser. Free plan: 20 contractors per run.**

Next: [USA Swimming clubs](https://apify.com/corent1robert/usa-swimming-clubs-scraper) · [ASHI inspectors](https://apify.com/corent1robert/ashi-homeinspector-scraper).

### Who is this for?

| You are… | Typical goal | Suggested setup |
|----------|--------------|-----------------|
| Materials / lumber SDR | Portland phones | County **Multnomah** |
| Home-services agency | Salem / Eugene | **Marion** or **Lane** |
| Data ops | Statewide | Counties empty · max **0** paid |
| First-run QA | Sample | Max **20** |

**What you get by default.** Name, CCB number, county, city, address, published phone. Emails are not in the official file.

### How to use

1. Open the Actor in Apify Console.
2. Keep **Multnomah** or pick counties. Leave name blank.
3. Keep **Only with email or phone** on. Max **20**.
4. Click **Start**. Export JSON / CSV / Excel.

### Ready-made examples (published tasks)

Saved Console tasks. Public Examples after quota allowing.

### What it extracts

Name, license number, license type / endorsement, phone, address, city, county, ZIP.

### How much does it cost to scrape Oregon CCB contractors?

| | Free | Bronze | Silver | Gold |
|---|---|---|---|---|
| Per contractor with phone | $0.00249 | $0.00249 | $0.00249 | $0.00249 |
| 20 contractors | **~$0.05** | ~$0.05 | ~$0.05 | ~$0.05 |
| 1,000 with phone | **~$2.49** | ~$2.49 | ~$2.49 | ~$2.49 |

Actor start **$0.00005**. Free plan: **20 rows / run**.

### Is it legal?

Official Oregon open data. Comply with US outreach / TCPA rules. This Actor does not invent emails.

### Input

`counties` (prefill Multnomah), `query`, `onlyWithContact`, `maxItems` (0 = no cap). API-only: `verboseLogs`, `proxyConfiguration`.

Contact <corentin@outreacher.fr>.

### Local development

```
cd or-ccb-contractor-leads
npm install && npm test
apify run --input-file=.actor/INPUT.json
```

# Changelog

This Actor's version history is a separate document: https://apify.com/corent1robert/or-ccb-contractor-leads/changelog.md

# Actor input Schema

## `counties` (type: `array`):

Keep contractors listed in these counties. Leave empty for statewide.

## `query` (type: `string`):

Optional search on the official CCB file. Leave blank for the selected counties.

## `onlyWithContact` (type: `boolean`):

Skip contractors with neither a published email nor a published phone.

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

Stop after this many unique licenses. **0 = no numerical cap.**

## Actor input object example

```json
{
  "counties": [
    "Multnomah"
  ],
  "onlyWithContact": true,
  "maxItems": 20
}
```

# Actor output Schema

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

All exported unique CCB licenses.

## `overview` (type: `string`):

Contractor, phone, county and city.

## `outreachCrm` (type: `string`):

Phone and address.

## `runLog` (type: `string`):

Plain-text progress for this run.

# 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 = {
    "counties": [
        "Multnomah"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("corent1robert/or-ccb-contractor-leads").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 = {
    "counties": ["Multnomah"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("corent1robert/or-ccb-contractor-leads").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 '{
  "counties": [
    "Multnomah"
  ],
  "maxItems": 20
}' |
apify call corent1robert/or-ccb-contractor-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,corent1robert/or-ccb-contractor-leads"
        }
    }
}
```

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/OdjnMucRS0iyKNsEF/builds/Z2dHA2sVu9EBUXr3P/openapi.json
