# Secretary of State Business Search – CO, CT & OR (`justaduck/secretary-of-state-business-search`) Actor

Secretary of State business entity search for Colorado, Connecticut and Oregon, or a list of new LLCs and companies registered in the last N days. Get name, registry number, entity type, status, registration date and city/ZIP from each state's official open data. People fields are opt-in.

- **URL**: https://apify.com/justaduck/secretary-of-state-business-search.md
- **Developed by:** [Justaduck](https://apify.com/justaduck) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 businesses

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/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 for Colorado, Connecticut and Oregon: search registered businesses, or get a list of new LLCs and companies registered in the last N days.**

- **What you get:** one row per business with `name`, `registryNumber`, `entityType`, `status`, `registrationDate`, `jurisdiction`, principal city / state / ZIP, Connecticut extras such as the NAICS code (`stateFields`) and a link to the official record. Registered agents and Oregon officers only if you turn them on.
- **What it costs:** US$2.00 per 1,000 businesses plus US$0.00005 per run start. Apify's free plan (US$5 of usage a month) covers about 2,500 businesses.
- **Try it:** Click **Start** on the prefilled form: it returns up to 10 Colorado businesses registered in the last 30 days (at most US$0.02005) in a few seconds.

Search official business registrations in **Colorado, Connecticut and Oregon**, or get a list of **newly registered companies from the last N days**. The data comes straight from each state's official open-data portal (Socrata SODA API), where the Secretary of State publishes its business registry as **public domain** data:

| State | Official dataset | What it covers | How often the state updates it |
|---|---|---|---|
| Colorado (CO) | [Business Entities in Colorado](https://data.colorado.gov/d/4ykn-tg5h) (Colorado Department of State) | All entities registered since 1864 (about 3.1 million) | Daily ("Every day after midnight") |
| Connecticut (CT) | [Connecticut Business Registry - Business Master](https://data.ct.gov/d/n7gp-d28j) (Secretary of the State) | All entities (about 1.3 million) | Daily |
| Oregon (OR) | [New Businesses Registered Last Month](https://data.oregon.gov/d/esjy-u4fc) (Oregon Secretary of State, Corporation Division) | **Only businesses registered in the previous calendar month** (in November 2026: 8,238 businesses registered 1–30 October) | Monthly |

**This Actor covers only these three states.** It does not cover the other 47 states or DC. Oregon is a monthly "new businesses" list, not the full Oregon registry.

### What you can do with it

- **New-company lists**: every business registered in the last N days (e.g. `registeredWithinDays: 7`), newest first..
- **Company search**: find businesses by name keyword, entity type, status, city or ZIP code, in one state or several at once.
- **One output format for all three states**: state, official registry number, name, type, status, registration date, jurisdiction, principal business city/state/ZIP, and a link to the official record.
- **People are opt-in**: registered agent names, officer/member names (Oregon) and the principal street address are only returned when you turn on `includePeople`. Home addresses are never returned (see below).

### How to use the Secretary of State business search

1. Open [this Actor on Apify Store](https://apify.com/justaduck/secretary-of-state-business-search) and try it in Apify Console. A free Apify account is enough; no credit card is needed.
2. The input form is prefilled with a small example: it returns up to 10 Colorado businesses registered in the last 30 days. Click **Start** to try it; it finishes in a few seconds.
3. Pick your **States** (Colorado, Connecticut, Oregon) and, optionally, **Registered in the last N days**, **Company name contains**, **Entity types**, **Statuses**, **Cities** or **ZIP codes**. Set **Max results** to cap the run and its cost.
4. Click **Start** and open the **Output** tab when the run finishes. Preview the businesses as a table, or export them as JSON, CSV or Excel.
5. To automate it, save the input as a task and **schedule** it, call the Actor through the **Apify API**, or send the results to Make, Zapier, n8n, Slack or a webhook with Apify **integrations**.

### Input

| Field | Type | Description |
|---|---|---|
| `states` | array, required | `CO`, `CT`, `OR` (one or more). Each state is searched separately. |
| `registeredWithinDays` | integer 1–3650 | Only businesses registered in the last N days, today included. "Today" is the UTC date reported by the state's server. Use this or the fixed dates, not both. |
| `registeredFrom` / `registeredTo` | `YYYY-MM-DD` | Fixed registration date range (both days included). |
| `nameKeywords` | array | Business name contains (case-insensitive). Several keywords = OR. `%` and `_` are not supported. |
| `entityTypes` | array | Exact official entity type, case-insensitive (values differ by state, see below). Several = OR. |
| `statuses` | array | Exact official status, case-insensitive. Several = OR. Oregon has no status field, so Oregon is skipped when you set this. |
| `cities` | array | Exact city of the principal business address, case-insensitive. |
| `postalCodes` | array | ZIP code prefix of the principal business address, 3–5 digits. |
| `includePeople` | boolean, default `false` | Also return registered agents, officers/members (Oregon) and street addresses. See "People and addresses". |
| `maxItems` | integer, default 1,000 (max 20,000) | Maximum number of businesses across all states. |
| `appToken` | secret string, optional | Your own free Socrata app token, if you have one. Not needed for normal use. |

Different filters are combined with AND; values inside one filter with OR. Invalid values (an unsupported state, a malformed ZIP code) are skipped and listed in the run's `SUMMARY`; the rest still runs. If every value of a filter is invalid, nothing runs (so a typo never turns into "return everything").

Example – companies registered in Denver or Boulder in the last 30 days:

```json
{
    "states": ["CO"],
    "registeredWithinDays": 30,
    "cities": ["Denver", "Boulder"],
    "maxItems": 500
}
```

Example – coffee businesses in all three states, October 2026:

```json
{
    "states": ["CO", "CT", "OR"],
    "nameKeywords": ["coffee"],
    "registeredFrom": "2026-10-01",
    "registeredTo": "2026-10-31"
}
```

#### Official values for `entityTypes` and `statuses`

- **Colorado types** (codes as published by the Colorado Department of State): DLLC (domestic LLC, by far the most common), DPC, DNC, FLLC, FPC, DLP, DLLP, DLLLP, FLP, FNC, FO, GP, DPC-PBC, DLCA, DLCA-PBC, DC55, DC55-PBC, DC56, DC56-PBC, DLPA, DT, CS, CU, FCOOP, FLCA, FLLLP, FLLP, FLPA, IC, SL, SP, UNA, WC.
- **Colorado statuses**: Good Standing, Delinquent, Voluntarily Dissolved, Administratively Dissolved, Withdrawn, Noncompliant, Revoked, Judicially Dissolved, Exists, Merged, Converted, Registered Agent Resigned, Effectiveness Prevented, Dissolved (Term Expired), Consolidated.
- **Connecticut types**: LLC, Stock, Non-Stock, Limited Partnership, Religious, LLP, Statutory Trust, Special Chartered, Unknown, General Partnerships, Cemetery, B Corp, Insurance Stock, Non-Stock Specially Chartered, Bank Stock, Credit Union Non-Stock, Unauthorized, Stock Specially Chartered, Bank Non-Stock, Insurance Non-Stock, Cooperative Association, Credit Union Stock.
- **Connecticut statuses**: Active, Forfeited, Dissolved, Withdrawn, Revoked, Cancelled, Merged, Expired Reservation, Rejected, Expired, Renunciated, Reserved, Domesticated, Redomesticated, Recorded, Consolidation, Converted Out, Removed, Converted, Reserved Cancel, Registered, and a few "Pending …" values.
- **Oregon types**: DOMESTIC LIMITED LIABILITY COMPANY, ASSUMED BUSINESS NAME, FOREIGN LIMITED LIABILITY COMPANY, FOREIGN BUSINESS CORPORATION, DOMESTIC BUSINESS CORPORATION, DOMESTIC NONPROFIT CORPORATION, FOREIGN NONPROFIT CORPORATION, DOMESTIC PROFESSIONAL CORPORATION, FOREIGN PROFESSIONAL CORPORATION, DOMESTIC REGISTERED LIMITED LIABILITY PARTNERSHIP, FOREIGN REGISTERED LIMITED LIABILITY PARTNERSHIP, FOREIGN LIMITED PARTNERSHIP, DOMESTIC LIMITED PARTNERSHIP, DOMESTIC BUSINESS TRUST.

(Lists checked on 2026-11-22; the states may add values.)

### Output

One item per business. A real item from a Colorado run (`includePeople` off):

```json
{
    "state": "CO",
    "registryNumber": "20268365882",
    "name": "Emerald Collective Studio, LLC",
    "entityType": "DLLC",
    "status": "Good Standing",
    "registrationDate": "2026-11-20",
    "jurisdiction": "CO",
    "principalCity": "Steamboat Springs",
    "principalState": "CO",
    "principalPostalCode": "80487",
    "principalCountry": "US",
    "principalStreetAddress": null,
    "registeredAgents": null,
    "officers": null,
    "stateFields": null,
    "sourceUrl": "https://data.colorado.gov/resource/4ykn-tg5h.json?entityid=20268365882"
}
```

#### Fields

Values are copied from the official dataset. When a state does not publish a field, it is `null` (never guessed).

| Field | Type | CO | CT | OR | Description |
|---|---|---|---|---|---|
| `state` | string | ✓ | ✓ | ✓ | `CO`, `CT` or `OR`. |
| `registryNumber` | string | ✓ | ✓ | ✓ | Official registry number (CO entity ID, CT account number, OR registry number). |
| `name` | string | null | ✓ | ✓ | ✓ | Official business name. |
| `entityType` | string | null | ✓ | ✓ | ✓ | Official entity type (each state's own values, see above). |
| `status` | string | null | ✓ | ✓ | null | Official status. Oregon's new-business list has no status. |
| `registrationDate` | string | null | ✓ | ✓ | ✓ | Registration / formation date, `YYYY-MM-DD`. Connecticut's placeholder date `0001-01-01` is returned as `null`. |
| `jurisdiction` | string | null | ✓ | ✓ | null | Where the entity was formed (CO: state code such as `CO`; CT: "Formation place" such as `Connecticut` or `DELAWARE`). Oregon shows DOMESTIC/FOREIGN inside `entityType`. |
| `principalCity` | string | null | ✓ | ✓ | ✓ | City of the principal business address. |
| `principalState` | string | null | ✓ | ✓ | ✓ | State of the principal business address. |
| `principalPostalCode` | string | null | ✓ | ✓ | ✓ | ZIP code of the principal business address. |
| `principalCountry` | string | null | ✓ | ✓ | null | Country of the principal business address. |
| `principalStreetAddress` | string | null | ✓ | ✓ | ✓ | Street line(s) of the principal business address, joined with ", ". **Only with `includePeople`**, otherwise `null`. |
| `registeredAgents` | array | null | ✓ | null | ✓ | Registered agent(s): `name`, `type` (`individual` or `organization`), `streetAddress`, `city`, `state`, `postalCode`, `country` (country is null in Oregon). `type` is `organization` only when the state record has the agent in its organization-name field and the person-name fields are empty. **`streetAddress` is given only for organization agents** (registered-agent companies); for individuals it is always `null` and you get city, state and ZIP only. Colorado uses the official agent office address (never the mailing address); Oregon can list more than one agent. `[]` when the state record has none. Connecticut's dataset has no agent. **Only with `includePeople`**, otherwise `null`. |
| `officers` | array | null | null | null | ✓ | Oregon only: people and entities named on the registration with their official role (`role`, `name`, `type` = `individual` or `organization`), e.g. MEMBER, MANAGER, PRESIDENT, SECRETARY, REGISTRANT, AUTHORIZED REPRESENTATIVE, INDIVIDUAL WITH DIRECT KNOWLEDGE. Names only, never any address. **Only with `includePeople`**, otherwise `null`. |
| `stateFields` | object | null | null | ✓ | null | Connecticut-only fields: `subStatus`, `naicsCode` (official "description (code)" text), `naicsSubCode`, `domesticOrForeign` (the company is Domestic or Foreign), `dissolutionDate`, `annualReportDueDate`, `beganTransactingInCt`. |
| `sourceUrl` | string | ✓ | ✓ | ✓ | Link to this record in the state's official open-data API. |

If a business in the Oregon list has two different principal addresses, the principal address fields are `null` (the Actor does not pick one) and the log says so.

### How "last N days" and dates work

- "Today" is the UTC date in the state server's response; the Actor asks the server first (one small extra request per state) and logs the newest registration date in that dataset.
- The states publish registration dates without a time zone. The Actor compares whole days, so a business registered late in the evening local time may fall on the next UTC day for "last N days".
- Colorado and Connecticut are refreshed daily, but new registrations can show up days late: on 2026-11-22 the newest dates were 2026-11-20 (CO) and 2026-11-21 (CT); on 2026-11-28 (Thanksgiving week) they were 2026-11-21 (CO, 7 days behind) and 2026-11-27 (CT). The log tells you the newest date on every run. **Oregon is refreshed once a month and only contains the previous calendar month**, so a short "last N days" window often returns nothing for Oregon (the log tells you the newest Oregon date).

### People and addresses (`includePeople`)

The state registries publish the registered agent and, in Oregon, the people named on the registration (members, managers, officers, registrants). These are official public records published by the state, but they name real people and some addresses are homes. So:

- **Off by default.** With `includePeople: false` the fields `principalStreetAddress`, `registeredAgents` and `officers` are always `null`; you get city, state and ZIP only.
- **On**: you get the registered agent's name and type with city, state and ZIP, Oregon officer/member names with their role, and the street line of the principal business address. The agent's street address is included only when the agent is an organization (a registered-agent company); an individual agent's street address is never included, because the official data cannot tell an office from a home. The data comes from the state's public record; **you are responsible for using it lawfully** (for example, privacy and anti-spam rules for marketing).

### What this Actor never outputs, and why

- **Email addresses and phone numbers.** Connecticut publishes a business email field and a survey email field; the Actor does not even request them. No state dataset used here has a phone field. Any email or phone that appears inside another text field is masked.
- **Mailing addresses and other secondary addresses**: company mailing addresses (CO, CT, OR), the registered agent's mailing address (CO), records-office and out-of-state office addresses (CT, OR). We cannot tell which of these are homes.
- **Street addresses of individual people**, even with `includePeople` on: individual registered agents (CO, OR) and all officers and members (Oregon). In the official data these are often home addresses (for example an apartment number), and the state does not say which are offices.
- **Owner demographics** published by Connecticut (woman-, veteran-, minority-, disability- and LGBTQI-owned flags).

### Run time limit and scheduled runs

- **Time limit:** one run lasts at most 20 minutes. Results are written page by page as they arrive, so when the limit is reached everything already written is kept (and charged as usual). In the run summary (`SUMMARY` in the run's key-value store) the input that was running is marked `partial` ("time budget … more results are available") and inputs not reached are marked `not-run` (nothing charged for them).
- **Speed:** On the Apify platform a run returned 1,460 businesses in 101 seconds (about 850 per minute), so about 15,000 businesses per state fit in one run. For more, split by registration dates (`registeredFrom` / `registeredTo`).
- **When the source fails:** a page that fails its format check is not written and the run ends as failed (results from earlier pages are kept); an input that keeps failing (timeouts, server errors) is marked `failed` or `partial`, and after 3 such inputs in a row the remaining inputs of that source are marked `not-run`.
- **Scheduled runs:** This Actor does not keep track of what earlier runs returned. Because new registrations can be published days late, a very short window can miss them. For a list of new businesses, schedule it **weekly with `registeredWithinDays: 14`** (Colorado, Connecticut) so late-published businesses are still caught; each run returns, and charges for, every business in that window. Remove the ones you already have by `state` + `registryNumber`. For Oregon, run once a month after the state publishes the previous month.

### Pricing

Pay per result: **US$2.00 per 1,000 businesses** (US$0.002 per business) plus **US$0.00005 per run start**. You pay only for businesses written to the dataset; searches with no results, skipped inputs and failed searches cost nothing.

| Example | Cost |
|---|---|
| Default input (10 businesses) | 10 × $0.002 + $0.00005 = **$0.02005** |
| 1,000 businesses | 1,000 × $0.002 + $0.00005 = **$2.00005** |

Discounts by Apify plan (per 1,000 results): Free $2.00, Bronze $1.80, Silver $1.60, Gold $1.40.

**Free plan:** Apify's free plan includes US$5 of prepaid usage every month (no credit card needed). With this Actor that is enough for about 2,500 businesses a month.

### FAQ

**Is this an official Secretary of State service?** No. This Actor is not affiliated with or endorsed by any Secretary of State or state government. It reads the public-domain datasets the states publish on their open-data portals; for certified records, use the state's own website.

**Which states are covered?** Colorado, Connecticut and Oregon only, because these three publish their business registry as public-domain open data through an official API. Other states are not included.

**Is this the full Oregon registry?** No. Oregon publishes only "New Businesses Registered Last Month" under a public-domain license, so Oregon results are limited to the previous calendar month.

**How fresh is the data?** As fresh as the state's open-data portal: Colorado and Connecticut daily, Oregon monthly. The Actor reads the official API live on every run; nothing is cached on our side.

**Do I need an API key or token?** No. If you already have a free Socrata app token you can paste it into `appToken`; it is sent only to the state servers as a header and never logged or stored in the output.

**Why is a registered agent missing?** Connecticut's business master dataset has no agent fields, and some Colorado and Oregon records have no agent (for example Oregon assumed business names). Then `registeredAgents` is `null` (Connecticut) or `[]`.

**Can I query a state's dataset myself?** Yes. For a single state, the Socrata SODA endpoint is enough. Colorado's newest entities, newest first:

```bash
curl -G "https://data.colorado.gov/resource/4ykn-tg5h.json" \
  --data-urlencode "\$select=entityid,entityname,entitytype,entitystatus,entityformdate,principalcity" \
  --data-urlencode "\$where=entityformdate >= '2026-11-16T00:00:00'" \
  --data-urlencode "\$order=entityformdate DESC" \
  --data-urlencode "\$limit=50"
```

The query syntax is in the [SoQL docs](https://dev.socrata.com/docs/queries/); without an [app token](https://dev.socrata.com/docs/app-tokens.html) requests share a lower per-IP limit. The Actor is for when you want several states in one output format: each state names its columns and values differently (a domestic LLC is `DLLC` in Colorado, `LLC` in Connecticut and `DOMESTIC LIMITED LIABILITY COMPANY` in Oregon), and Oregon's list has no status field.

**Why don't yesterday's new LLCs show up yet?** The states publish registrations with a delay (see [How "last N days" and dates work](#how-last-n-days-and-dates-work)). A weekly schedule with `registeredWithinDays: 14`, de-duplicated by `state` + `registryNumber`, catches late records.

**What happens when a state changes its dataset?** If a column the Actor relies on disappears, the run fails with a clear "Source format changed" message instead of returning empty or shifted data.

**How fast is it?** About 1 request per second per state (a conservative limit; Socrata publishes no number for requests without a token). The default input finishes in a few seconds.

### Related Actors

Other company data Actors by the same author:

- **[SEC EDGAR Filings Scraper – 10-K, 8-K & Form 4](https://apify.com/justaduck/sec-edgar-filings)**: 10-K, 10-Q, 8-K, Form 4 and every other SEC filing for a list of tickers or CIK numbers. Use it for public companies: their SEC filing history and new filings.
- **[Greenhouse Jobs Scraper – Lever & Ashby ATS Jobs](https://apify.com/justaduck/greenhouse-lever-ashby-jobs)**: every open job a company posts on Greenhouse, Lever or Ashby, with salary ranges and workplace type. Use it to see which companies are hiring and for which roles.
- **[DNS Lookup in Bulk – MX, SPF, DMARC & DNS Records](https://apify.com/justaduck/bulk-dns-lookup)**: A, MX, TXT, SPF and DMARC records for a list of domains, with the mail provider behind each MX record. Use it to add the domain records and mail provider of each company website you have.

# Actor input Schema

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

Colorado (all entities since 1864, updated daily), Connecticut (all entities, updated daily), Oregon (only businesses registered in the previous calendar month, updated monthly).

## `registeredWithinDays` (type: `integer`):

New-company list: only businesses registered in the last N days, today included (today = the state server's UTC date). Use this or the fixed dates below, not both. Oregon data covers only the previous calendar month.

## `registeredFrom` (type: `string`):

Registration date from this day (inclusive).

## `registeredTo` (type: `string`):

Registration date up to this day (inclusive).

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

Case-insensitive 'contains' match on the official business name. Several keywords are combined with OR. The characters % and \_ are not supported.

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

Exact official entity type, case-insensitive. Each state uses its own values: Colorado codes such as DLLC (domestic LLC), DPC (domestic corporation), DNC (domestic nonprofit), FLLC (foreign LLC); Connecticut such as LLC, Stock, Non-Stock; Oregon such as DOMESTIC LIMITED LIABILITY COMPANY, ASSUMED BUSINESS NAME. See the README for the full lists.

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

Exact official status, case-insensitive. Colorado: Good Standing, Delinquent, Voluntarily Dissolved... Connecticut: Active, Dissolved, Forfeited... Oregon has no status field (Oregon is skipped when you set this).

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

Exact city of the principal business address, case-insensitive (e.g. Denver, Hartford, Portland).

## `postalCodes` (type: `array`):

ZIP code prefix of the principal business address, 3 to 5 digits (80302 or 803).

## `includePeople` (type: `boolean`):

Off by default. When on, the output also has the registered agent's name and type with city/state/ZIP (street address only for organization agents, never for individuals), officer/member names with their role (Oregon), and the street line of the principal business address. These come from the official public state record; you are responsible for how you use them.

## `maxItems` (type: `integer`):

Maximum number of businesses to return across all states. You pay only for results returned.

## `appToken` (type: `string`):

Optional. A free Socrata application token raises the open-data rate limit for your runs. Not needed for normal use. Sent only to the state open-data servers as the X-App-Token header; never logged or saved in the output.

## Actor input object example

```json
{
  "states": [
    "CO"
  ],
  "registeredWithinDays": 30,
  "includePeople": false,
  "maxItems": 10
}
```

# Actor output Schema

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

One dataset item per result. Field descriptions are in the dataset schema.

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

SUMMARY record: per-input status, item counts and the reason for any skipped or failed input.

# 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"
    ],
    "registeredWithinDays": 30,
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("justaduck/secretary-of-state-business-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"],
    "registeredWithinDays": 30,
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("justaduck/secretary-of-state-business-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"
  ],
  "registeredWithinDays": 30,
  "maxItems": 10
}' |
apify call justaduck/secretary-of-state-business-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,justaduck/secretary-of-state-business-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/am5JXsZuciC6yDNOT/builds/jBZv01h4crjVlCKlH/openapi.json
