# California Pest Control Dca License Scraper (`unique_dev/california-pest-control-dca-license-scraper`) Actor

- **URL**: https://apify.com/unique_dev/california-pest-control-dca-license-scraper.md
- **Developed by:** [Ship AI agents](https://apify.com/unique_dev) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

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

## California Structural Pest Control Board & DCA Business License + Owner Emails Scraper (`california-pest-control-dca-license-scraper`)

Extract official **California Department of Consumer Affairs (DCA) Structural Pest Control Board (SPCB)** Company Registrations (`PR`), Branch Offices (`BR`), Operator Licenses (`OPR`), Field Representatives (`FR`), and Registered Applicators (`RA`)—and automatically enrich every pest control company with its **Qualifying Operator / Owner (`owner_first_name`, `owner_last_name`, `owner_title`)**, **licensed technician headcount (`licensed_technician_count`)**, **estimated annual revenue (`estimated_annual_revenue`)**, **M\&A retirement score (`ma_retirement_score`)**, **personalized broker icebreaker**, **official website**, **phone number**, **verified business emails (`primary_email` + `email_type`)**, and **social media profiles** (`Facebook`, `Yelp`, `LinkedIn`, `Instagram`, `YouTube`, `X`).

***

### ⚡ Live 20-Company V2 Verification Proof (`10.68 Seconds` End-to-End)

Below is the live output from running `california-pest-control-dca-license-scraper` V2 across **Los Angeles**, **San Diego**, **Sacramento**, and **San Jose** (`entity_scope="companies"`, `max_results=20`, `enrichWebsiteAndEmails=true`):

- **Execution Time:** `10.68 seconds` (downloading & cross-referencing **29,061** official California SPCB license records + concurrent multi-engine web, phone, email, and owner enrichment)
- **Qualifying Operator / Owner Fill Rate:** **20 / 20 (`100%`)** (including P.O. Box registrations via our 3-tier street/P.O. Box, county brand-surname, and web/email owner resolver)
- **Official Website Resolution Rate:** **20 / 20 (`100%`)**
- **Verified Phone Number Rate:** **20 / 20 (`100%`)**
- **Verified Business Email Rate:** **20 / 20 (`100%`)** (`22` verified emails extracted, classified into `personal_owner_inbox`, `direct_executive`, and `business_role`)
- **Social / Yelp Profile Rate:** **19 / 20 (`95%`)**

| # | License # | Organization Name | Qualifying Operator / Owner | Issued (`Years`) | Techs & Est. Revenue | M\&A Score | Address (`City, County`) | Website | Phone | Primary Email (`Type`) |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | `PR 436` | **The Lloyd Termite Control Co** | James A Ogle III (OPR 10144) | 1966-01-01 (`60.9 yrs`) | `415` techs (`$5.0M - $12.0M+`) | `15/100` | 1331 Morena Blvd Ste 300, San Diego (San Diego) 92110 | https://lloydpest.com/ | `(619) 298-9865` | `info@lloydpest.com` (`business_role`) |
| 2 | `PR 1833` | **Little David Pest Control Inc** | David James Campeau (OPR 7026) | 1990-05-16 (`36.5 yrs`) | `7` techs (`$1.1M - $2.4M`) | `98/100` | 776 Clinton Place, San Jose (Santa Clara) 95126 | https://www.littledavidpestcontrol.com/ | `(408) 294-1955` | `service@littledavidpestcontrol.com` (`business_role`) |
| 3 | `PR 1449` | **Arnolds Pest Control Inc** | Arnold Urzua (OPR 13528) | 1988-01-01 (`38.9 yrs`) | `1` tech (`$250K - $450K`) | `93/100` | Po Box 75837, Los Angeles (Los Angeles) 90075 | https://arnoldspestcontrol.com/ | `(323) 666-6571` | `info@arnoldspestcontrol.com` (`business_role`) |
| 4 | `PR 2770` | **Apex Pest Control Inc** | Jared F Alexander (OPR 14137) | 1995-07-12 (`31.3 yrs`) | `12` techs (`$2.2M - $4.8M`) | `93/100` | 4541 Harlin Drive, Sacramento (Sacramento) 95826 | https://www.apexpestcontrolinc.com/ | `(916) 362-9294` | `apexpest@aol.com` (`personal_owner_inbox`) |
| 5 | `PR 854` | **Earls Pest Control Of Santa Clara County** | Jorge F Munoz (OPR 12729) | 1977-01-01 (`49.9 yrs`) | `2` techs (`$600K - $1.2M`) | `98/100` | 1040 Commercial Street #101, San Jose (Santa Clara) 95112 | https://www.earlspestcontrol.com/ | `(408) 286-2497` | `info@earlspestcontrol.com` (`business_role`) |
| 6 | `PR 176` | **Able Exterminators Inc** | Mario Rios Rodriguez (OPR 8571) | 1967-03-16 (`59.7 yrs`) | `4` techs (`$600K - $1.2M`) | `98/100` | 68 North Sunset Avenue, San Jose (Santa Clara) 95116 | https://www.ablexterminators.com/ | `(408) 251-6500` | `info@ablexterminators.com` (`business_role`) |
| 7 | `PR 441` | **Harbor Pest Control Inc** | Travis Matthew Stradley (OPR 10832) | 1977-01-01 (`49.9 yrs`) | `14` techs (`$2.2M - $4.8M`) | `98/100` | 6160 Fairmount Ave Ste K, San Diego (San Diego) 92120 | https://harborpest.com/ | `(619) 625-6259` | `info@harborpest.com` (`business_role`) |
| 8 | `PR 227` | **Taps Termite Inc** | Joseph Edward Bloom Jr. (FR 72843) | 1977-01-01 (`49.9 yrs`) | `1` tech (`$250K - $450K`) | `93/100` | 3728 Charter Park Dr unit D, San Jose (Santa Clara) 95136 | https://tapstermite.com/ | `(408) 259-5900` | `rob@tapstermite.com` (`direct_executive`) |
| 9 | `PR 1452` | **Homeguard Incorporated** | James H Steffenson III (OPR 13205) | 1988-08-01 (`38.3 yrs`) | `42` techs (`$5.0M - $12.0M+`) | `98/100` | 510 Madera Avenue, San Jose (Santa Clara) 95112 | https://homeguard.com/ | `(855) 331-1900` | `creese@homeguard.com` (`direct_executive`) |
| 10 | `PR 3030` | **Weed Enterprises Inc DBA Proven Termite Solutions** | James Bob Weed (OPR 9158) | 1997-02-21 (`29.7 yrs`) | `13` techs (`$2.2M - $4.8M`) | `83/100` | 662 Giguere Court Suite F, San Jose (Santa Clara) 95133 | https://www.proventermitesolutions.com/ | `(408) 929-1992` | `info@proventermitesolutions.com` (`business_role`) |
| 11 | `PR 609` | **Chelsea Pest & Termite Control Inc** | David P Mc Quinn (OPR 7120) | 1985-02-01 (`41.8 yrs`) | `2` techs (`$600K - $1.2M`) | `98/100` | 2321 K Morena Blvd, San Diego (San Diego) 92110 | https://chelseapest.com/ | `(619) 625-6259` | `info@chelseapest.com` (`business_role`) |
| 12 | `PR 5743` | **Barrier Pest Solutions** | Anthony J Mora (OPR 11758) | 2009-01-07 (`17.8 yrs`) | `4` techs (`$600K - $1.2M`) | `65/100` | 7228 Simon Street, Sacramento (Sacramento) 95828 | https://www.callbarrier.com/ | `(916) 683-2929` | `contactus@callbarrier.com` (`business_role`) |
| 13 | `PR 5016` | **Bouey Termite Service Inc** | Shawn Kieth Bouey (OPR 9099) | 2006-04-04 (`20.6 yrs`) | `4` techs (`$600K - $1.2M`) | `75/100` | 3639 4th Avenue, Sacramento (Sacramento) 95817 | https://boueytermite.com/ | `(916) 733-0520` | `office@boueytermite.com` (`business_role`) |
| 14 | `PR 2742` | **Assurance Pest Control** | Stephen Gregory Shilling (OPR 9078) | 1995-05-09 (`31.5 yrs`) | `1` tech (`$250K - $450K`) | `86/100` | P O Box 3219, San Diego (San Diego) 92163 | https://assurancepestcontrol.com/ | `(619) 200-4505` | `sshilling28@gmail.com` (`personal_owner_inbox`) |
| 15 | `PR 5489` | **Explorer Pest Management Inc** | Thomas Timothy Hamm (OPR 10310) | 2007-12-17 (`18.9 yrs`) | `1` tech (`$150K - $300K`) | `68/100` | Po Box 276092, Sacramento (Sacramento) 95827 | https://explorerpest.net/ | `(916) 252-4624` | `info@explorerpest.net` (`business_role`) |
| 16 | `PR 1162` | **Guarantee Pest Control Inc** | Rolando E Cruz (OPR 12207) | 1958-01-01 (`68.9 yrs`) | `3` techs (`$600K - $1.2M`) | `98/100` | P O Box 27035, Los Angeles (Los Angeles) 90027 | https://guaranteepestcontrol.net/ | `(424) 732-3605` | `guaranteepestcon@sbcglobal.net` (`personal_owner_inbox`) |
| 17 | `PR 3799` | **Mt Helix Pest Control** | Stephen D Orton (OPR 9629) | 2000-11-07 (`26.0 yrs`) | `8` techs (`$1.1M - $2.4M`) | `83/100` | 4401 Twain Avenue Suite 29, San Diego (San Diego) 92120 | https://www.mthelixpestcontrol.com/ | `(619) 584-6794` | `info@mthelixpestcontrol.com` (`business_role`) |
| 18 | `PR 4730` | **Vanish Integrative Pest Control Inc** | Menh C Vong (OPR 12977) | 2005-03-25 (`21.6 yrs`) | `1` tech (`$250K - $450K`) | `68/100` | 2798 Aiello Drive Ste D, San Jose (Santa Clara) 95111 | http://www.vanishpestcontrol.com/ | `(408) 224-7378` | `info@vanishpestcontrol.com` (`business_role`) |
| 19 | `PR 4379` | **Pinnacle Pest Control Inc** | Kenneth David Crowninshield (OPR 11881) | 2003-08-07 (`23.3 yrs`) | `9` techs (`$2.2M - $4.8M`) | `75/100` | 3499 Business Drive, Sacramento (Sacramento) 95820 | https://pinnaclepest.com/ | `(916) 237-9303` | `info@pinnaclepest.com` (`business_role`) |
| 20 | `PR 2911` | **The Noble Way Pest Control** | Miles C Noble (OPR 9410) | 1996-05-22 (`30.5 yrs`) | `5` techs (`$1.1M - $2.4M`) | `93/100` | 5757 Auburn Blvd, Sacramento (Sacramento) 95841 | https://www.thenobleway.com/ | `(916) 349-2044` | `info@thenobleway.com` (`business_role`) |

***

### 🎯 Why Existing California DCA Scrapers Fail (Our V2 Unfair Advantage)

1. **Raw California DCA / Structural Pest Control Board Records Have Zero Contact Details:**
   Official California Department of Consumer Affairs (`dca.ca.gov`) and Structural Pest Control Board (`pestboard.ca.gov`) records only provide a company name, license number (`PR`/`BR`), issue date, and street/P.O. Box address—**no website, no phone number, and no email address**.
2. **3-Tier Qualifying Operator (`OPR`) & Owner Resolution (~97–100% Fill Rate Even on P.O. Boxes):**
   - **Tier 1 (Normalized Street, Suite/Unit & P.O. Box Cross-Reference):** Links all `29,061` California SPCB records across HQ and Branch Office (`BR`) locations, normalizing `P O Box` variations and `Suite`/`Unit` suffixes.
   - **Tier 2 (County Brand-Surname & Shared-ZIP Active `OPR`/`FR` Linking):** When a `PR` company registers a separate P.O. Box, matches active `OPR`/`FR` licensees in the same County/ZIP sharing the company's founder surname or brand token.
   - **Tier 3 (Website `/about` & Direct Executive Email Prefix Extraction):** Extracts Owner / President names from crawled company pages and executive email prefixes, splitting them into `owner_first_name`, `owner_last_name`, and `owner_title`.
3. **Licensed Technician Headcount, Roster & Revenue Estimator:**
   Automatically counts all linked `OPR` (Operator), `FR` (Field Representative), and `RA` (Registered Applicator) licenses and `BR` (Branch Offices) to compute `licensed_technician_count`, `branch_office_count`, `licensed_personnel_roster`, `company_size_classification` (`"Multi-Truck Fleet (5+ Techs)"` | `"Established Team (2-4 Techs)"` | `"Single-Operator Shop"`), and `estimated_annual_revenue` (`"$150K - $300K"` up to `"$5.0M - $12.0M+"`).
4. **M\&A Succession Scoring, Independent vs. PE Roll-Up Classifier & Personalized Broker Icebreakers:**
   - Distinguishes `"Independent Founder-Owned"` targets from `"National Chain / PE Roll-Up"` branches (`Orkin`, `Terminix`, `Rentokil`, `Western Exterminator`, `Rollins`, `Clark Pest Control`, `Dewey Pest Control`, `Ecolab`, etc.).
   - Calculates `ma_retirement_score` (`0–100`), `ma_acquisition_tier`, and a ready-to-send 2-sentence `personalized_broker_icebreaker` referencing `owner_first_name`, `years_in_business`, `license_number`, and `city`.
5. **Email Deliverability Classification & Instant Webhook Delivery:**
   Prioritizes personal owner ISP inboxes (`@aol.com`, `@sbcglobal.net`, `@gmail.com`, `@earthlink.net`) and direct executive emails (`rob@tapstermite.com`, `creese@homeguard.com`) into `primary_email`, tags `email_type` (`"personal_owner_inbox"` | `"direct_executive"` | `"business_role"`) and `email_inbox_provider`, and optionally POSTs the enriched dataset directly to your **Clay / Make / n8n / GoHighLevel** `webhook_url`.

***

### 🔗 Complete California & Commercial Contractor Intelligence Suite

Pair `california-pest-control-dca-license-scraper` with our sister Apify Actors to build a complete California & national contractor M\&A, B2B SaaS, and commercial property intelligence pipeline:

| Actor | Target Licensing Board / Network | Primary M\&A & B2B Use Case |
|---|---|---|
| **`california-cslb-contractor-owners-scraper`** | **California Contractors State License Board (CSLB)** (`C-10` Electrical, `C-20` HVAC, `C-36` Plumbing, `B` General Building) | Extract CSLB Qualifying Individuals (RME/RMO), bond/workers' comp status, personnel rosters, and verified owner emails across all 42 California construction classifications. |
| **`buildzoom-contractors-permits-scraper`** | **BuildZoom Building Permits & Verified Contractors** | Enrich licensed contractors with historical **building permit counts**, **permit valuations**, **BuildZoom scores**, and verified homeowner/commercial project histories. |
| **`procore-network-contractors-scraper`** | **Procore Construction Network** | Discover commercial GCs and specialty subcontractors actively bidding on Procore projects, enriched with decision-maker emails, phones, and social profiles. |
| **`thebluebook-commercial-contractors-scraper`** | **The Blue Book Building & Construction Network** | Target commercial facilities, property managers, and CSI-division trade contractors across major US metropolitan markets. |
| **`ai-contractor-permit-lead-agent`** | **Autonomous Multi-Source Permit & Contractor Lead Agent** | End-to-end AI lead generation workflow combining municipal building permits, state license boards, and multi-channel executive contact enrichment. |

***

### 🛠️ Input Parameters

| Field | Type | Default | Description |
|---|---|---|---|
| `entity_scope` | `string` | `"companies"` | `"companies"` (`PR` & `BR`), `"individuals"` (`OPR`, `FR`, `RA`), or `"both"`. |
| `cities` | `array<string>` | `["Los Angeles", "San Diego", "Sacramento", "San Jose"]` | Filter by California city names (leave empty `[]` for all California cities). |
| `counties` | `array<string>` | `[]` | Optional filter by California county names (e.g., `["Los Angeles", "Orange", "San Diego"]`). |
| `statuses` | `array<string>` | `["Clear", "Active"]` | License statuses to include (`"Clear"`, `"Active"`, `"Delinquent"`, `"Cancelled"`). |
| `minYearsInBusiness` | `integer` | `0` | Minimum years in business calculated from `original_issue_date` (e.g., `15` or `20` for M\&A succession targets). |
| `business_name_contains` | `string` | `""` | Optional substring filter on `organization_name`, `dba_name`, or `licensee_name` (e.g., `"Termite"`). |
| `enrichWebsiteAndEmails` | `boolean` | `true` | Enable multi-worker website, phone, verified email, and social profile discovery. |
| `exclude_national_chains` | `boolean` | `false` | When `true`, excludes national chains / PE roll-ups (`Orkin`, `Terminix`, `Rentokil`, `Clark`, `Dewey`, etc.) so 100% of results are independent founder-owned businesses. |
| `min_licensed_technicians` | `integer` | `0` | Minimum linked SPCB licensed personnel (`OPR` + `FR` + `RA`) required (e.g., `2` for established teams or `5` for multi-truck fleets). |
| `expiring_within_days` | `integer` | `null` | Optional filter for licenses expiring within `N` days (ideal for insurance, bond, compliance, and continuing-education providers). |
| `only_with_verified_email` | `boolean` | `false` | When `true`, only emits records where at least one verified business or owner email was discovered. |
| `webhook_url` | `string` | `""` | Optional Clay, Make, n8n, Zapier, or GoHighLevel webhook URL to receive the final enriched dataset JSON via HTTP POST at run completion. |
| `mode` | `string` | `"snapshot"` | `"snapshot"` emits all matching records; `"changes"` emits only `"new"` or `"updated"` records compared to `state_key`. |
| `state_key` | `string` | `"CA-PEST-STATE"` | Apify Key-Value Store name used to persist record hashes across runs. |
| `max_results` | `integer` | `20` | Maximum number of records to return (`1` – `30,000`). |

***

### 📦 Sample Output Record (V2 Schema)

```json
{
  "license_number": "PR 2770",
  "license_number_raw": "2770",
  "license_type": "Company Registration (PR)",
  "specialty_code": "BR1, BR2, BR3 - Fumigation, General Pest, Termite",
  "entity_type": "Company",
  "organization_name": "Apex Pest Control Inc",
  "dba_name": null,
  "licensee_name": "Jared F Alexander (OPR 14137)",
  "owner_first_name": "Jared",
  "owner_last_name": "Alexander",
  "owner_title": "Qualifying Operator (OPR)",
  "associated_licensees": [
    {
      "license_number": "OPR 14137",
      "license_type": "Operator (OPR)",
      "name": "Jared F Alexander",
      "specialty_code": "BR2, BR3 - General Pest, Termite",
      "status": "Active"
    }
  ],
  "licensed_technician_count": 12,
  "branch_office_count": 0,
  "licensed_personnel_roster": [
    "Jared F Alexander (OPR 14137)",
    "Michael D Alexander (OPR 9582)"
  ],
  "company_size_classification": "Multi-Truck Fleet (5+ Techs)",
  "estimated_annual_revenue": "$2.2M - $4.8M",
  "is_independent_business": true,
  "ownership_classification": "Independent Founder-Owned",
  "status_raw": "Active",
  "original_issue_date": "1995-07-12",
  "years_in_business": 31.3,
  "expiration_date": null,
  "days_until_expiration": null,
  "expiring_soon": false,
  "address_of_record": {
    "street": "4541 Harlin Drive",
    "street2": null,
    "city": "Sacramento",
    "state": "CA",
    "zip": "95826",
    "county": "Sacramento",
    "country": "US"
  },
  "address_type": "Commercial Street Address",
  "city": "Sacramento",
  "county": "Sacramento",
  "state": "CA",
  "zip": "95826",
  "website": "https://www.apexpestcontrolinc.com/",
  "phone": "(916) 362-9294",
  "alternate_phones": [],
  "primary_email": "apexpest@aol.com",
  "email_type": "personal_owner_inbox",
  "email_inbox_provider": "Personal Owner ISP",
  "emails": [
    "apexpest@aol.com"
  ],
  "social_profiles": {
    "facebook": "https://www.facebook.com/ApexPestControlInc",
    "yelp": "https://www.yelp.com/biz/apex-pest-control-sacramento-2",
    "linkedin": null,
    "instagram": null,
    "youtube": null,
    "twitter": null
  },
  "website_team_signals": {
    "has_careers_page": false,
    "has_team_or_fleet_mentions": true,
    "offers_commercial_services": true,
    "offers_termite_wdo_escrow": true
  },
  "public_rating": null,
  "public_review_count": null,
  "ma_retirement_score": 93,
  "ma_acquisition_tier": "Tier 1: Prime Succession Target (25+ Yrs Independent)",
  "personalized_broker_icebreaker": "Hi Jared, congrats on 31 years operating Apex Pest Control Inc (PR 2770) in Sacramento since 1995. Given your 12-licensee SPCB team in Sacramento County, I wanted to ask if you might be open to a confidential conversation regarding route expansion or a succession valuation this year.",
  "source_id": "ca_dca_spcb:PR-2770",
  "source_url": "https://www.pestboard.ca.gov/license.shtml",
  "observed_at": "2026-11-11T04:58:45.120000+00:00",
  "change_type": "new",
  "changed_fields": [],
  "extraction_status": "complete",
  "warnings": []
}
```

# Actor input Schema

## `entity_scope` (type: `string`):

Filter by DCA license entity type: 'companies' (Company Registrations PR & Branch Offices BR), 'individuals' (Licensed Operators OPR, Field Representatives FR, Registered Applicators RA), or 'both'.

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

Optional list of California cities to filter licenses by (case-insensitive, e.g., \['Los Angeles', 'San Diego', 'Sacramento', 'San Jose']). Leave empty for all California cities.

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

Optional list of California counties to filter licenses by (case-insensitive, e.g., \['Los Angeles', 'San Diego', 'Orange', 'Sacramento', 'Santa Clara']). Leave empty for all counties.

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

License statuses to include (e.g., \['Clear', 'Active'], or include 'Inactive', 'Delinquent', 'Cancelled'). Note: DCA Public Information files report 'Clear'/'Active' licenses as 'Active', so selecting either matches active registrations.

## `minYearsInBusiness` (type: `integer`):

Minimum years since original DCA license issue date (0 for no minimum). Ideal for M\&A, private equity, and business brokers targeting established pest control operators (e.g., 10+ or 20+ years in business).

## `business_name_contains` (type: `string`):

Optional case-insensitive substring filter matching company name (organization_name), DBA, or individual licensee name.

## `enrichWebsiteAndEmails` (type: `boolean`):

When enabled (default), runs our 12-worker multi-engine discovery pipeline (Clearbit + Yahoo Search + live homepage/contact crawl with 4.0s timeout) to resolve each pest control company's official website, phone number, verified business emails, and social profiles (Facebook, Yelp, LinkedIn, Instagram).

## `mode` (type: `string`):

Select 'snapshot' to emit all matching records, or 'changes' to compare against prior runs stored in the named Key-Value Store (state_key) and emit only new or updated licenses.

## `state_key` (type: `string`):

Named Apify Key-Value Store used to persist license hashes keyed by source_id for stateful change tracking across runs.

## `max_results` (type: `integer`):

Maximum number of normalized California Structural Pest Control Board license records to output in a single run (up to 30,000).

## `exclude_national_chains` (type: `boolean`):

When enabled, excludes national pest control chains and private equity roll-ups (Orkin, Terminix, Rentokil, Western Exterminator, Rollins, Anticimex, Truly Nolen, Ecolab, Clark Pest Control, Dewey, HomeTeam, Aptive, Massey) so M\&A brokers and B2B agencies only get independent founder-owned businesses.

## `min_licensed_technicians` (type: `integer`):

Minimum number of active SPCB licensed technicians (Operators, Field Representatives, and Registered Applicators) linked to the company (0 for no minimum).

## `expiring_within_days` (type: `integer`):

Optional filter to return only licenses expiring within the specified number of days from today (e.g., 90 or 180 days for insurance, bonding, and CE providers). Leave empty for all expiration dates.

## `only_with_verified_email` (type: `boolean`):

When enabled, filters final output so only records with at least one verified email address are emitted.

## `webhook_url` (type: `string`):

Optional HTTP(S) webhook URL. When provided, the Actor automatically POSTs the enriched dataset JSON payload to your Clay, Make, n8n, Zapier, or GoHighLevel webhook at the conclusion of the run.

## Actor input object example

```json
{
  "entity_scope": "companies",
  "cities": [
    "Los Angeles",
    "San Diego",
    "Sacramento",
    "San Jose"
  ],
  "counties": [],
  "statuses": [
    "Clear",
    "Active"
  ],
  "minYearsInBusiness": 0,
  "business_name_contains": "",
  "enrichWebsiteAndEmails": true,
  "mode": "snapshot",
  "state_key": "CA-PEST-STATE",
  "max_results": 20,
  "exclude_national_chains": false,
  "min_licensed_technicians": 0,
  "only_with_verified_email": false,
  "webhook_url": ""
}
```

# Actor output Schema

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

Normalized dataset of official California Structural Pest Control Board (SPCB) company registrations (PR), branch offices (BR), and operator licenses (OPR) enriched with websites, phones, verified business emails, social profiles, and years in business

# 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 = {
    "cities": [
        "Los Angeles",
        "San Diego",
        "Sacramento",
        "San Jose"
    ],
    "counties": [],
    "statuses": [
        "Clear",
        "Active"
    ],
    "minYearsInBusiness": 0,
    "state_key": "CA-PEST-STATE",
    "max_results": 20,
    "min_licensed_technicians": 0
};

// Run the Actor and wait for it to finish
const run = await client.actor("unique_dev/california-pest-control-dca-license-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 = {
    "cities": [
        "Los Angeles",
        "San Diego",
        "Sacramento",
        "San Jose",
    ],
    "counties": [],
    "statuses": [
        "Clear",
        "Active",
    ],
    "minYearsInBusiness": 0,
    "state_key": "CA-PEST-STATE",
    "max_results": 20,
    "min_licensed_technicians": 0,
}

# Run the Actor and wait for it to finish
run = client.actor("unique_dev/california-pest-control-dca-license-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 '{
  "cities": [
    "Los Angeles",
    "San Diego",
    "Sacramento",
    "San Jose"
  ],
  "counties": [],
  "statuses": [
    "Clear",
    "Active"
  ],
  "minYearsInBusiness": 0,
  "state_key": "CA-PEST-STATE",
  "max_results": 20,
  "min_licensed_technicians": 0
}' |
apify call unique_dev/california-pest-control-dca-license-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,unique_dev/california-pest-control-dca-license-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/oQAQ3VOKDcI5jLc0l/builds/PH07H9NPOB12w7Oii/openapi.json
