# New Mexico Contractor License Lookup & Verify (NM CID) (`fried_calamaries/new-mexico-contractor-license-lookup`) Actor

Search and verify New Mexico contractors by business name, license number, city, or ZIP — license #, status, address, city/zip, and expiry — from the official NM Construction Industries Division registry.

- **URL**: https://apify.com/fried\_calamaries/new-mexico-contractor-license-lookup.md
- **Developed by:** [ByteMe](https://apify.com/fried_calamaries) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.01 / license match

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## New Mexico Contractor License Lookup & Verify (NM CID)

### Pain points

- The NM CID public lookup (PSI Exams) is one slow manual search at a time — and every search makes you pass a CAPTCHA.
- It isn't built for compliance workflows, CRM enrichment, or bulk contractor vetting.
- Checking license status and standing across many contractors by hand doesn't scale.

### What we solve

- Search the NM Construction Industries Division contractor registry by business name, license number, city, or ZIP — one call, the CAPTCHA handled for you.
- Returns the license number, status, business name, address, city/zip, and expiry date for every match.
- Turn a business name into a full structured table of contractors, ready for a CRM or spreadsheet.

### Summary

Search and verify New Mexico contractors straight from the official Construction Industries Division (CID) public registry. Enter a business name, a license number, a city, or a ZIP code and get back a structured table of matches — license number, status, business name, address, city/zip, and expiry date. The portal gates every search behind a CAPTCHA; this actor clears it for you (via an automated CAPTCHA-solving service, DeathByCaptcha), so a single search can return a whole page of contractors. Built for license verification, compliance checks, and turning a business name into a clean contractor list.

### Who it's for

- GCs and hiring managers vetting New Mexico subcontractors
- Insurance underwriters and lenders running KYC on contractors
- Compliance teams and marketplaces verifying NM CID licenses
- RevOps and BD teams building contractor lead lists

### How to use

Set the input, run the actor, and collect results from the run's dataset (export to JSON/CSV/Excel, or pull via the Apify API). Example input:

```json
{
  "businessName": "Smith",
  "maxResults": 20
}
````

See **Inputs** below for every available field.

### What you get

One row per record:

| Field | Description |
|---|---|
| `state` | Always 'NM' for this actor |
| `license_number` | NM CID contractor license number |
| `status` | License status (e.g. Active, Cancelled) |
| `license_type` | Always 'Contractor' (NM CID's contractor company category) |
| `business_name` | Licensed business/company name |
| `address` | Principal place of business street address |
| `city` | Business city |
| `zip_code` | Business ZIP code |
| `expiration_date` | License expiry date |
| `matched_by` | Which input surfaced this match: license\_number, business\_name, city, or zip\_code |
| `source_url` | The NM CID public license search portal (no direct per-record deep link is available) |

Sample:

```json
{
  "state": "NM",
  "license_number": "396966",
  "business_name": "ADAMS & SMITH, INC.",
  "person_name": null,
  "license_type": "Contractor",
  "status": "Active",
  "issue_date": null,
  "expiration_date": "12/31/2027",
  "city": "LINDON",
  "county": null,
  "address": "1380 W CENTER ST",
  "zip_code": "84042",
  "phone": null,
  "bond_amount": null,
  "bond_company": null,
  "insurance_company": null,
  "matched_by": "business_name",
  "source_url": "https://public.psiexams.com/search.jsp"
}
```

### Inputs

| Field | Required | Type | Default | Description |
|---|---|---|---|---|
| `businessName` | no | string | `"Smith"` | Search by contractor business name (partial matches allowed, e.g. 'Smith'). Combine with other fields to narrow results. |
| `licenseNumber` | no | string | — | Exact NM CID contractor license number. When set, returns that specific license. |
| `city` | no | string | — | Filter results to a business city (e.g. 'Albuquerque'). |
| `zipCode` | no | string | — | Filter results to a business ZIP code. |
| `maxResults` | no | integer | `20` | Cap on the number of license matches returned in a single run. The portal returns 20 per page and this actor reads only the first page, so this is capped at 20. |

### Pricing (Pay Per Event)

Two charges: a **per-search fee** (`search`, *$0.02/search*) that covers the live, gated lookup, plus a **per-match fee** (`license-match`, *$0.01/match*). Example: a search returning **20 license matches** ≈ **$0.22** ($0.02 search + 20 matches). A search with no matches is billed only the $0.02 search fee.

Illustrative — final prices are set at publish time. This actor solves a CAPTCHA on every search (a real per-run cost, via DeathByCaptcha), so it charges a small per-search fee plus a per-match fee. Apify platform usage (compute) is billed separately per your plan.

### Use cases

- License verification — confirm a New Mexico contractor's license number, status, and standing before hiring or onboarding.
- List building — pull every contractor matching a business name into a structured table.
- Compliance checks — pull authoritative NM CID data on demand for audits and due diligence.
- Lender / insurer due diligence — verify a contractor's standing straight from the state registry.

### Why this actor

- Straight from the official New Mexico Construction Industries Division public registry — authoritative, not a stale third-party copy.
- Clears the portal's search CAPTCHA for you (via an automated CAPTCHA-solving service) — one search can return a whole page of contractors.
- Search by business name, license number, city, or ZIP; results deduped by license #.
- Per-search fee covers the live lookup; per-match fee only for real records returned.

### Limitations & updates

Covers the New Mexico CID contractor registry only (the 'Contractor' company-license category on public.psiexams.com — not RLD's separate Boards and Commissions Division search, and not individual/personal licenses). Results reflect the live registry and change as it updates. A single run reads the first results page (20 records per page, the portal's own page size); searches matching more than 20 businesses return only the first 20 — narrow with a more specific business name, license number, city, or ZIP to see more relevant matches. Detail-only fields (county, phone, bond, insurance) are not in the list view and are returned null; there is no direct per-record deep link (the detail view is a JS-triggered action, not a URL), so source\_url points to the search portal itself.

### FAQ

**Where does the data come from?**

The official New Mexico Construction Industries Division (CID) public contractor registry, hosted at public.psiexams.com.

**What can I search by?**

A business name, an exact license number, a city, and/or a ZIP code. Combine fields to narrow results; results are deduped by license number.

**What fields do I get?**

License number, status, business name, address, city, ZIP code, and expiry date — plus a link to the official NM CID search portal.

**How am I charged?**

Two charges: a small per-search fee that covers the live, CAPTCHA-gated lookup, plus a per-match fee for each license returned. A search with no matches is billed only the per-search fee.

**Why is there a per-search fee when other lookup actors don't have one?**

The NM CID portal gates every search behind a CAPTCHA, which this actor clears using an automated CAPTCHA-solving service (DeathByCaptcha) — a real per-run cost. The per-search fee covers that; because one search can return many contractors, the per-match cost stays low.

**Is this personal data?**

It's public professional-license data (business and license records as NM CID publishes them); we add no personal/PII enrichment.

**How current is it?**

It reflects the live NM CID registry at lookup time.

### Which actor to choose

Part of the contractor-license verification suite — pick the one that fits your goal:

- **Multi-State Contractor & Trade License Lookup** — You don't know the state, or want the same contractor checked across WA, OR, TX & CT in one run.
- **California Contractor License Lookup & Verify (CSLB)** — You need a California contractor verified — by license number, business, or owner/personnel name (CSLB).
- **Florida Contractor License Lookup & Verify (DBPR)** — You're verifying a Florida contractor or tradesperson — type, status, expiration, county (DBPR).
- **South Carolina Contractor License Lookup & Verify (SC LLR)** — You're searching or verifying South Carolina contractors — by name, license, city, or classification (SC LLR).
- **North Carolina Contractor License Lookup & Verify (NCLBGC)** — You're verifying a North Carolina general contractor — classification, status, expiration (NCLBGC).
- **Nevada Contractor License Lookup & Verify (NSCB)** — You need a Nevada contractor's status, trade classifications, bond & principals (NSCB).
- **Tennessee Contractor License Lookup & Verify (TN DOCI)** — You're verifying a Tennessee contractor or tradesperson — type, status, city & county (TN DOCI).

# Actor input Schema

## `businessName` (type: `string`):

Search by contractor business name (partial matches allowed, e.g. 'Smith'). Combine with other fields to narrow results.

## `licenseNumber` (type: `string`):

Exact NM CID contractor license number. When set, returns that specific license.

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

Filter results to a business city (e.g. 'Albuquerque').

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

Filter results to a business ZIP code.

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

Cap on the number of license matches returned in a single run. The portal returns 20 per page and this actor reads only the first page, so this is capped at 20.

## Actor input object example

```json
{
  "businessName": "Smith",
  "maxResults": 20
}
```

# Actor output Schema

## `matches` (type: `string`):

The matched licenses — number, status, business name, address, city/zip, and expiry date.

# 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 = {
    "businessName": "Smith"
};

// Run the Actor and wait for it to finish
const run = await client.actor("fried_calamaries/new-mexico-contractor-license-lookup").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 = { "businessName": "Smith" }

# Run the Actor and wait for it to finish
run = client.actor("fried_calamaries/new-mexico-contractor-license-lookup").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "businessName": "Smith"
}' |
apify call fried_calamaries/new-mexico-contractor-license-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=fried_calamaries/new-mexico-contractor-license-lookup",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "New Mexico Contractor License Lookup & Verify (NM CID)",
        "description": "Search and verify New Mexico contractors by business name, license number, city, or ZIP — license #, status, address, city/zip, and expiry — from the official NM Construction Industries Division registry.",
        "version": "0.0",
        "x-build-id": "OFJYE2ufQoNTM8aGX"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/fried_calamaries~new-mexico-contractor-license-lookup/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-fried_calamaries-new-mexico-contractor-license-lookup",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/fried_calamaries~new-mexico-contractor-license-lookup/runs": {
            "post": {
                "operationId": "runs-sync-fried_calamaries-new-mexico-contractor-license-lookup",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/fried_calamaries~new-mexico-contractor-license-lookup/run-sync": {
            "post": {
                "operationId": "run-sync-fried_calamaries-new-mexico-contractor-license-lookup",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "businessName": {
                        "title": "Business name",
                        "type": "string",
                        "description": "Search by contractor business name (partial matches allowed, e.g. 'Smith'). Combine with other fields to narrow results."
                    },
                    "licenseNumber": {
                        "title": "License number",
                        "type": "string",
                        "description": "Exact NM CID contractor license number. When set, returns that specific license."
                    },
                    "city": {
                        "title": "City",
                        "type": "string",
                        "description": "Filter results to a business city (e.g. 'Albuquerque')."
                    },
                    "zipCode": {
                        "title": "ZIP code",
                        "type": "string",
                        "description": "Filter results to a business ZIP code."
                    },
                    "maxResults": {
                        "title": "Maximum results",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Cap on the number of license matches returned in a single run. The portal returns 20 per page and this actor reads only the first page, so this is capped at 20.",
                        "default": 20
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
