# Texas Business Entity Search - Comptroller Franchise Tax Status (`memo23/texas-business-entity-search`) Actor

Texas business entity search on Comptroller franchise tax records. Look up by name, taxpayer number, EIN or SOS file number, or list new LLCs by formation date, city, county, ZIP or NAICS. Returns right to transact, SOS status, registered agent, officers and addresses. $2.50 per 1,000 records.

- **URL**: https://apify.com/memo23/texas-business-entity-search.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** Business, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.50 / 1,000 business 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

## Texas Business Entity Search (Comptroller Franchise Tax Status)

**Look up any Texas business in the Comptroller's public franchise tax records, one company or fifty thousand.** Give it company names, 11-digit taxpayer numbers, EINs or Secretary of State file numbers and each match comes back as one record: right to transact business in Texas, SOS registration status and file number, entity type, state and date of formation, NAICS code, county, mailing address, registered agent with office address, and officers and directors with their addresses. Or skip the names and list every entity by charter date, city, county, ZIP, NAICS code or entity type, which turns it into a feed of newly formed Texas LLCs and corporations. JSON, CSV or Excel out, billed per record.

### How it works

![How Texas Business Entity Search works](https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/how-it-works-texas-business-entity.png)

### ✨ Why use this scraper?

- **Four ways in.** Company name, taxpayer number, federal EIN or SOS file number. Mix them in one run; an entity matched twice is returned and billed once.
- **Good standing in the Comptroller's own words.** `rightToTransact` reads ACTIVE, FORFEITED, FRANCHISE TAX ENDED, FRANCHISE TAX INVOLUNTARILY ENDED or NOT ESTABLISHED, exactly as the account status page prints it, with a plain `isActive` true/false next to it.
- **Officers and the registered agent on every record.** Names, titles, the report year they were listed on, and addresses. A large company can carry hundreds of officers; they all come back.
- **New-business lists, not only lookups.** Filter by formation date, city, county, ZIP, NAICS and entity type with no company name at all. "LLCs formed in Travis County since October 1" is one input.
- **A schedule-ready feed.** Turn on "Only records not returned before" and each scheduled run returns only entities you have not seen yet.
- **Forfeited and ended accounts are found too.** Name search covers every status, so a due diligence check does not miss the company that lost its right to transact last year.
- **A summary you can audit.** Every run saves what each name and number found, which numbers matched nothing, and which names were too broad to list in full.
- **Pay for records, not for searches.** A name or number that matches nothing costs nothing beyond the run start.

### Overview

The Texas Comptroller of Public Accounts keeps the franchise tax account of every corporation, LLC, limited partnership and other taxable entity doing business in Texas, joined to its Secretary of State registration. This actor reads those public records and returns them as structured data. A full record holds the account status, the SOS registration, the registered agent and the officers and directors from the entity's latest Public Information Report. A listing record (faster, with "Read each entity's full record" off) holds the name, numbers, type, NAICS, county, charter date and mailing address.

About 3.5 million entities are on file. You can read one, check a list of vendors in bulk, or pull every entity that matches a set of filters.

### Supported inputs

| Input | What you enter | What comes back |
|---|---|---|
| **Company names** | One name per line. Starts with, contains, or exact name | Every matching entity, up to "Records per name" each |
| **Taxpayer numbers** | 11-digit Texas taxpayer numbers | That entity |
| **EINs** | 9-digit federal employer numbers, in the same field as taxpayer numbers | The entity registered under that EIN |
| **SOS file numbers** | 6 to 10 digits | That entity |
| **Formation date** | "Formed in the last N days", or a from / to date | Entities chartered in that window, newest first |
| **Place** | Cities, counties (name or Comptroller code), ZIP codes or ZIP prefixes | Entities whose mailing address is there |
| **Industry** | NAICS codes or prefixes, 2 to 6 digits | Entities filed under those codes |
| **Entity type** | LLC, corporation, nonprofit, limited partnership, general partnership, trust, association, or a two-letter Comptroller code | Entities of that type |

