# Virginia DPOR Licenses - Contractors, Tradesmen & All Boards (`j0401/va-dpor-licenses`) Actor

Virginia DPOR regulant register (public data, 254k+ licenses, 132 occupations): contractors, tradesmen, architects, engineers, cosmetologists, asbestos and lead workers, appraisers. A Virginia contractor leads source - search by occupation, name, city or rank.

- **URL**: https://apify.com/j0401/va-dpor-licenses.md
- **Developed by:** [Wenhao Yang](https://apify.com/j0401) (community)
- **Categories:** Business, Lead generation, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.03 / 1,000 virginia dpor license records

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/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

## Virginia DPOR Licenses - Contractors, Tradesmen & All Boards

The Virginia Department of Professional and Occupational Regulation register:
**255,434 licenses across 132 occupations** (2026-11-09), a snapshot of DPOR's
own public regulant lists, mirrored daily. Contractors and tradesmen, plus architects, engineers,
surveyors, cosmetologists, barbers, tattooists, asbestos and lead workers,
appraisers, waterworks operators, auctioneers and more.

### Low cost

**From $0.00005 per record, down to $0.00003 at Gold.** Pay only for the records
you actually receive - the whole register stays queryable, you are never billed
for the scan behind it.

### What is in it

One row per (occupation, certificate) pair. The demand centers on the
contractors board, but the same export covers every DPOR board:

| occupation | licenses |
|---|---|
| Cosmetologist | 42,301 |
| **Class A Contractor** | **34,196** |
| Professional Engineer | 32,631 |
| **Tradesman** | **30,126** |
| Class C Contractor | 11,202 |
| Nail Technician | 10,612 |
| Class B Contractor | 8,300 |
| Architect | 7,710 |
| ...124 more occupation codes | |

Class A contractors are split across two source codes (`2701` 3,694 and
`2705a` 30,502); use `occupation="Class A Contractor"` to get both, or pick a
single `occupationCode` when you know which register you need.

Each row carries the certificate number, the individual or business name, the
license rank (`A` / `C` / `ENG` / `TRAD` / `ARC` ...), the license specialty codes
(`CBC`, `RBC`, `MELE` ...), expiration and certification dates, and the address.

### Search it

- **Occupation** - `occupationCode="2710"` (Tradesman), `"0401"` (Architect);
  or `occupation="Class A Contractor"` / `"Asbestos"` (substring label, and the
  only way to get both Class A source registers in one query).
- **Name** - `name="LANTZ"` (over individual + business name).
- **Exact id** - `certificateNumber`.
- **Where** - `city`, `state` (exact 2-letter), `zipCode` (prefix).
- **Rank / specialty** - `licenseRank="A"`, `specialty="CBC"`.

### Example inputs

**Contractors by name** - the demand anchor.

```json
{ "occupationCode": "2701", "name": "LANTZ", "maxResults": 25 }
```

**One certificate, in full** - certificate numbers are unique only within an
occupation, so pass both.

```json
{ "mode": "profile", "occupationCode": "2701", "certificateNumber": "030496" }
```

**Tradesmen in a city** - the tradesmen register.

```json
{ "occupationCode": "2710", "city": "RICHMOND", "maxResults": 50 }
```

**Asbestos & lead contractors** - a different board, same actor.

```json
{ "occupation": "Lead", "maxResults": 25 }
```

**Counts by occupation** - `mode=aggregate`.

```json
{ "mode": "aggregate", "groupBy": "occupation" }
```

### Or roll it up

`mode=aggregate` returns one count row per group - **occupation**, **license
rank**, **state** or **city**. Every group comes back; this mode is not cut off
by `maxResults`.

### Example output

**One contractor** - `mode=profile`:

```json
{
 "platform": "va-dpor",
 "occupationCode": "2701",
 "occupation": "Class A Contractor",
 "certificateNumber": "030496",
 "businessName": "FROEHLING & ROBERTSON INC",
 "licenseRank": "A",
 "licenseSpecialty": "H/H",
 "address1": "3015 DUMBARTON RD",
 "city": "RICHMOND",
 "state": "VA",
 "zipCode": "23228",
 "expirationDate": "2027-08-31",
 "certificationDate": "1987-08-31",
 "email": "...@..."
}
```

### Also: the change feed

`mode=changes` returns the diff between the last two daily snapshots - licenses
added, removed, or with any field changed (a renewal, a new specialty, an
address move). Each row carries `changeType` (added / removed / updated), and
for `updated` rows the `changedFields` list and the previous `oldValues`.

The owner-published feed carries up to 500 sampled change rows; the run log says
when it is a sample. Any other filters you pass (occupation, name, city, ...) are
applied to the feed, and `maxResults` caps how many change rows you receive.

### Notes on the data, from the source

- **One row = one (occupation, certificate) pair.** A business licensed in
  several specialties carries one row per certificate; large cosmetology
  registers dominate the raw counts, so filter by `occupationCode` when you
  want a specific board.
- **Contractors are business records** (the name is in `businessName`);
  tradesmen, cosmetologists, engineers and most others are **individual**
  records (`individualName`).
- **The source's own BOARD / OCCUPATION columns are numeric codes** - the
  readable occupation label is resolved here from DPOR's published list.
- **DPOR licenses out-of-state regulants** - roughly 24% of rows carry a
  non-VA address, so `state` is a first-class filter.
- **Contact email** - the source publishes a licensee email on about 84% of
  rows; it is returned as-is in the `email` field.
- **Freshness** - the register is re-downloaded daily into the actor's mirror;
  `refreshed` on every row is the snapshot date, and a mirror more than a week
  old fails the run rather than serving a stale register as current.

### Use it from an AI agent (MCP)

Connect any MCP client to `https://mcp.apify.com/?tools=j0401/va-dpor-licenses` to load this dataset as a single tool beside the tools you already have - same records, same per-record pricing.

# Actor input Schema

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

search = filter the register. profile = one certificate's full record (needs certificateNumber). aggregate = one row per group. changes = the feed between the last two daily snapshots. Leave blank to auto-route.

## `occupationCode` (type: `string`):

Exact DPOR occupation code. Key ones: "2701" = Class A Contractor, "2705b" = Class B Contractor, "2705c" = Class C Contractor, "2710" = Tradesman, "0401" = Architect, "0402" = Professional Engineer, "1201" = Cosmetologist, "2717" = Backflow Prevention Device Worker. 132 codes total.

## `occupation` (type: `string`):

Occupation label, substring, case-insensitive, e.g. "Contractor", "Tradesman", "Asbestos", "Esthetician".

## `certificateNumber` (type: `string`):

Exact certificate number, e.g. "030496". With this set (and no other filter), returns that licensee's full record.

## `name` (type: `string`):

Individual or business name, substring, case-insensitive (e.g. "LANTZ", "PERRONE").

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

City, substring, case-insensitive (e.g. "RICHMOND").

## `state` (type: `string`):

Two-letter state code, exact (e.g. "VA", "MD"). DPOR licenses many out-of-state regulants.

## `zipCode` (type: `string`):

ZIP code prefix (digits), e.g. "232".

## `licenseRank` (type: `string`):

License rank code, exact, e.g. "A" (Class A contractor), "C", "TRAD" (tradesman), "ENG", "ARC". Case-insensitive.

## `specialty` (type: `string`):

Specialty code, substring, e.g. "CBC" (commercial building), "RBC" (residential building), "MELE" (electrical). For tradesmen and contractors.

## `aggregate` (type: `boolean`):

When on, returns one summary record per group with count, instead of individual licenses.

## `changes` (type: `boolean`):

When on, returns the changes between the last two daily snapshots instead of records.

## `groupBy` (type: `string`):

occupation -> license counts per occupation; licenseRank -> rank mix; state / city -> geography.

## `maxResults` (type: `integer`):

Cap the number of records pushed (0 = a reasonable ceiling of 200).

## Actor input object example

```json
{
  "aggregate": false,
  "changes": false,
  "groupBy": "occupation",
  "maxResults": 200
}
```

# Actor output Schema

## `recordsUrl` (type: `string`):

Virginia DPOR license records - as JSON

## `datasetUrl` (type: `string`):

No description

## `runUrl` (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("j0401/va-dpor-licenses").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("j0401/va-dpor-licenses").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 j0401/va-dpor-licenses --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,j0401/va-dpor-licenses"
        }
    }
}
```

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/Of6yvH4doJ5iNz6Fq/builds/IcXKtV60kwH46Wt9c/openapi.json
