# New Mexico Business Entity Search & LLC Leads Scraper (`scrapebench/new-mexico-business-entity-search`) Actor

Look up New Mexico LLCs and corporations by name or record number, or export them by type, status, formation date and name keyword, with the registered agent and, on the first rows of a run, standing and officers.

- **URL**: https://apify.com/scrapebench/new-mexico-business-entity-search.md
- **Developed by:** [ScrapeBench](https://apify.com/scrapebench) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 56 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.50 / 1,000 business entity records

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

## New Mexico Business Entity Search & LLC Leads Scraper

### Pain points

- The Secretary of State's business search shows at most 100 results per search, with no next page.
- A search needs at least two letters of a name, so there is no way to list every company formed last week.
- Officers, the registered agent's address and the entity's standing are on each entity's own detail view, one company at a time.

### What we solve

- Export mode: every New Mexico entity that matches your filters (entity type, status, formation date, annual report due date, name keywords), up to 100,000 rows a run.
- Lookup mode: company names (any part of the name) or New Mexico record numbers.
- Every row: record number, name, type, status, formation date (or the date a foreign entity registered in New Mexico), home jurisdiction and registered agent name; corporations also carry their annual report due date.
- The first rows of each run also carry the registered agent's address, annual report and agent standing, officers / directors / managers by name and title, and alternate names.

### Summary

New Mexico business entity data from the New Mexico Secretary of State. Export: every New Mexico LLC, corporation, nonprofit, partnership or cooperative that matches your filters, from a copy of the Secretary of State's business list (live from the state's search when you give name keywords). Lookup: a company name or record number. Filter by entity type, status (Active, Pending Administrative Revocation, Revoked ...), formation date, annual report due date and name keywords. Every row carries the record number, name, type, status, formation date, home jurisdiction and registered agent; the first rows of a run add the agent's address, standings, officers by name and title, and alternate names. Built for KYB and due-diligence checks on New Mexico LLCs and corporations, for registered agents and compliance services, and for agencies prospecting newly formed companies. No business address, email or phone numbers: the state does not publish them. Pay only per entity returned.

### Who it's for

- Agencies and SMB vendors (web design, bookkeeping, insurance, banking) prospecting newly formed New Mexico companies
- Registered agents, CPAs and compliance services tracking New Mexico entities and their standing
- Fintech, compliance and KYB teams checking that a New Mexico company exists, its status, agent and officers
- Suppliers and trade marketers building New Mexico lists by name keyword (construction, roofing, dental ...)

### How to use

This actor does two jobs. Run it, then collect results from the run's dataset (export to JSON/CSV/Excel, or pull via the Apify API).

**Get a list (export):** no names, just filters; returns the whole matching list.

```json
{
  "mode": "export",
  "entityTypes": [
    "LLC"
  ],
  "statuses": [
    "Active"
  ],
  "formedAfter": "2026-10-01",
  "maxResults": 100
}
```

**Check specific firms (lookup):** put company names or New Mexico record numbers in `mode`, `queries`; **Inputs** below says how each is matched.

```json
{
  "mode": "lookup",
  "queries": [
    "A Barker Consulting",
    "7707940"
  ],
  "maxResults": 10
}
```

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

### What you get

One row per record:

| Field | Description |
|---|---|
| `state` | NM |
| `entity_id` | New Mexico record number (e.g. 0008021621) |
| `entity_name` | Registered name, as the state publishes it |
| `entity_type / entity_subtype` | Type as the state gives it (Domestic Limited Liability Company / Domestic LLC) |
| `status` | Active, Pending Initial Report, Pending Administrative Revocation, Revoked, Dissolved ... |
| `formation_date` | Formation date for an entity formed in New Mexico |
| `registered_in_state_since` | For an entity formed elsewhere: the date it registered in New Mexico |
| `years_in_business` | Whole years since formation, active entities only |
| `jurisdiction` | State or country of formation |
| `annual_report_due` | Annual report due date (corporations; New Mexico LLCs file none) |
| `agent_name` | Registered agent |
| `agent_street / agent_city / agent_state / agent_zip` | Registered agent's address (detail rows) |
| `standing_annual_report / standing_registered_agent` | Good / Not Good, as the state gives it (detail rows) |
| `officers` | Officers, directors, members / managers, organizers: name and title only (detail rows) |
| `alternate_names` | Other names the entity is registered under (detail rows) |
| `source_url` | The Secretary of State's business search page |

Sample:

