# Maryland MHIC Home Improvement Contractor License Scraper (`scrapers_lat/maryland-mhic-contractors-scraper`) Actor

Search Maryland MHIC home improvement contractor & salesperson licenses. Get name, business/trade name, license & registration number, category, status, expiration and address. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/scrapers\_lat/maryland-mhic-contractors-scraper.md
- **Developed by:** [Scrapers Lat](https://apify.com/scrapers_lat) (community)
- **Categories:** Lead generation, Other
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $12.75 / 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.
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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

[![Maryland MHIC Home Improvement Contractor License Scraper](https://scrapers.lat/banners/maryland-mhic-contractors-scraper.png)](https://console.apify.com/actors/lz4u7PRB9q0x9brgW/input)

## Maryland MHIC Home Improvement Contractor License Scraper

Here is one real result, with every field the actor returns:

```json
{
  "name": "ALEX JOSUE AMBROCIO AMBROCIO",
  "businessName": "A & J RENOVATION LLC",
  "licenseNumber": "05-159800",
  "registrationNumber": "159644",
  "suffix": null,
  "category": "CONTRACTOR/SALESMAN",
  "status": "Active",
  "expiration": "2028-08-11",
  "addressStreet": "7912 LANSDALE RD",
  "city": "BALTIMORE",
  "state": "MD",
  "zip": "21224",
  "searchType": "city",
  "searchQuery": "BALTIMORE",
  "source": "Maryland MHIC (Home Improvement Commission)",
  "observedAt": "2026-08-10T14:37:48.923Z"
}
```

The most complete Maryland MHIC license scraper available. It returns every field the Home Improvement Commission license record exposes, including business name, registration and license numbers, category, status, expiration and full business address, and lets you search by city, contractor last name, business name, registration number or salesperson last name in one run.

**📥 [Input](https://apify.com/scrapers_lat/maryland-mhic-contractors-scraper/input-schema) · 📤 [Output](https://apify.com/scrapers_lat/maryland-mhic-contractors-scraper/output-schema) · 💰 [Pricing](https://apify.com/scrapers_lat/maryland-mhic-contractors-scraper/pricing) · ▶️ [Examples](https://apify.com/scrapers_lat/maryland-mhic-contractors-scraper/examples)**

![Apify](https://img.shields.io/badge/Platform-Apify-1CE1CE?logo=apify\&logoColor=white)
![Coverage](https://img.shields.io/badge/Coverage-Maryland-blue)
![Output](https://img.shields.io/badge/Output-JSON%20%7C%20CSV%20%7C%20Excel-orange)
![Billing](https://img.shields.io/badge/Billing-Pay%20per%20result-brightgreen)

### Table of contents

- [What it does](#what-it-does)
- [Quickstart](#quickstart)
- [Input reference](#input-reference)
- [Output reference](#output-reference)
- [Example output record](#example-output-record)
- [Run via API and CLI](#run-via-api-and-cli)
- [Fetch results](#fetch-results)
- [Billing and limits](#billing-and-limits)
- [FAQ and troubleshooting](#faq-and-troubleshooting)

### What it does

The actor queries the Maryland Home Improvement Commission (MHIC) license database, runs each search you pass (by city, contractor last name, business name, registration number, or salesperson last name), and writes one normalized record per active licensee to the run's dataset. Each record carries the licensee name, business name, registration and license numbers, category, status, expiration date and full business address. Multiple searches run in the same run under a single shared `maxResults` cap, and missing source values are returned as `null`.

### Quickstart

Open the actor, paste this into the input, and press Run. It returns active MHIC-licensed contractors located in Baltimore.

```json
{
  "cities": ["BALTIMORE"],
  "maxResults": 10
}
```

Combine or swap in `lastNames`, `businessNames`, `registrationNumbers`, or `salespersonLastNames` to run other searches in the same run. Use `filterCity` to narrow name-based searches to one city.

### Input reference

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `cities` | string\[] | no | `["BALTIMORE"]` | Return all active MHIC licensees whose business is located in these Maryland cities. One run does every city. |
| `lastNames` | string\[] | no | (none) | Search active licensed contractors by personal last name, for example `SMITH`. |
| `businessNames` | string\[] | no | (none) | Search active licensees by business or trade name (partial matches allowed), for example `CONSTRUCTION`, `ROOFING`. |
| `registrationNumbers` | string\[] | no | (none) | Look up specific licensees by MHIC registration number. Do not include the dash suffix. |
| `salespersonLastNames` | string\[] | no | (none) | Search active licensed salespersons by last name. |
| `filterCity` | string | no | (empty) | Optional city to narrow the last-name, business-name and salesperson searches. Empty searches statewide. |
| `maxResults` | integer | no | `50` | Maximum licensee records to return across all searches. Free Apify plans are capped at 10 per run. |

### Output reference

One dataset item per licensee. Types: `string` or `null` when the source value is absent.

| Field | Type | Description |
|---|---|---|
| `name` | string | Licensee personal name. |
| `businessName` | string | Business or trade name. |
| `licenseNumber` | string | MHIC license number (with prefix), for example `05-159800`. |
| `registrationNumber` | string | MHIC registration number. |
| `suffix` | string | License suffix, or `null`. |
| `category` | string | License category, for example `CONTRACTOR/SALESMAN`. |
| `status` | string | License status, for example `Active`. |
| `expiration` | string | License expiration date (`YYYY-MM-DD`). |
| `addressStreet` | string | Business street address. |
| `city` | string | Business city. |
| `state` | string | Business state (`MD`). |
| `zip` | string | Business ZIP code. |
| `searchType` | string | Which search produced the record: `city`, `lastName`, `businessName`, `registrationNumber`, or `salesperson`. |
| `searchQuery` | string | The search term that matched this record. |
| `source` | string | Always `Maryland MHIC (Home Improvement Commission)`. |
| `observedAt` | string | ISO 8601 timestamp of when the record was collected. |

On a failed run, a single item with a populated `error` field is written instead, and it is not charged.

### Example output record

Real record from a live run (input `{"cities": ["BALTIMORE"], "maxResults": 10}`):

```json
{
  "name": "ALEX JOSUE AMBROCIO AMBROCIO",
  "businessName": "A & J RENOVATION LLC",
  "licenseNumber": "05-159800",
  "registrationNumber": "159644",
  "suffix": null,
  "category": "CONTRACTOR/SALESMAN",
  "status": "Active",
  "expiration": "2028-08-11",
  "addressStreet": "7912 LANSDALE RD",
  "city": "BALTIMORE",
  "state": "MD",
  "zip": "21224",
  "searchType": "city",
  "searchQuery": "BALTIMORE",
  "source": "Maryland MHIC (Home Improvement Commission)",
  "observedAt": "2026-08-10T14:37:48.923Z"
}
```

### Run via API and CLI

Start a run and wait for it to finish, then read the dataset. Replace `<TOKEN>` with your Apify API token.

Run synchronously and get dataset items in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~maryland-mhic-contractors-scraper/run-sync-get-dataset-items?token=<TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"cities":["ROCKVILLE"],"maxResults":25}'
```

Start a run asynchronously:

```bash
curl -X POST "https://api.apify.com/v2/acts/scrapers_lat~maryland-mhic-contractors-scraper/runs?token=<TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"businessNames":["ROOFING"],"filterCity":"BALTIMORE","maxResults":100}'
```

Apify CLI:

```bash
apify call scrapers_lat/maryland-mhic-contractors-scraper \
  --input '{"registrationNumbers":["159644"]}'
```

### Fetch results

Every run writes to a dataset. Fetch items as JSON, CSV, or Excel by changing `format`:

```bash
## JSON
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=json"

## CSV
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&clean=true&format=csv"

## Paginate large datasets
curl "https://api.apify.com/v2/datasets/<DATASET_ID>/items?token=<TOKEN>&offset=1000&limit=1000"
```

`<DATASET_ID>` is returned as `defaultDatasetId` in the run object. Use `offset` and `limit` to page through large result sets. `clean=true` drops empty and internal fields.

### Billing and limits

- **Pay per result.** You are charged per record returned (`result` event). See the [pricing tab](https://apify.com/scrapers_lat/maryland-mhic-contractors-scraper/pricing) for the current per-result price.
- **No charge on failure.** If a run errors, the actor writes a single item with a populated `error` field and does not charge for it. Empty runs cost nothing.
- **Spend cap respected.** Set `maxTotalChargeUsd` on the run; once reached, the actor stops emitting and charging further billable results.
- **Free Apify plans** are capped at 10 records per run. Upgrade for higher `maxResults`.

### FAQ and troubleshooting

**A run returned 0 records. Why?**
The search matched no active licensees. Widen the term (a partial business name matches more), remove `filterCity`, or try another city. Zero-result runs are not charged.

**Can I run several searches at once?**
Yes. Fill any combination of `cities`, `lastNames`, `businessNames`, `registrationNumbers` and `salespersonLastNames`; all run in the same run under one shared `maxResults` cap.

**How do I look up one specific license?**
Pass its number in `registrationNumbers` (without the dash suffix).

**Does it return inactive or expired licenses?**
The source searches surface active licensees. The `status` and `expiration` fields let you confirm each record.

**Is this an official Maryland MHIC tool?**
No. This actor is independent and has no affiliation with the Maryland Home Improvement Commission. It reads only data that is publicly available through the MHIC license lookup.

### Related scrapers

- [California CSLB Scraper](https://apify.com/scrapers_lat/california-cslb-scraper): California contractor state license board records.
- [Alabama LBGC Contractors Scraper](https://apify.com/scrapers_lat/alabama-lbgc-contractors-scraper): Alabama licensed general contractors.
- [Louisiana LSLBC Contractors Scraper](https://apify.com/scrapers_lat/louisiana-lslbc-contractors-scraper): Louisiana licensed contractors.
- [Florida DBPR Scraper](https://apify.com/scrapers_lat/florida-dbpr-scraper): Florida professional and business licenses.
- [Chicago Building Permits Scraper](https://apify.com/scrapers_lat/chicago-building-permits-scraper): Chicago building permit records.
- [ASC Appraisers Scraper](https://apify.com/scrapers_lat/asc-appraisers-scraper): US appraiser license records.

### More scrapers at scrapers.lat

Built and maintained by [scrapers.lat](https://scrapers.lat), where we publish scrapers for US and Latin American public platforms: company registries, government data, finance, e-commerce and more. Browse the catalog or request a custom scraper at [scrapers.lat](https://scrapers.lat).

***

> Independent tool, not affiliated with the Maryland Home Improvement Commission. Accesses only publicly available data.
>
> </content>

# Actor input Schema

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

Return all active MHIC-licensed contractors whose business is located in these Maryland cities (business location search). One run does every city.

## `lastNames` (type: `array`):

Search active licensed home improvement contractors by personal last name.

## `businessNames` (type: `array`):

Search active licensees by business or trade name (partial matches allowed, e.g. CONSTRUCTION, ROOFING).

## `registrationNumbers` (type: `array`):

Look up specific licensees by MHIC registration number (also called license number). Do not include the dash suffix.

## `salespersonLastNames` (type: `array`):

Search active licensed home improvement salespersons by last name.

## `filterCity` (type: `string`):

Optional city to narrow the Contractor Last Name, Business Name and Salesperson searches. Leave blank to search statewide.

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

Maximum number of licensee records to return across all searches in this run.

## Actor input object example

```json
{
  "cities": [
    "BALTIMORE",
    "ROCKVILLE"
  ],
  "lastNames": [
    "SMITH"
  ],
  "businessNames": [
    "CONSTRUCTION"
  ],
  "registrationNumbers": [
    "99999"
  ],
  "salespersonLastNames": [
    "SMITH"
  ],
  "maxResults": 50
}
```

# Actor output Schema

## `results` (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 = {
    "cities": [
        "BALTIMORE"
    ],
    "maxResults": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapers_lat/maryland-mhic-contractors-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": ["BALTIMORE"],
    "maxResults": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapers_lat/maryland-mhic-contractors-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": [
    "BALTIMORE"
  ],
  "maxResults": 50
}' |
apify call scrapers_lat/maryland-mhic-contractors-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapers_lat/maryland-mhic-contractors-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/lz4u7PRB9q0x9brgW/builds/2bShMDUFYiiDstUGH/openapi.json
