# Secretary of State Business Search: US Companies (`s-r/us-business-entities`) Actor

Search official US state business datasets by company name or filing ID. Export companies, registered agents and published officers with per-state coverage and clear source scope.

- **URL**: https://apify.com/s-r/us-business-entities.md
- **Developed by:** [SR](https://apify.com/s-r) (community)
- **Categories:** 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

$3.00 / 1,000 company 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

## Secretary of State Business Search

Secretary of state business search across official US state datasets. Find companies by name or filing ID, inspect published registration details, and export companies and officers as separate records.

Use the results for company discovery, lead qualification, supplier research and due diligence preparation. Each record identifies its register jurisdiction and official dataset. Coverage accompanies the output, so a result from an active-only dataset can be distinguished from a search across all published statuses.

### Secretary of state business search coverage

The configured jurisdictions are New York, Colorado, Connecticut, Oregon, Pennsylvania, Texas and the District of Columbia. The coverage object reports the actual outcome for every requested jurisdiction. A jurisdiction can be searched, pending, failed or not covered. Always inspect this object before interpreting an empty result.

New York combines an active corporation dataset with historical filings and status history. Active companies have richer details; inactive records have limited fields. Colorado publishes entities across statuses and registered agents, but no officers in this dataset. Connecticut publishes company records, agents and principals in separate datasets, which are joined using their official identifiers.

Oregon publishes active businesses with associated names. Assumed-business-name registrations are excluded because they do not identify a separate legal entity. This dataset supplies business addresses and registered agents for the covered Oregon entities, with no officer rows. Pennsylvania publishes registered businesses and parties. Neither source provides a general history of every entity that ever existed. Texas uses the Comptroller's active franchise taxpayer dataset, rather than the complete Secretary of State register. Its coverage includes taxpayers without an SOS number, and it does not publish agents or officers here. DC provides corporate registrations and a separate published beneficial-owner layer.

California, Florida, Delaware and other jurisdictions outside this set are not covered. When requested alongside a supported state, they receive an explicit coverage entry. A request containing only unsupported jurisdictions returns an input error.

### Input

Provide `company_name`, `company_names`, or `filing_ids`. Names must have at least two characters. A name list can contain up to fifty values. Each name is searched in every selected jurisdiction, and duplicate identical inputs are removed.

For a measured Colorado example, use:

```json
{"filing_ids":["CO:19921028206"]}
```

This identifies STARBUCKS CORPORATION in the Colorado register. For its New York registration, use `NY:1701167`. Connecticut's account number is `CT:0287916`, and Pennsylvania's filing number is `PA:0002570568`. Identifiers are strings: retain leading zeros.

Set `states` to USPS codes, including `DC` for the District of Columbia. Omit it to search configured jurisdictions; an input containing only prefixed filing IDs infers their states. `match_mode` accepts `contains`, `starts`, or `exact`, with case-insensitive matching. `max_results_per_state` defaults to 25 and allows up to 1000 companies per search term and state. `include_officers` defaults to true. Setting it to false omits officer rows while retaining registered agents on company rows.

Compatibility names `companyName`, `companyNames`, `matchMode` and `maxResultsPerState` are accepted. `exactMatch: true` selects exact matching when no explicit matching mode is supplied.

### Output

The dataset contains `company` and `officer` rows. Both carry `record_type`, `_type`, `row_id`, `source`, `fetched_at`, `jurisdiction`, `registry_id` and `name`. Join officers to companies using `jurisdiction` and `registry_id`. A company uses `company_unit: 1`; an officer uses zero.

Company fields include normalized status, the original status where available, legal form, incorporation date, dissolution date, business address and registered agent. Texas SOS numbers and published NAICS classifications remain separate fields. Codes without a verified official translation remain in their published form.

Officers contain a name, normalized role, original role and company name. Multiple roles create separate rows. New York's published CEO becomes a chief executive officer row; Connecticut's combined Officer;Director designation becomes two rows. Published DC beneficial owners use the role `beneficial owner`. No officer mailing address, residence, email or phone is included.

The output summary contains coverage for each requested state, including dataset scope, publication of agents and officers, cumulative company results and any source error code. Warnings identify incomplete enrichment. Company rows precede officer rows within a response. `row_id` provides stable identities for deduplication.

### Example output

A real company row for the Colorado filing above, as delivered (abridged to the main fields):

```json
{
  "record_type": "company",
  "row_id": "CO:19921028206:company",
  "jurisdiction": "US-CO",
  "registry_id": "19921028206",
  "name": "STARBUCKS CORPORATION",
  "status": "active",
  "status_raw": "Good Standing",
  "legal_form": "FPC",
  "incorporation_date": "1992-03-18",
  "formation_jurisdiction": "WA",
  "registered_agent": {"name": "CORPORATION SERVICE COMPANY"},
  "source_dataset": "data.colorado.gov/4ykn-tg5h",
  "record_scope": "all_statuses"
}
```

### Use cases

- **KYB and onboarding:** confirm that a counterparty is registered, check its status and registered agent, and keep the source dataset with the record.
- **Due diligence:** compare registrations of the same company across several states and see which published officers or beneficial owners each register lists.
- **Lead generation:** build lists of newly searchable companies by name or filing ID, with legal form, address and agent.
- **Supplier and vendor checks:** run up to fifty names in one search and review the coverage object per state.

### Comparison with other business search tools

Many US business entity tools advertise all fifty states. This actor covers fewer jurisdictions and says exactly which ones, so every empty result can be read against what was really searched. Each row names its official dataset and whether it covers all statuses or active entities only. Companies and officers are separate rows with a shared registry ID, which makes joins in a spreadsheet or database straightforward. Pricing is per delivered company; officer rows and empty searches are free.

### Dates and interpretation

For a foreign company, `incorporation_date` can mean registration in the searched state, rather than formation in its original jurisdiction. Colorado's STARBUCKS CORPORATION registration is dated 1992-03-18; this does not claim that the company was founded then. Check `formation_jurisdiction`, legal form and the source record when making an incorporation assessment.

A published registration status is not a certificate of good standing or a statement about solvency. Source refresh schedules vary. New York's active dataset can contain an older CEO name; its Starbucks record names Kevin R. Johnson. The observation timestamp describes retrieval, rather than a guarantee that each source field was updated then.

### Pricing

Only delivered company rows produce a company event. Officer rows do not add a separate company event. Searches without matching companies produce no company events. See the actor's current Pricing tab for the price charged by Apify.

Non-paying users receive at most ten dataset rows per run. Companies are ordered before officers within each response, so this limit can omit some officers. The limit counts delivered rows rather than a promise of ten companies with every associated person. Larger requests continue automatically through bounded pages when run on Apify.

### FAQ

#### Does an empty result prove a business does not exist?

No. Read coverage and source scope. An active-only dataset cannot establish historical nonexistence, and an unsupported or failed jurisdiction has not been searched successfully.

#### Are registered agents treated as officers?

No. Agents appear on company records. Published directors, officers and beneficial owners use officer rows with their stated role. Sources that do not publish agents return a null agent and identify that limitation in coverage.

#### Can I search by a Texas SOS number?

Yes. Texas accepts a taxpayer number or SOS/COA filing number. The output registry ID remains the taxpayer number because some taxpayers have no SOS number. The SOS number, when published, is returned separately.

#### Can I use the output as certified KYB evidence?

Use it to locate and compare public records. Obtain certified documents or additional register evidence when required for your assessment. Coverage and field provenance help identify which further checks are needed.

# Actor input Schema

## `company_name` (type: `string`):

Company name or fragment, 2 to 300 characters.

## `company_names` (type: `array`):

Up to 50 company names; each is searched in every selected jurisdiction.

## `filing_ids` (type: `array`):

STATE:number, or a bare filing ID when exactly one state is selected. Preserve leading zeros.

## `states` (type: `array`):

USPS codes or DC. Omit for all covered jurisdictions; prefixed filing IDs alone infer their states. Unsupported states are reported in coverage.

## `match_mode` (type: `string`):

Case-insensitive company-name matching.

## `max_results_per_state` (type: `integer`):

Maximum companies per search term and state across all cursor pages. Officers do not consume this company limit.

## `include_officers` (type: `boolean`):

Include published officers or beneficial owners. Registered agents remain on company records.

## `cursor` (type: `string`):

Signed continuation token. Resend the original input unchanged. Valid for 24 hours.

## `exactMatch` (type: `boolean`):

Compatibility option: true selects exact matching when match_mode is omitted.

## `companyName` (type: `string`):

Compatibility alias of company_name; takes precedence when supplied.

## `companyNames` (type: `array`):

Compatibility alias of company_names; takes precedence when supplied.

## `maxResultsPerState` (type: `integer`):

Compatibility alias of max_results_per_state; takes precedence when supplied.

## `matchMode` (type: `string`):

Compatibility alias of match_mode; takes precedence when supplied.

## Actor input object example

```json
{
  "filing_ids": [
    "CO:19921028206"
  ],
  "max_results_per_state": 25,
  "include_officers": true
}
```

# Actor output Schema

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

One row per company, plus one row per published officer when include_officers is on; record_type tells them apart.

## `summary` (type: `string`):

Status, row counts per type, covered states, charged events and next_cursor for continuing a large search.

## `errors` (type: `string`):

Failures with a code and a redacted message. Absent when the run had none.

# 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 = {
    "filing_ids": [
        "CO:19921028206"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("s-r/us-business-entities").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 = { "filing_ids": ["CO:19921028206"] }

# Run the Actor and wait for it to finish
run = client.actor("s-r/us-business-entities").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 '{
  "filing_ids": [
    "CO:19921028206"
  ]
}' |
apify call s-r/us-business-entities --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,s-r/us-business-entities"
        }
    }
}
```

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/3r9orQuJdHkZUxiAT/builds/2RFvoLShGkkea1gfG/openapi.json