```json
{
  "source_url": "https://enterprise.sos.nm.gov/search/business#658550",
  "state": "NM",
  "entity_id": "0008021621",
  "entity_name": "A Barker Consulting, LLC",
  "entity_type": "Foreign Limited Liability Company",
  "entity_type_code": "Foreign Limited Liability Company",
  "entity_subtype": "Foreign LLC",
  "status": "Active",
  "formation_date": null,
  "registered_in_state_since": "2025-04-18",
  "years_in_business": null,
  "jurisdiction": "OKLAHOMA",
  "principal_street": null,
  "principal_city": null,
  "principal_state": null,
  "principal_zip": null,
  "agent_name": "NORTHWEST REGISTERED AGENT LLC",
  "agent_street": "1209 Mountain Road PL NE, STE N",
  "agent_city": "Albuquerque",
  "agent_state": "NM",
  "agent_zip": "87110",
  "annual_report_due": null,
  "officers": [
    {
      "name": "A Barker Consulting",
      "title": "Manager"
    }
  ],
  "standing_annual_report": "Good",
  "standing_registered_agent": "Good",
  "alternate_names": [
    "Barker Consulting, LLC"
  ]
}
```

### Inputs

| Field | Required | Type | Default | Description |
|---|---|---|---|---|
| `mode` | no | string | `"export"` | export: every New Mexico company that matches the filters below, from a copy of the Secretary of State's business list (live from the state's search when you give name keywords). lookup: find the companies you name in `Business names or record numbers`. auto: lookup when you give names, export otherwise. |
| `queries` | no | array | `[]` | Lookup mode: one company name (any part of the name, e.g. "Sandia Roofing") or New Mexico record number (e.g. 7707940 or LPD2000020901) per line. Filters below still apply (e.g. only Active). |
| `query` | no | string | — | Same as the list above, one value. Both are combined if you fill both. |
| `entityTypes` | no | array | `["LLC"]` | Keep only these types: LLC, Corporation, Nonprofit, Limited Partnership, LLP, General Partnership, Cooperative, Trust. A New Mexico type label (e.g. Domestic Limited Liability Company) also works. |
| `statuses` | no | array | `["Active"]` | Keep only these statuses: Active, Pending Initial Report, Pending Administrative Revocation, Administrative Revocation, Revoked, Revoked Final, Suspension, Dissolved, Cancelled, Expired, Forfeited, Withdrawal, Merged, Converted, Future Effective, Reserved, Registered, Name Registered ... (as the Secretary of State words them). |
| `formedAfter` | no | string | `"2026-10-06"` | Newly formed companies: only entities formed in New Mexico (or registered here, if formed elsewhere) on or after this date, YYYY-MM-DD. |
| `formedBefore` | no | string | — | Only entities formed on or before this date, YYYY-MM-DD. |
| `nameKeywords` | no | array | — | Keep only businesses whose name contains one of these words, e.g. construction, roofing, dental. With keywords, an export searches the state's live register (at least 2 letters or digits per keyword). |
| `minYearsInBusiness` | no | integer | — | Established businesses: active entities formed at least this many years ago. |
| `maxYearsInBusiness` | no | integer | — | Active entities formed at most this many years ago. |
| `annualReportDueAfter` | no | string | — | Only entities whose annual report is due on or after this date, YYYY-MM-DD (corporations; New Mexico LLCs file none). |
| `annualReportDueBefore` | no | string | — | Corporations about to owe their annual report: due on or before this date, YYYY-MM-DD. |
| `includeContacts` | no | boolean | `false` | Add each business's phone number and website where available, looked up by business name and location under a strict match rule (a business that cannot be confirmed gets none). Charged as a separate 'Contact details found' event per row that gets one; a row without a contact costs only the row price. The address stays the one the state publishes. |
| `maxResults` | no | integer | `100` | Cap on rows returned (bounds cost). Up to 100,000. |
| `proxyConfiguration` | no | object | `{"useApifyProxy": false}` | Optional; usually not needed. Lookups and keyword exports read the state's search; other exports read a copy of the state's list. |

### Pricing (Pay Per Event)

You pay per result (`dataset-item`) — **no charge for empty runs**. Example: **1000 entity records** at *$0.0025/result* ≈ **$2.50**.

Notices (unknown filter, no match, source unavailable, rows without details) are free. With 'Include contact details' on, each row that gets a business phone or website is also charged a 'Contact details found' event ($0.005); rows without one cost only the row.

### Use cases

- KYB / due diligence: look up a company by name or record number and read its status, standing, registered agent and officers.
- New-business leads: every LLC formed in New Mexico since a date, with its registered agent.
- Annual report due: New Mexico corporations whose report is due before a date, or already in Pending Administrative Revocation.
- Contractor and trade lists: active New Mexico companies whose name contains construction, roofing or electric, read live.
- Who is behind it: officers, directors, managers and organizers with name and title, on the first rows of a run.