Filters combine with each other. With company names they narrow the name search; with no name they list every entity that matches.

**Good to know:**

- "Starts with" follows the Comptroller's own search. When more than a few hundred names begin with your words (try `Dell`), the Comptroller does not list them, and the run returns the first matches from the open franchise file and says so in the summary. Add a word (`Dell Technologies`) for the full list.
- A name can belong to a taxpayer that has no franchise tax account, such as a sole proprietor with a sales tax permit. Those are left out and counted in the summary as `noFranchiseAccount`.
- New entities reach the Comptroller's open franchise file about two to three weeks after their charter date (measured 2026-11-19: the newest complete day was 18 days old). A formed-since list is complete up to that point and thin after it. For a feed of new businesses, use a window of 45 days or more together with "Only records not returned before": each run then returns what appeared since the last one.
- A charter date can be in the future. Texas lets a filing take effect up to 90 days after it is made, so a formed-since list starts with those.
- NAICS is on file for part of the register. Filtering by NAICS returns only entities that reported one.
- Exempt reasons come as the Comptroller's numeric code (`exemptReasonCode`).

### 🎯 Use cases

| Team | What they build |
|------|-----------------|
| **KYB / compliance** | Confirm a merchant, vendor or borrower exists in Texas, holds an active right to transact, and who its officers are |
| **Lenders & title companies** | Certificate-of-account-status checks in bulk before closing |
| **Sales & lead generation** | Weekly lists of newly formed LLCs by city, county or industry, with the mailing address and registered agent |
| **Legal & collections** | The registered agent and registered office address before serving papers |
| **Accountants & registered agents** | Watch a client list for a forfeited right to transact or an ended franchise tax account |
| **Data enrichment** | Append EIN, SOS file number, NAICS, county and formation date to CRM records keyed on a company name |

### How a run goes

1. Each company name is searched in the mode you chose. Each taxpayer number, EIN and file number is looked up directly.
2. With filters and no names, matching entities are listed newest charter date first.
3. For each match the full record is read: account status, SOS registration, registered agent, officers. Turn this off for listing rows only.
4. Each entity is saved once per run. With "Active right to transact only" on, anything not ACTIVE is skipped and not charged.
5. A `SUMMARY` record is saved next to the dataset.

### Input configuration

In the order of the input form:

