# US Business Entity Search (`lentic_clockss/us-business-entity-search`) Actor

Search business entities across 10+ US states and federal databases. Get company name, type, status, address, and filing date from official Secretary of State registries. Includes OFAC sanctions screening and SEC public company lookup.

- **URL**: https://apify.com/lentic\_clockss/us-business-entity-search.md
- **Developed by:** [kane liu](https://apify.com/lentic_clockss) (community)
- **Categories:** Lead generation, Automation
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-usage

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## US Business Entity Search

Apify Actor that queries the **SIP Public Data Gateway** over HTTPS—**no browser, no scraping** of Secretary of State sites. You provide search terms (and optional state filters); the Actor calls SIP’s unified APIs and returns normalized business entity rows plus optional OFAC / SEC / IRS nonprofit matches.

### What it does

- Search **10+ US state** corporate registries exposed through SIP (group `us_business_registry`), or restrict to specific **two-letter state codes**.
- When **all** registry states are selected (or `ALL`), the Actor uses **one** group request:  
  `GET /api/v1/data/groups/us_business_registry/search`  
  (fewer round-trips than per-state calls).
- Optional add-ons: **OFAC** sanctions (`us_ofac_sanctions`), **SEC** (`us_sec_edgar`), **IRS exempt organizations** (`us_irs_nonprofits`).

### Use cases

KYB / compliance checks, B2B lead enrichment, diligence, and competitive research—using **official registry-style** fields already normalized by SIP.

### Data sources (SIP products)

| Scope | product_id examples |
|--------|---------------------|
| State registries | `us_business_ny`, `us_business_tx`, `us_business_co`, `us_business_ct`, `us_business_ia`, `us_business_pa`, `us_business_or`, `us_business_ak`, `us_business_nj_corps` |
| Sanctions | `us_ofac_sanctions` |
| Public companies | `us_sec_edgar` |
| Nonprofits | `us_irs_nonprofits` |

Exact coverage depends on which products are **public and active** in your SIP deployment.

### Input

| Field | Description |
|--------|-------------|
| `searchTerms` | **Required.** List of strings to search (e.g. `["Google", "Acme LLC"]`). |
| `states` | Optional. `["ALL"]` (default) or any of `NY`, `TX`, `CO`, `CT`, `IA`, `PA`, `OR`, `AK`, `NJ`. Subsets use per-state product calls; full set uses **group search**. |
| `includeCompliance` | If true, also query OFAC + SEC for each term. |
| `includeNonprofits` | If true, also query IRS nonprofits. |
| `maxResultsPerState` | Cap per SIP request (SIP currently allows **1–200**; values above 200 are clamped). |

### Output (dataset items)

Each row is a SIP search hit, with extra Actor fields:

- **Business fields (examples):** `business_name`, `license_id`, `license_type`, `status`, `city`, `state`, `address`, `zip_code`, `issue_date`, `source_jurisdiction` (when present in the product schema).
- **Actor metadata:** `_product_id`, `_source` (state code like `NY`, or `US_REGISTRY_GROUP`, or `federal_ofac` / `federal_sec` / `federal_irs`), `_search_term`, `_collected_at`.

#### Example record (shape)

```json
{
  "license_id": "4809335",
  "business_name": "GOOGLE ACCESS LLC",
  "issue_date": "2015-08-24T00:00:00.000",
  "city": "Albany",
  "state": "NY",
  "license_type": "FOREIGN LIMITED LIABILITY COMPANY",
  "address": "80 STATE STREET",
  "zip_code": "12207",
  "_product_id": "us_business_ny",
  "_source": "NY",
  "_search_term": "google",
  "_collected_at": "2026-04-04T12:00:00Z"
}
````

### Configuration (secrets)

Set the SIP gateway key in the Apify Actor **environment** (recommended name):

| Variable | Description |
|----------|-------------|
| `SIP_API_KEY` | SIP **X-API-Key** value (mark as secret in Apify). |

Optional:

| Variable | Description |
|----------|-------------|
| `SIP_API_BASE` | Override gateway root, e.g. `https://your-sip-host/api/v1/data`. Default: `https://sip.myskillstore.dev/api/v1/data`. |

For local testing only, you may pass `sipApiKey` in input; **prefer environment variables on Apify** so keys are not stored in run input.

Create the key in SIP (SQL / admin) per your ops process—**do not commit keys** to git.

### Pricing (reference)

Target positioning from the product brief: a small **per-run start** fee plus **per-result** pricing (on the order of **~$2 per 1,000 results** combined). Configure exact USD amounts in the Apify Actor **Pricing** tab; this README does not lock prices.

### Local development

```bash
cd "/Users/kane/Projects/Apify Actors/sip-us-business-entity-scraper"
python3.13 -m venv .venv
.venv/bin/pip install -r requirements.txt
export SIP_API_KEY="your-key"
echo '{"searchTerms":["google"],"states":["NY","TX"],"maxResultsPerState":5}' > storage/key_value_stores/default/INPUT.json
apify run
```

Or:

```bash
SIP_API_KEY=... python -m src
```

(with `INPUT.json` under `storage/...` when using Apify CLI conventions).

### Deploy

```bash
apify login
apify push
```

Use `APIFY_TOKEN` or CLI login—never commit tokens.

### Legal

You must comply with SIP **terms of use**, Apify **terms**, and applicable **data protection** laws. This Actor is an API client to your own gateway; you are responsible for lawful use of downstream registry data.

# Actor input Schema

## `searchTerms` (type: `array`):

Business names or keywords to search (e.g. 'Google', 'Tesla Motors', 'Acme LLC'). Each term is searched across all selected states.

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

US states to query. Use ALL for one group search across the full registry group, or pick specific 2-letter codes.

## `includeCompliance` (type: `boolean`):

Also check OFAC sanctions list and SEC filings for each search term.

## `includeNonprofits` (type: `boolean`):

Also search IRS Exempt Organizations (nonprofits).

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

Maximum entities to return per SIP search call (gateway caps at 200).

## Actor input object example

```json
{
  "searchTerms": [
    "Google"
  ],
  "states": [
    "ALL"
  ],
  "includeCompliance": false,
  "includeNonprofits": false,
  "maxResultsPerState": 50
}
```

# Actor output Schema

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

Dataset containing all entity records

# 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 = {
    "searchTerms": [
        "Google"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("lentic_clockss/us-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 = { "searchTerms": ["Google"] }

# Run the Actor and wait for it to finish
run = client.actor("lentic_clockss/us-business-entity-search").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerms": [
    "Google"
  ]
}' |
apify call lentic_clockss/us-business-entity-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=lentic_clockss/us-business-entity-search",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "US Business Entity Search",
        "description": "Search business entities across 10+ US states and federal databases. Get company name, type, status, address, and filing date from official Secretary of State registries. Includes OFAC sanctions screening and SEC public company lookup.",
        "version": "0.1",
        "x-build-id": "l4w7Xm1zsVpUepjs5"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/lentic_clockss~us-business-entity-search/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-lentic_clockss-us-business-entity-search",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/lentic_clockss~us-business-entity-search/runs": {
            "post": {
                "operationId": "runs-sync-lentic_clockss-us-business-entity-search",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/lentic_clockss~us-business-entity-search/run-sync": {
            "post": {
                "operationId": "run-sync-lentic_clockss-us-business-entity-search",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "searchTerms"
                ],
                "properties": {
                    "searchTerms": {
                        "title": "Search terms",
                        "type": "array",
                        "description": "Business names or keywords to search (e.g. 'Google', 'Tesla Motors', 'Acme LLC'). Each term is searched across all selected states.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "states": {
                        "title": "States to search",
                        "type": "array",
                        "description": "US states to query. Use ALL for one group search across the full registry group, or pick specific 2-letter codes.",
                        "default": [
                            "ALL"
                        ],
                        "items": {
                            "type": "string"
                        }
                    },
                    "includeCompliance": {
                        "title": "Include compliance screening",
                        "type": "boolean",
                        "description": "Also check OFAC sanctions list and SEC filings for each search term.",
                        "default": false
                    },
                    "includeNonprofits": {
                        "title": "Include IRS nonprofits",
                        "type": "boolean",
                        "description": "Also search IRS Exempt Organizations (nonprofits).",
                        "default": false
                    },
                    "maxResultsPerState": {
                        "title": "Max results per source",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "Maximum entities to return per SIP search call (gateway caps at 200).",
                        "default": 50
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