### Why this actor

- Past the search's 100-result ceiling: exports read a copy of the whole list, keyword exports split the search by date until every match is in.
- Officers, agent address and standings joined onto the first rows of every run, no clicking through detail views.
- Status and type kept as the state words them; foreign entities carry their home state and New Mexico registration date.
- Pay per entity; notices are free.

### Limitations & updates

New Mexico only (for other states see the nationwide US Business Entity Search). Exports without name keywords read a copy of the Secretary of State's business list, so a company formed after the copy was taken is not in it yet; a copy older than 45 days comes with a free note. Officers, agent address, standings and alternate names come on the first 20 or so rows of a run. No business address, email or phone numbers (the state does not publish them). A lookup returns at most the state search's 100 matches per name. Formation date is given for entities formed in New Mexico; a foreign entity carries the date it registered in New Mexico instead.

### FAQ

**Where does the data come from?**

The New Mexico Secretary of State's public business search. Lookups and name-keyword exports read it live; other exports read a copy of the state's business list. A copy older than 45 days comes with a free note in the run.

**Which rows carry officers and the agent's address?**

The first 20 or so rows of each run: the state publishes them only on each entity's detail view, read one at a time. Later rows carry the list fields and a free note says how many came without details. Narrow the query to get full rows.

**Can I search by city?**

No. The state publishes no business address, only the registered agent's; a city filter answers a free note.

**How does name lookup match?**

Any part of the name, as the state's own search does (case, spaces and punctuation ignored, alternate names included). A record number matches exactly.

**Why is the annual report due date empty for LLCs?**

New Mexico LLCs file no annual report; corporations do, and their rows carry the due date.

**How am I charged?**

One event per business entity returned. Notices are free.

**Can I get the business's phone number and website?**

Yes: turn on 'Include contact details'. Each business is looked up by its name and location, and a phone number and website are added only when the match is certain; a business that cannot be confirmed stays without one, and you are not charged the contact event for it. The address on the row is always the one the state publishes.

### Guides & use cases