| Field | Type | Default | Description |
|---|---|---|---|
| `companyNames` | array | - | Businesses to look up, one per line. |
| `matchMode` | string | `startsWith` | `startsWith` (as on the Comptroller's site, every status), `contains` (your words anywhere in the name), `exact` (the name itself, ignoring LLC, Inc and similar endings). |
| `taxpayerNumbers` | array | - | 11-digit taxpayer numbers or 9-digit EINs. Dashes and spaces are fine. |
| `fileNumbers` | array | - | SOS file numbers, 6 to 10 digits. |
| `formedInLastDays` | integer | - | Entities chartered in the last N days. The window moves with each run. |
| `formedAfter` / `formedBefore` | string | - | Charter date window, `YYYY-MM-DD`, inclusive. |
| `cities` | array | - | Mailing city. |
| `counties` | array | - | County name (`Travis`, `Harris County`) or Comptroller county code 1 to 254. |
| `zipCodes` | array | - | ZIP or a 2 to 4 digit prefix. |
| `naicsCodes` | array | - | NAICS code or prefix. |
| `entityTypes` | array | - | `LLC`, `corporation`, `nonprofit`, `limited partnership`, `general partnership`, `trust`, `association`, or a code such as `CL`. |
| `includeDetails` | boolean | `true` | Read the full record for each entity. |
| `activeOnly` | boolean | `false` | Keep only entities whose right to transact is ACTIVE. |
| `onlyNew` | boolean | `false` | Skip entities an earlier run with the same memory already returned. |
| `monitorName` | string | - | Name of the memory used by `onlyNew`. One name per feed. |
| `maxItems` | integer | `1000` | Records in total for the run. |
| `maxResultsPerName` | integer | `25` | Most records for one company name. |
| `maxConcurrency` | integer | `5` | Records read in parallel, 1 to 10. |
| `proxy` | object | off | Not needed for normal runs. |

#### Example inputs

Check a vendor list by name:

```json
{
    "companyNames": ["Buc-ee's", "Whataburger Restaurants", "H-E-B"],
    "matchMode": "startsWith",
    "maxResultsPerName": 5
}
```

Verify by number (taxpayer number, EIN and SOS file number in one run):

```json
{
    "taxpayerNumbers": ["17104151885", "76-0140292"],
    "fileNumbers": ["0800022224"]
}
```

New LLCs in Austin as a weekly feed. The window is 45 days because new entities reach the file two to three weeks after they are chartered; `onlyNew` keeps each run to what has appeared since the last one:

```json
{
    "formedInLastDays": 45,
    "cities": ["Austin"],
    "entityTypes": ["LLC"],
    "onlyNew": true,
    "monitorName": "austin-new-llcs",
    "maxItems": 2000
}
```

Active residential builders in Travis County, listing rows only:

```json
{
    "counties": ["Travis"],
    "naicsCodes": ["2361"],
    "activeOnly": true,
    "includeDetails": false,
    "maxItems": 5000
}
```

### Output overview

One dataset row per entity. With the full record on, a row holds the account status, the SOS registration, the registered agent and every officer. The `SUMMARY` key-value record lists, per input, how many records it found, plus numbers that matched nothing, names too broad to list in full and searches that failed.

### Output sample

```json
{
    "entityName": "BUC-EE'S, LTD.",
    "dbaName": null,
    "taxpayerNumber": "17601402922",
    "fein": "760140292",
    "sosFileNumber": "0800070350",
    "rightToTransact": "ACTIVE",
    "rightToTransactCode": "A",
    "sosStatus": "ACTIVE",
    "sosStatusCode": "A",
    "isActive": true,
    "entityType": "Texas limited partnership",
    "entityTypeCode": "PL",
    "stateOfFormation": "TX",
    "sosRegistrationDate": "2002-04-01",
    "charterDate": "2002-04-01",
    "sosStatusDate": "2002-04-01",
    "franchiseTaxStartDate": "1985-01-29",
    "naicsCode": "445120",
    "county": "Brazoria",
    "countyCode": "20",
    "exemptReasonCode": null,
    "exemptSince": null,
    "mailingAddress": {
        "street": "327 FM 2004 RD",
        "city": "LAKE JACKSON",
        "state": "TX",
        "zip": "77566-4980",
        "full": "327 FM 2004 RD, LAKE JACKSON, TX 77566-4980"
    },
    "registeredAgent": {
        "name": "C T CORPORATION SYSTEM",
        "address": {
            "street": "1999 BRYAN ST., STE. 900",
            "city": "DALLAS",
            "state": "TX",
            "zip": "75201",
            "full": "1999 BRYAN ST., STE. 900, DALLAS, TX 75201"
        }
    },
    "officers": [
        {
            "name": "ARCH APLIN III",
            "title": null,
            "year": "2026",
            "source": "CPA",
            "address": {
                "street": "327 FM 2004",
                "city": "LAKE JACKSON",
                "state": "TX",
                "zip": "77566",
                "full": "327 FM 2004, LAKE JACKSON, TX 77566"
            }
        },
        {
            "name": "DON WASEK",
            "title": "Other",
            "year": "2026",
            "source": "CPA",
            "address": {
                "street": "327 FM 2004",
                "city": "LAKE JACKSON",
                "state": "TX",
                "zip": "77566",
                "full": "327 FM 2004, LAKE JACKSON, TX 77566"
            }
        }
    ],
    "officerCount": 2,
    "reportYear": "2026",
    "detailLevel": "full",
    "matchedBy": "name",
    "searchedFor": "Buc-ee's",
    "sourceUrl": "https://comptroller.texas.gov/taxes/franchise/account-status/search/17601402922",
    "scrapedAt": "2026-11-19T07:43:23.270Z"
}
```

### Key output fields

| Field | Meaning |
|---|---|
| `entityName`, `dbaName` | Registered name and assumed name |
| `taxpayerNumber`, `fein` | 11-digit Texas taxpayer number and federal EIN |
| `sosFileNumber` | Secretary of State file number. Null for an entity with no SOS registration |
| `rightToTransact` | Right to transact business in Texas, as the Comptroller words it |
| `sosStatus` | SOS registration status: ACTIVE, INACTIVE or NOT REGISTERED. Full record only |
| `isActive` | True when the right to transact is ACTIVE, false when it is not, null when a listing row does not say |
| `entityType`, `entityTypeCode` | Readable type and the Comptroller's two-letter code |
| `stateOfFormation` | State or country the entity was formed in. Full record only |
| `sosRegistrationDate`, `charterDate` | Effective SOS registration date and the charter date on file |
| `franchiseTaxStartDate` | Date the entity became responsible for franchise tax |
| `naicsCode`, `county`, `countyCode` | Industry code and county of the mailing address |
| `exemptReasonCode`, `exemptSince` | Franchise tax exemption, when one is on file |
| `mailingAddress` | `street`, `city`, `state`, `zip` (ZIP+4 on full records) and a one-line `full` |
| `registeredAgent` | `name` and registered office `address` |
| `officers` | Each with `name`, `title`, report `year`, `source` and `address` |
| `officerCount` | Number of officers on the record. Null on listing rows, where officers are not read |
| `detailLevel` | `full` or `listing` |
| `matchedBy`, `searchedFor` | Which input found the entity: `name`, `taxpayerNumber`, `fileNumber` or `filter`, and its value |
| `sourceUrl` | The entity's account status page on the Comptroller's site |

### FAQ

**Is this the same data as the Comptroller's Franchise Tax Account Status search?**
Yes. A full record carries what that page shows for the entity, officers included, plus the type, NAICS, county and charter date from the Comptroller's open franchise file.

**Is right to transact the same as good standing?**
In Texas, the Comptroller's account status is what lenders and title companies check. ACTIVE means the entity's right to transact business in Texas is intact. It is not a certified Certificate of Account Status; order that from the Comptroller when you need the signed document.

**Why do `rightToTransact` and `sosStatus` sometimes disagree?**
They are two registrations. An entity can be ACTIVE with the Secretary of State and FORFEITED with the Comptroller, or the other way round. Both are returned.

**Can I search by officer or registered agent name?**
Not yet. Officers and agents are returned on each record, so you can filter the dataset after a run.

**How fresh is it?**
Full records are read live during the run, so right to transact, SOS status, agent and officers are current. The filter listing and the listing fields (type, NAICS, county, charter date) come from the Comptroller's open franchise file, where a new entity appears about two to three weeks after its charter date. An entity too new for the file is still found by name, taxpayer number or file number.

**What does it cost?**
A small fee per run start and a fee per record returned. Inputs that match nothing are free. See the Pricing tab for current rates.

**Can I run it on a schedule?**
Yes. Use `formedInLastDays` (45 or more) with `onlyNew` and a `monitorName`, then add an Apify schedule. Each run returns only entities not returned before under that memory name.

**My name search returned fewer records than I expected.**
Check the `SUMMARY` record. A very broad prefix is cut short and listed under `tooBroad`, and taxpayers without a franchise tax account are counted under `noFranchiseAccount`.

### Your feedback

If this actor saves you time, a **short review on this page** helps other people find it. If a field or search mode is missing, open an issue first: requests usually ship within days.

### Support

- For issues or feature requests, please use the **Issues** tab of this actor on Apify Console.
- For further assistance, contact the author:
  - Author's website: <https://muhamed-didovic.github.io/>
  - Email: <muhamed.didovic@gmail.com>

### Additional services

- Request a custom field set, another Texas register or a private build: <muhamed.didovic@gmail.com>
- Need a company portfolio watched for status, agent or officer changes and delivered to your database? Contact <muhamed.didovic@gmail.com>
- For API services of this actor, reach out to <muhamed.didovic@gmail.com>
- Explore other scrapers at [memo23's Apify profile](https://apify.com/memo23)

### Explore More Scrapers

- [**Secretary of State Business Entity Search**](https://apify.com/memo23/us-business-entity-search): the same lookup across 23 state registries in one run
- [**Sunbiz Florida Business Registry Scraper**](https://apify.com/memo23/sunbiz-florida-scraper): Florida corporations and LLCs with officers, annual reports and filing PDFs
- [**Handelsregister Scraper**](https://apify.com/memo23/handelsregister-scraper): the official German company register with officers, representation rules and name history

### 🤖 For AI Agents & LLM Apps

Compact reference for AI agents calling this actor via the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/texas-business-entity-search`).

**Purpose:** Looks up Texas business entities in the Comptroller's franchise tax records by name, taxpayer number, EIN or SOS file number, or lists them by formation date, place, NAICS and entity type. Returns one record per entity with right to transact, SOS status, registered agent, officers and addresses.

**Minimal input:**

```json
{ "companyNames": ["Buc-ee's"], "matchMode": "startsWith", "maxResultsPerName": 5 }
```

**Output:** entityName, dbaName, taxpayerNumber, fein, sosFileNumber, rightToTransact, sosStatus, isActive, entityType, stateOfFormation, sosRegistrationDate, charterDate, naicsCode, county, mailingAddress {street, city, state, zip, full}, registeredAgent {name, address}, officers \[{name, title, year, source, address}], officerCount, reportYear, detailLevel, matchedBy, searchedFor, sourceUrl, scrapedAt.

**Behaviors an agent should know:**

- To verify one company, prefer `taxpayerNumbers` or `fileNumbers`; they return exactly one entity. With a name, use `matchMode: "exact"`.
- `isActive` reflects the Comptroller's right to transact. Read `sosStatus` for the Secretary of State side.
- `startsWith` on a very common prefix is cut short; the `SUMMARY` record's `tooBroad` lists those names with the match count.
- With filters and no `companyNames`, the run lists entities newest charter date first, up to `maxItems`. New entities appear in filter listings two to three weeks after their charter date, so use `formedInLastDays` of 45 or more with `onlyNew` for a feed.
- `includeDetails: false` returns listing rows without officers, agent, EIN or `sosStatus`, several times faster.
- `SUMMARY.notFound` lists numbers that matched nothing or that belong to a taxpayer with no franchise tax account.
- Pay-per-event billing: a small actor-start fee plus one charge per record; see the Pricing tab.

### ⚠️ Disclaimer

This actor reads public business records that the Texas Comptroller of Public Accounts publishes for anyone to search. It does not log in, bypass authentication, or access non-public data. You are responsible for using the data in line with the Comptroller's terms of use and with laws that apply to you, including the FCRA, which does not allow this data to be used as a consumer report. The actor and its author are not affiliated with, endorsed by, or sponsored by the Texas Comptroller of Public Accounts, the Texas Secretary of State or the State of Texas; agency names are used only to describe the source of the records. Records can be out of date or incomplete; confirm critical facts with the Comptroller before acting on them.

The author provides this actor "as is", without warranty of any kind, and disclaims any liability for damages arising from its use.

### SEO Keywords

texas business entity search, texas comptroller franchise tax search, texas franchise tax account status, texas taxable entity search, texas secretary of state business search, texas sos business search, texas llc lookup, texas corporation search, texas taxpayer number lookup, texas ein lookup, texas sos file number lookup, right to transact business in texas, texas good standing check, certificate of account status texas, texas registered agent lookup, texas company officers lookup, new texas llc list, new business filings texas, texas business leads, texas kyb api, texas business verification, texas comptroller scraper, texas business registry api, texas entity search by naics, texas county business list

# Actor input Schema

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

Texas businesses to look up, one per line. Each name is searched on its own and capped by "Records per name". Leave empty to look up by number or to list entities by filter.

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

"Starts with" works like the Comptroller's own search and covers every status, forfeited and ended accounts included. "Contains" adds names that hold your words anywhere. "Exact" keeps the name itself, ignoring LLC, Inc and similar endings.

## `taxpayerNumbers` (type: `array`):

11-digit Texas taxpayer numbers or 9-digit federal EINs, one per line. Dashes and spaces are fine.

## `fileNumbers` (type: `array`):

Texas Secretary of State file numbers, 6 to 10 digits, one per line.

## `formedInLastDays` (type: `integer`):

Lists entities chartered in the last N days, newest first. New entities reach the Comptroller's open file two to three weeks after their charter date, so use 45 or more, and turn on "Only records not returned before" for a feed. Ignored when "Formed on or after" is set.

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

Charter date, YYYY-MM-DD.

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

Charter date, YYYY-MM-DD.

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

Mailing city, one per line, such as Austin or San Antonio.

## `counties` (type: `array`):

Texas county name, such as Travis or Harris, or the Comptroller county code 1 to 254.

## `zipCodes` (type: `array`):

Mailing ZIP, or a prefix of 2 to 4 digits such as 787.

## `naicsCodes` (type: `array`):

NAICS code or prefix, 2 to 6 digits. 2361 matches every residential building code under it.

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

LLC, corporation, nonprofit, limited partnership, general partnership, trust or association. A two-letter Comptroller code such as CL (Texas LLC) or CI (foreign LLC) also works.

## `includeDetails` (type: `boolean`):

On: right to transact as worded by the Comptroller, SOS status, state of formation, EIN, DBA, registered agent with office address, and officers and directors with addresses. Off: the listing row only (name, numbers, type, NAICS, county, charter date, mailing address), which is faster.

## `activeOnly` (type: `boolean`):

Keep only entities whose right to transact business in Texas is ACTIVE. Forfeited, ended and not-established accounts are skipped and not charged.

## `onlyNew` (type: `boolean`):

Skips entities an earlier run with the same memory name already returned. Pair it with a schedule and "Formed in the last N days" (45 or more) for a feed of new Texas businesses.

## `monitorName` (type: `string`):

Names the memory used by "Only records not returned before". Use one name per feed. Empty shares one memory for this actor.

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

The run stops after this many records. You are charged per record returned.

## `maxResultsPerName` (type: `integer`):

Most records returned for one company name.

## `maxConcurrency` (type: `integer`):

How many records are read in parallel. Lower it if you see failed lookups.

## `proxy` (type: `object`):

Not needed for normal runs. Set one only if your network policy requires it.

## Actor input object example

```json
{
  "companyNames": [
    "Buc-ee's"
  ],
  "matchMode": "startsWith",
  "includeDetails": true,
  "activeOnly": false,
  "onlyNew": false,
  "maxItems": 50,
  "maxResultsPerName": 25,
  "maxConcurrency": 5,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `entities` (type: `string`):

Every entity found, with right to transact, SOS status, registered agent, officers and addresses.

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

What each name and number found, numbers that matched nothing, names too broad to list in full, and searches that failed.

# 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 = {
    "companyNames": [
        "Buc-ee's"
    ],
    "maxItems": 50,
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/texas-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 = {
    "companyNames": ["Buc-ee's"],
    "maxItems": 50,
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("memo23/texas-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 '{
  "companyNames": [
    "Buc-ee'\''s"
  ],
  "maxItems": 50,
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call memo23/texas-business-entity-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/texas-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/khGS9576TTcLH3U55/builds/KdLUTFEngXYBfr83E/openapi.json
