# Secretary of State Search & New LLC Filings: NY, TX, CO, OR, CT (`datatoolsforall/state-business-entity-search`) Actor

Look up LLCs and corporations by name or state ID, or pull every new filing since a date, from official open data for New York, Texas, Colorado, Oregon and Connecticut. Status, type, formation date, addresses and registered agent (where published) in one schema. $1.50 per 1,000 records.

- **URL**: https://apify.com/datatoolsforall/state-business-entity-search.md
- **Developed by:** [Data Tools for All](https://apify.com/datatoolsforall) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.05 / 1,000 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.
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

## Secretary of State Search & New LLC Filings: NY, TX, CO, OR, CT

Look up LLCs and corporations by name or state ID, or pull every new filing since a date, from official state open data for New York, Texas, Colorado, Oregon and Connecticut. One normalized record per entity.

This actor does two jobs: a **business entity lookup** by name or state ID (KYB, due diligence, vendor checks), and a **new business filings feed** by formation date (for example every New York entity formed since last Monday). It reads the states' own **open-data APIs**, not the CAPTCHA-protected search pages, and it costs **$1.50 per 1,000 records**. The easiest first run: pick a state, type a name, press Start.

> **Coverage is exactly five states:** New York, Colorado, Connecticut, Oregon and Texas. Delaware, Florida, California and the other states are **not** covered.

> **Where the data comes from:** for New York, Colorado, Connecticut and Oregon it is the state's business registry, published as open data by its Department of State or Secretary of State. **Texas data does not come from the Texas Secretary of State:** it is the Texas Comptroller of Public Accounts' "Active Franchise Tax Permit Holders" dataset. New York and Oregon publish active entities only. Details are under "Data source, limits and legality" below.

### Use with AI agents

- Actor ID: `datatoolsforall/state-business-entity-search` (ID `6qojsOraWVya5Uirb`)
- MCP URL (Claude, Cursor, VS Code, ChatGPT): https://mcp.apify.com/?tools=datatoolsforall/state-business-entity-search (sign in with your Apify account; runs bill to it)
- Claude Code: `claude mcp add --transport http business-entities "https://mcp.apify.com/?tools=datatoolsforall/state-business-entity-search"`
- Minimal input: `{"states":["CO"],"searchNames":["acme"],"maxResultsPerState":20}` -> at most $0.03 (plus the $0.00005 start fee)
- Example prompt: "List up to 50 LLCs formed in New York in the last 7 days, with their county and registered agent."
- Python: `from langchain_apify import ApifyActorsTool; ApifyActorsTool("datatoolsforall/state-business-entity-search")`

Always set `maxResultsPerState`. If you leave it out, the default of 100 per state costs at most $0.15 per state ($0.75 with all five states).

### What data can you get

Every row has the same fields, whatever the state:

| Field | What it is |
|---|---|
| `state` | NY, CO, CT, OR or TX |
| `entityId` | The state's ID: NY DOS ID, CO entity ID, CT account number, OR registry number, TX taxpayer number |
| `secondaryId` | Texas Secretary of State file number; Connecticut internal record id (other states: null) |
| `entityName` | Legal name as published |
| `nameNote` | Colorado's status suffix split off the name, e.g. `Dissolved November 8, 1984` or `Colorado Authority Relinquished September 30, 1981` (several notes are joined with `; `) |
| `entityTypeRaw` / `entityType` | Type as published, and normalized to `LLC`, `Corporation`, `Nonprofit`, `LP` or `Other` |
| `status` / `isActive` | Status as published, and whether the entity currently exists |
| `sosStatusCode` | Texas only: the Secretary of State status code the Comptroller publishes (e.g. `A`, `F`), as published |
| `formationDate` | Formation, registration or charter date (YYYY-MM-DD) |
| `jurisdictionOfFormation`, `county` | Where it was formed; county (New York only) |
| `principalAddress`, `mailingAddress` | `{line1, line2, city, state, zip, country}` |
| `registeredAgent` | `{agentType, name, organizationName, address}` |
| `officers` | `[{name, title}]`, only if you switch on **Include names of people** |
| `matchedBy` | Why the row was returned: `entityId`, `name:<your term>` or `formationDate` |
| `dataWarnings` | Data-quality notes, e.g. a future-dated or placeholder formation date, or an ID the source lists twice |
| `sourceDataset`, `sourceUrl` | The official dataset and an API link that returns this exact record |
| `dataUpdatedAt`, `retrievedAt` | When the state last updated the dataset, and when this run read it |
| `error`, `errorCode` | Filled only on "not found" and error rows |

### How to use

1. Choose one or more **States**.
2. Enter **Business names to search** (contains match, not case sensitive; `%`, `_` and `\` are taken literally), or **State entity IDs**, or only a **Formed on or after** date to get new filings.
3. Optionally narrow by **Only active entities** and **Entity types**.
4. Set **Max results per state** (default 100). It caps name matches and new filings, and so what you pay. Name matches and new filings come **newest first** (latest formation date first, records without a date last), so a low cap keeps the most recently formed matches. IDs you list are always returned on top of it.
5. Press **Start**, then download the results as JSON, CSV or Excel, or read them through the API.

### Input example

This is the prefilled input:

```json
{
    "states": ["CO"],
    "searchNames": ["acme"],
    "maxResultsPerState": 20
}
```

New-filings feed for four states (good as a weekly schedule; at most 4,000 records, $6.00):

```json
{
    "states": ["NY", "CT", "OR", "TX"],
    "formedAfter": "7 days",
    "maxResultsPerState": 1000
}
```

Exact lookups, with an optional state prefix:

```json
{
    "states": ["NY", "CO"],
    "entityIds": ["NY:4424185", "19471112341"]
}
```

### Output example

Real rows from the local test runs on 2026-11-25 (`retrievedAt` is UTC):

```json
{
    "state": "CO",
    "entityId": "19471112341",
    "secondaryId": null,
    "entityName": "ACME CLEANERS, INC.",
    "nameNote": "Dissolved November 8, 1984",
    "entityTypeRaw": "DPC",
    "entityType": "Corporation",
    "status": "Voluntarily Dissolved",
    "isActive": false,
    "formationDate": "1947-03-19",
    "jurisdictionOfFormation": "CO",
    "county": null,
    "principalAddress": { "line1": "1127 West Northern Avenue", "line2": null, "city": "Pueblo", "state": "CO", "zip": "81004", "country": "US" },
    "mailingAddress": null,
    "registeredAgent": null,
    "officers": null,
    "matchedBy": "name:acme",
    "dataWarnings": null,
    "sourceDataset": "data.colorado.gov/4ykn-tg5h",
    "sourceUrl": "https://data.colorado.gov/resource/4ykn-tg5h.json?entityid=19471112341",
    "dataUpdatedAt": "2026-11-23T12:18:18.000Z",
    "retrievedAt": "2026-11-26T01:47:10.061Z",
    "error": null,
    "errorCode": null
}
```

A new New York filing from the feed mode, with a registered-agent company:

```json
{
    "state": "NY",
    "entityId": "8140107",
    "entityName": "MONEYWISE WOMEN LLC",
    "entityTypeRaw": "DOMESTIC LIMITED LIABILITY COMPANY",
    "entityType": "LLC",
    "status": "Active",
    "isActive": true,
    "formationDate": "2026-11-24",
    "jurisdictionOfFormation": "New York",
    "county": "Kings",
    "mailingAddress": { "line1": "99 Fleet Pl Apt 18B,", "line2": null, "city": "Brooklyn", "state": "NY", "zip": "11201", "country": null },
    "registeredAgent": {
        "agentType": "organization",
        "name": null,
        "organizationName": "LegalZoom USCA, Inc.",
        "address": { "line1": "45 Main Street", "line2": "Suite 238", "city": "Brooklyn", "state": "NEW YORK", "zip": "11201", "country": null }
    },
    "matchedBy": "formationDate",
    "sourceDataset": "data.ny.gov/n9v6-gdp6",
    "sourceUrl": "https://data.ny.gov/resource/n9v6-gdp6.json?dos_id=8140107",
    "dataUpdatedAt": "2026-11-25T12:26:32.000Z"
}
```

(The second sample is shortened; null fields such as `secondaryId`, `nameNote`, `principalAddress`, `officers`, `error` were removed for readability.)

### How much does it cost?

Pay per event: **$0.0015 per entity record** ($1.50 per 1,000), plus Apify's standard run start fee of $0.00005. Higher Apify plans get a discount (Bronze $1.35, Silver $1.20, Gold and above $1.05 per 1,000).

| Records | Price (Free plan) |
|---|---|
| 100 | $0.15 |
| 1,000 | $1.50 |
| 10,000 | $15.00 |

The free $5 monthly Apify credit covers about **3,300 records**.

You pay only for rows you can use: entity records, and "not found" rows for an ID you asked about (a real lookup with a definitive answer). You do **not** pay for invalid input, timeouts or source errors. **Max results per state** and the run's maximum cost setting both cap the bill; when the cost limit is reached the actor stops cleanly and keeps what it saved. Left at its default of 100, **Max results per state** keeps a name search or new-filings run to at most $0.15 per selected state ($0.75 for all five), plus the IDs you list.

### Data source, limits and legality

All data comes from official state open-data portals (Socrata SODA APIs), which publish these registries for public reuse and machine access. No login, no API key, no CAPTCHA, no scraping of search pages.

| State | Publisher | Dataset | Updated (observed) |
|---|---|---|---|
| NY | NY Department of State | [Active Corporations: Beginning 1800](https://data.ny.gov/d/n9v6-gdp6) | latest filing date seen: 2026-11-24 |
| CO | CO Department of State | [Business Entities in Colorado](https://data.colorado.gov/d/4ykn-tg5h) | latest formation date seen: 2026-11-21 |
| CT | CT Secretary of the State | [Business Registry - Business Master](https://data.ct.gov/d/n7gp-d28j) plus [Agents](https://data.ct.gov/d/qh2m-n44y) and [Principals](https://data.ct.gov/d/ka36-64k6) | latest registration seen: 2026-11-24 |
| OR | OR Secretary of State | [Active Businesses - ALL](https://data.oregon.gov/d/tckn-sxa6) | latest registry date seen: 2026-11-23 |
| TX | TX Comptroller of Public Accounts | [Active Franchise Tax Permit Holders](https://data.texas.gov/d/9cir-efmm) | latest charter date seen: 2026-11-25 |

The portal metadata lists Colorado and Connecticut as Public Domain; New York, Oregon and Texas list no license in their metadata. Please read each dataset's About page for its terms before reuse.

**Limits you should know**

- **New York and Oregon list active entities only.** Dissolved entities there are not in the data, so a "not found" can mean "no longer active".
- **Texas** is the Comptroller's list of franchise-tax permit holders, not the full Secretary of State register. Some entity types are missing, there is no registered agent or officer data, and the address is the taxpayer's mailing address. Type codes (e.g. `CL`) are mapped to normalized types based on the names observed in the data; the raw code is always in `entityTypeRaw`. SOS file numbers can be entered with or without their leading zeros. If the source lists a taxpayer number twice (31 numbers on 2026-11-25), you get one row, the one with the latest charter date, with a note in `dataWarnings` that also names the other rows' SOS status code when it differs. Long ID lists are sent in several small requests, so up to 100 IDs work in one run, with the same answers as a short list.
- **Texas status.** `status` is `Active` when the Comptroller's right-to-transact-business code is `A` (`isActive: true`). Other rows show the raw code as `Right to transact code D`, `N` or `U` with `isActive: null`. The official meaning of these codes is only in the record layout attached to the [dataset page](https://data.texas.gov/d/9cir-efmm) ("Franchise Layout.docx"), which this actor's author has not verified, so the actor does not guess. Counts on 2026-11-25: `A` 3,028,731, `N` 452,640, `U` 45,939, `D` 26,280. The Secretary of State status code is returned as published in `sosStatusCode`, not interpreted, for the same reason. For the legal standing of a Texas entity, check the Comptroller's Taxable Entity Search.
- **Colorado** `isActive` is true for Good Standing, Delinquent, Exists and Noncompliant. Colorado entity IDs are numbers, so an ID typed with extra leading zeros (`CO:019471112341`) finds the same entity, with `matchedBy: entityId`. In New York, Connecticut, Oregon and Texas the ID columns are text and IDs must be entered as the state writes them (Connecticut account numbers keep their leading zero, e.g. `0293297`; the Texas SOS-number exception is described above).
- **Connecticut** name reservations and filings the Secretary of the State **rejected** (status `Rejected`) are excluded: they are not entities. Rows with status `Expired` are excluded when they have no business type or only the placeholder registration date 0001-01-01 (about 3,170 rows on 2026-11-25): they are expired reservations or abandoned filings, and several are phantom copies of a real, active entity with another account number. The 3 `Expired` rows with a real registration date are kept. The registry uses the account number `0000000` as a placeholder for a few unrelated records; those rows have `entityId: null` and the registry's internal record id in `secondaryId`, and a lookup of `0000000` returns a free `PLACEHOLDER_ID` row. About 18,700 Connecticut records have the placeholder registration date 0001-01-01; their `formationDate` is null (with a note) and they never match a date filter.
- **Oregon** reserved names and foreign registered names are excluded. **Assumed business names (DBAs) are included**: they are real Secretary of State registrations with their own registry number, `entityType` `Other`, and make up about a fifth of Oregon registrations (and of a typical new-filings feed). To leave them out, select the entity types you want (e.g. LLC, Corporation, Nonprofit, LP).
- **New York** name reservations are excluded.
- Some sources contain future-dated formation dates (seen in Texas). Those are set to null with a note in `dataWarnings`, and the new-filings feed never returns dates after today.
- If you search by name and by ID in one run, the IDs are looked up separately: they are always returned, and an entity found both ways appears once.
- The same ID written several ways is answered once per state and billed once: the state prefix is not case-sensitive and spaces around it are ignored (`NY:1`, `ny : 1`), in Colorado leading zeros do not count (`CO:05` = `CO:5`, however many zeros), and neither do they in a Texas SOS file number (`TX:123456789` = `TX:0123456789`; a Texas ID of up to 10 digits is an SOS file number). An unprefixed ID and a prefixed spelling of it (`5` and `CO:05`) also get at most one answer per state. Otherwise a leading zero makes a different ID, as at the source: `NY:01` and `NY:1`, `CT:293297` and `CT:0293297`, or a Texas ID of 11 or more digits with an extra zero (`TX:00123456789`) are separate lookups.
- Name search is a "contains" match on the published name. Each state updates on its own schedule; `dataUpdatedAt` tells you when.

**Personal data.** Registered-agent and officer names are public records, but this actor returns names and addresses of **individuals** only when you switch on **Include names of people**. Registered-agent companies are always shown. Address lines that direct mail to a person ("ATTN: Jane Doe", "c/o John Smith") are removed from addresses unless the switch is on; lines naming a company, department or role ("c/o CT Corporation System", "Attn: Tax Department") are kept. The screening is rule-based: an address line or agent name that names a person in another way can still appear, and a person's name that contains a company word (e.g. "LLC") is treated as a company. The actor adds nothing the source does not publish and does no enrichment from other sources (Connecticut's e-mail columns are never requested). Use the data for lawful purposes such as KYB, due diligence and market research, and follow anti-spam and telemarketing laws such as CAN-SPAM and the TCPA.

### Use via API, schedules, integrations, MCP

Run it and get the records in one call:

```bash
curl -X POST "https://api.apify.com/v2/acts/datatoolsforall~state-business-entity-search/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"states":["NY"],"formedAfter":"7 days","maxResultsPerState":500}'
```

Or with the JavaScript client:

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('datatoolsforall/state-business-entity-search').call({ states: ['CO'], searchNames: ['acme'], maxResultsPerState: 20 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

Schedule a weekly new-filings run with a relative date such as `"7 days"`, and connect the results to Google Sheets, Slack, Zapier, Make or a webhook through Apify integrations. For AI agents and MCP clients, see "Use with AI agents" near the top of this page.

### FAQ and troubleshooting

**Why is a company missing?** It may be in a state this actor does not cover, inactive in NY or OR (those datasets list active entities only), not a Texas franchise-tax permit holder, or spelled differently. Try a shorter name.

**Why are agent names empty?** Individual agents are hidden unless you switch on **Include names of people**.

**Should I add a Socrata app token?** Not normally. Without one, requests share a per-IP throttling pool. If you see `RATE_LIMITED`, a free token from any Socrata portal gives you your own quota.

**Error codes** (on rows where `errorCode` is set):

| Code | Meaning | Billed |
|---|---|---|
| `NOT_FOUND` | No entity with that ID matched in the searched state(s) and filters (one row per distinct ID and state) | Yes |
| `PLACEHOLDER_ID` | The ID is a placeholder the registry shares between unrelated records (CT `0000000`); it was not looked up | No |
| `INVALID_ID` | The ID cannot exist in the selected state(s): all five registries use digits-only IDs (e.g. `OR:abc`); it was not looked up | No |
| `SCAN_LIMIT` | Safety stop: a portal returned thousands of rows that do not literally contain a search name with `%`, `_` or `\` (its escaping stopped working); that state stops instead of paging through the dataset | No |
| `RATE_LIMITED` | The portal kept answering 429 after polite retries | No |
| `SOURCE_UNAVAILABLE`, `TIMEOUT`, `NETWORK_ERROR` | The portal was down or did not answer in 30 s after retries | No |
| `BLOCKED` | The portal refused access (403) or sent a non-JSON page; the actor does not work around this | No |
| `INVALID_APP_TOKEN` | The portal rejected your app token | No |
| `SCHEMA_CHANGED`, `DATASET_NOT_FOUND` | The state renamed columns or moved the dataset; that state is skipped until the actor is updated | No |
| `BAD_RESPONSE`, `HTTP_ERROR` | Unexpected answer from the portal | No |

One failing state does not stop the others. The run fails only on invalid input or when every selected state fails.

### Related actors

Other pay-per-event actors by the same author:

- [Domain Availability Checker](https://apify.com/datatoolsforall/bulk-domain-availability-checker): check whether a new company's name is still free as a .com or another domain, from registry RDAP data. $1 per 1,000 domains.
- [Bulk Lighthouse & PageSpeed Test](https://apify.com/datatoolsforall/bulk-lighthouse-pagespeed-audit): Lighthouse lab audits (performance, accessibility, SEO) for a list of websites. $0.02 per audit.
- [Sitemap URL Extractor & Change Monitor](https://apify.com/datatoolsforall/website-sitemap-extractor): every URL in a website's sitemaps, with new and removed pages between runs. $0.20 per 1,000 URLs.

# Changelog

This Actor's version history is a separate document: https://apify.com/datatoolsforall/state-business-entity-search/changelog.md

# Actor input Schema

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

Which state registries to search. Only these five states are covered: New York, Colorado, Connecticut, Oregon and Texas.

## `searchNames` (type: `array`):

Words or names to look for. A record matches when its name contains the text exactly as typed (not case sensitive; characters such as %, \_ and the backslash are matched literally). Example: "acme" finds "ACME CLEANERS, INC.". At least 2 characters each, up to 20 names.

## `entityIds` (type: `array`):

Exact lookup by the state's own ID, up to 100 IDs: NY DOS ID, CO entity ID, CT account number, OR registry number, TX taxpayer number or TX SOS file number (leading zeros optional). Prefix a state, e.g. "NY:4424185", to search one state only. Every ID is returned whatever "Max results per state" says; an ID that is not found gets a billed NOT_FOUND row. IDs with letters cannot exist and get a free INVALID_ID row.

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

Only entities formed or registered on or after this date. Use it alone (without names or IDs) to get a feed of new filings, newest first. Accepts a date (2026-11-15) or a relative period ("7 days"), which is handy for scheduled runs.

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

Only entities formed or registered on or before this date. Leave empty to include everything up to today.

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

Caps name matches and new filings per state, and so your cost: at $0.0015 per record, the default of 100 costs at most $0.15 per state ($0.75 for all five). Matches come newest first (latest formation date first), so a low cap keeps the most recently formed ones. Records for the IDs you list in "State entity IDs" (at most 100) are always returned on top of this cap.

## `onlyActive` (type: `boolean`):

Skip dissolved, withdrawn, revoked and similar records. New York and Oregon publish active entities only, so this changes nothing there.

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

Keep only these normalized types. Leave empty for all types.

## `includeAgentAndOfficerNames` (type: `boolean`):

Off by default. When on, the output also includes the names and addresses of individual registered agents and the officer or principal names the state publishes (NY chairman, CT principals, OR authorized representatives). Registered-agent companies are always shown. Use person data only for lawful purposes such as KYB and due diligence.

## `socrataAppToken` (type: `string`):

Optional. The portals work without it, but requests without a token share a per-IP throttling pool. A free app token from any Socrata portal (Developer Settings in your account there) gives you your own quota. It is sent only as an HTTP header and never written to the output or logs.

## Actor input object example

```json
{
  "states": [
    "CO"
  ],
  "searchNames": [
    "acme"
  ],
  "maxResultsPerState": 20,
  "onlyActive": false,
  "includeAgentAndOfficerNames": false
}
```

# Actor output Schema

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

All rows of the run as JSON: one normalized record per business entity, plus "not found" and error rows (errorCode set).

# 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 = {
    "states": [
        "CO"
    ],
    "searchNames": [
        "acme"
    ],
    "maxResultsPerState": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datatoolsforall/state-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 = {
    "states": ["CO"],
    "searchNames": ["acme"],
    "maxResultsPerState": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datatoolsforall/state-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 '{
  "states": [
    "CO"
  ],
  "searchNames": [
    "acme"
  ],
  "maxResultsPerState": 20
}' |
apify call datatoolsforall/state-business-entity-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datatoolsforall/state-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/6qojsOraWVya5Uirb/builds/83gWw5TY8krzgG4Wq/openapi.json