Written up on **[scrapebench.dev](https://scrapebench.dev)** — the bench that runs and verifies this actor against the live source every night:

- **How-to:** [How to run New Mexico Business Entity Search & LLC Leads Scraper](https://scrapebench.dev/guides/how-to-new-mexico-business-entity-search/)
- **Use case:** [New Mexico New LLC Leads: Every LLC Formed Since a Date](https://scrapebench.dev/use-cases/new-mexico-new-llc-leads/)

More actors, coverage and nightly verification results: **[scrapebench.dev](https://scrapebench.dev)**

### Works with AI assistants (MCP)

Callable as an MCP tool, so Claude, Cursor, VS Code Copilot and other MCP clients can run it directly. Grab the config from the [MCP tab](https://apify.com/scrapebench/new-mexico-business-entity-search/api/mcp) on this page — Apify hosts the server and keeps that snippet current, and OAuth signs you in on first connect, so no API token goes in your config file.

Then just ask:

> "List active New Mexico LLCs formed since October 1, 2026, with their registered agent."

That is mode export, entity types LLC, statuses Active, formed on or after 2026-10-01. Keep maxResults small on a first call. Runs started this way bill exactly like any other run.

### Use it from an AI agent (Agent Skill)

The free [`scrapebench-business-lookup`](https://github.com/scrapebenchhq/apify-actor-skills/tree/main/scrapebench-business-lookup) skill teaches Claude Code and other agents to find the right scrapebench Actor for the task and run it. Copy the folder into `~/.claude/skills/`, set `APIFY_TOKEN`, and ask in plain words.

### Data & lawful use

This actor collects publicly available information that the New Mexico Secretary of State (Business Services Division) publishes for public
lookup — licence records, business listings and the contact details professionals list there.
Some of it identifies individuals (sole proprietors, licence holders, agents), so treat any
names, phone numbers and emails in your results as personal data.

When you run this actor, you decide what is collected and what it is used for, so you are the
controller of that data and we act only as your processor (Apify Standard Actor Contract).
You need a lawful basis for your use, must honour opt-out and deletion requests, and must
follow the marketing rules that apply to you (CAN-SPAM, TCPA, GDPR, CCPA and similar).
Don't use the output for unsolicited bulk messaging, for screening covered by the FCRA, or
for anything the source's own terms forbid.

Your results are stored in your own Apify account. We don't keep a copy of your results and
don't sell or share them.

### Disclaimer

This is an independent tool. It is not affiliated with, endorsed by or sponsored by
the New Mexico Secretary of State (Business Services Division). Names and marks are used only to describe the data source. Records are
provided as published by the source and may be out of date or incomplete. For anything
consequential (hiring, a permit, a legal decision), confirm the record with the issuing
agency. You are responsible for making sure your use complies with applicable law and the
source's terms.

### Need help?

Open an issue on this actor's **Issues** tab and we'll respond there. Bug reports, missing
fields and feature requests are all welcome. Guides and examples: [scrapebench.dev](https://scrapebench.dev).

If you are a person named in this data and want your record removed from our copy, email
apify-help@scrapebench.dev; the source agency remains the official record.

Your run may be used to improve our services. If something looks off, or you want this actor to fit your use better, please share your run data with us: [Apify Console → Settings → Security → Share run data with developers](https://console.apify.com/settings/security). It lets us see exactly what went wrong and keep improving the actor.

If this actor saved you time, a short review on its Store page helps other buyers find it.

# Actor input Schema

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

export: every New Mexico company that matches the filters below, from a copy of the Secretary of State's business list (live from the state's search when you give name keywords). lookup: find the companies you name in `Business names or record numbers`. auto: lookup when you give names, export otherwise.

## `queries` (type: `array`):

Lookup mode: one company name (any part of the name, e.g. "Sandia Roofing") or New Mexico record number (e.g. 7707940 or LPD2000020901) per line. Filters below still apply (e.g. only Active).

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

Same as the list above, one value. Both are combined if you fill both.

## `entityTypes` (type: `array`):

Keep only these types: LLC, Corporation, Nonprofit, Limited Partnership, LLP, General Partnership, Cooperative, Trust. A New Mexico type label (e.g. Domestic Limited Liability Company) also works.

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

Keep only these statuses: Active, Pending Initial Report, Pending Administrative Revocation, Administrative Revocation, Revoked, Revoked Final, Suspension, Dissolved, Cancelled, Expired, Forfeited, Withdrawal, Merged, Converted, Future Effective, Reserved, Registered, Name Registered ... (as the Secretary of State words them).

## `formedAfter` (type: `string`):

Newly formed companies: only entities formed in New Mexico (or registered here, if formed elsewhere) on or after this date, YYYY-MM-DD.

## `formedBefore` (type: `string`):

Only entities formed on or before this date, YYYY-MM-DD.

## `nameKeywords` (type: `array`):

Keep only businesses whose name contains one of these words, e.g. construction, roofing, dental. With keywords, an export searches the state's live register (at least 2 letters or digits per keyword).

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

Established businesses: active entities formed at least this many years ago.

## `maxYearsInBusiness` (type: `integer`):

Active entities formed at most this many years ago.

## `annualReportDueAfter` (type: `string`):

Only entities whose annual report is due on or after this date, YYYY-MM-DD (corporations; New Mexico LLCs file none).

## `annualReportDueBefore` (type: `string`):

Corporations about to owe their annual report: due on or before this date, YYYY-MM-DD.

## `includeContacts` (type: `boolean`):

Add each business's phone number and website where available, looked up by business name and location under a strict match rule (a business that cannot be confirmed gets none). Charged as a separate 'Contact details found' event per row that gets one; a row without a contact costs only the row price. The address stays the one the state publishes.

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

Cap on rows returned (bounds cost). Up to 100,000.

## `proxyConfiguration` (type: `object`):

Optional; usually not needed. Lookups and keyword exports read the state's search; other exports read a copy of the state's list.

## Actor input object example

```json
{
  "mode": "export",
  "queries": [],
  "entityTypes": [
    "LLC"
  ],
  "statuses": [
    "Active"
  ],
  "formedAfter": "2026-10-06",
  "includeContacts": false,
  "maxResults": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Business-entity records, one row per entity; notices are free.

# 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 = {
    "mode": "export",
    "entityTypes": [
        "LLC"
    ],
    "statuses": [
        "Active"
    ],
    "formedAfter": "2026-10-06",
    "maxResults": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapebench/new-mexico-business-entity-search").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 = {
    "mode": "export",
    "entityTypes": ["LLC"],
    "statuses": ["Active"],
    "formedAfter": "2026-10-06",
    "maxResults": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("scrapebench/new-mexico-business-entity-search").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 '{
  "mode": "export",
  "entityTypes": [
    "LLC"
  ],
  "statuses": [
    "Active"
  ],
  "formedAfter": "2026-10-06",
  "maxResults": 100
}' |
apify call scrapebench/new-mexico-business-entity-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scrapebench/new-mexico-business-entity-search"
        }
    }
}
```

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/4Pdla4cPDLE8qnHWi/builds/lZHpeihDveABOB2Ib/openapi.json
