# Small Business Leads & Federal Contractor List — SBA DSBS (`jungle_synthesizer/sba-crawler`) Actor

Build a small business lead list or federal contractor list from 450k+ verified businesses in the SBA Dynamic Small Business Search (DSBS). Includes contact details, 8(a) and HUBZone certifications, NAICS codes, and addresses across all 50 U.S. states.

- **URL**: https://apify.com/jungle\_synthesizer/sba-crawler.md
- **Developed by:** [BowTiedRaccoon](https://apify.com/jungle_synthesizer) (community)
- **Categories:** Lead generation, Business, Other
- **Stats:** 87 total users, 7 monthly users, 92.6% runs succeeded, 15 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## 🕷️ SBA.gov Business Directory Scraper

Scrape over 450,000 verified business listings from the [SBA Dynamic Small Business Search (DSBS)](https://sba.gov/), including detailed contact information, company capabilities, and business categorization by state and industry area.

***

### 🚀 Features

- Scrapes active SBA-registered businesses across all 50 U.S. states
- Filter results by state
- Outputs clean, structured data including:
  - Business name, contact, address
  - Capabilities narrative
  - Email, website, and SAM UEI
- Supports large-scale exports (up to hundreds of thousands of results)
- Stores results in your Apify dataset for easy download or API access

***

### 🛠️ Use Cases

- Build databases of SBA-verified businesses by region or industry
- Source leads for B2B outreach and supplier discovery
- Enrich CRM data with verified small business info
- Analyze U.S. small business trends by sector and geography

***

### 📥 Input Schema

```json
{
  "states": ["CA", "NY"],
  "maxItems": 1000
}
```

***

### 📥 Input Fields

| Field    | Type     | Description                                                                 |
|----------|----------|-----------------------------------------------------------------------------|
| states   | string\[] | Optional. List of U.S. state abbreviations (e.g., \["TX", "CA"]). Defaults to all states. |
| maxItems | number   | Optional. Maximum number of records to collect before stopping.              |

***

### 📤 Output Example

Each business listing is stored in the Apify dataset with the following fields:

```json
{
  "tin_id": "164050",
  "email": "james@example.com",
  "website": "https://www.acmesolutions.com",
  "naics_primary": "237311",
  "business_type_codes": "23~27~2X~HQ~LJ~OY",
  "last_update_date": 1747785400,
  "uei": "LLLEZW4D4SB8",
  "cage_code": "8DKF8",
  "contact_person": "JAMES JONES",
  "phone": "7654321000",
  "address_1": "123 Example Dr.",
  "city": "NY",
  "state": "NY",
  "zipcode": "100000",
  "county": "NYC",
  "legal_business_name": "JAMES JONES SMALL BUSINESS CO LLC",
  "congressional_district": "06",
  "concat_state_congressional_district": "New york-06",
  "county_code": "110",
  "msa": "13821",
  "legal_structure": "2L",
  "year_established": "2007",
  "naics_small_codes": [
    "237310"
  ],
  "meili_self_certifications": [
    "Minority-Owned Business",
    "Self-Certified Small Disadvantaged Business",
    "For Profit Organization",
    "DOT Certified DBE",
    "Limited Liability Company",
    "Black American Owned"
  ],
}
```

You can download results as JSON, CSV, or use the Apify API to access them programmatically.

### Need More Features?

If you'd like to add new data fields to this scraper or need a custom scraper for another purpose, feel free to [file an issue](https://console.apify.com/actors/pYzLyEbOLoMt56pI6/issues) or get in touch! We are always open to customizing the scraper to suit your needs.

### Why Choose This Scraper?

- **Efficient**: Handles large-scale scraping with robust session and concurrency management.
- **Customizable**: Easily tailor input options for specific scraping requirements.
- **Reliable**: Implements error-handling mechanisms to minimize interruptions.

***

**Further reading:** [Government Data You Didn't Know Was Scrapable: 13 Federal Databases in One Toolkit](https://orbtop.com/articles/government-data-you-didnt-know-was-scrapable/)

# Actor input Schema

## `sp_intended_usage` (type: `string`):

What will this data feed? E.g. lead lists, KYB checks, price tracking.

## `sp_improvement_suggestions` (type: `string`):

Provide any feedback or suggestions for improvements.

## `sp_contact` (type: `string`):

We'll personally help with your use case. No spam.

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

Select one or more U.S. states to scrape. Defaults to all states if empty.

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

Maximum number of businesses to scrape.

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

Filter by one or more NAICS industry codes (e.g. '541511' for custom programming). Empty = all industries. Use this to narrow output to a target sector before paying per record.

## `naicsPrimaryOnly` (type: `boolean`):

When true, only return businesses whose primary NAICS matches one of the codes above. When false (default), match against any NAICS the business reports.

## `minEmployees` (type: `integer`):

Only return businesses with at least this many employees (passes 'at-least' to DSBS businessSize filter). Empty = no minimum.

## `minAnnualRevenue` (type: `integer`):

Only return businesses with at least this annual gross revenue in USD (passes 'at-least' to DSBS annualRevenue filter). Empty = no minimum.

## `sbaCertifications` (type: `array`):

Filter to businesses holding active SBA certifications. Codes: '8a' (8(a) Business Development), 'wosb' (Women-Owned), 'edwosb' (Economically Disadvantaged WOSB), 'vosb' (Veteran-Owned), 'sdvosb' (Service-Disabled Veteran-Owned), 'hubzone' (HUBZone). Empty = no certification filter.

## Actor input object example

```json
{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "states": [
    "AZ"
  ],
  "maxItems": 200,
  "naicsPrimaryOnly": false
}
```

# Actor output Schema

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

No description

# 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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "states": [
        "AZ"
    ],
    "maxItems": 200,
    "naicsPrimaryOnly": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("jungle_synthesizer/sba-crawler").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 = {
    "sp_intended_usage": "Describe your intended use...",
    "sp_improvement_suggestions": "Share your suggestions here...",
    "sp_contact": "Share your email here...",
    "states": ["AZ"],
    "maxItems": 200,
    "naicsPrimaryOnly": False,
}

# Run the Actor and wait for it to finish
run = client.actor("jungle_synthesizer/sba-crawler").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 '{
  "sp_intended_usage": "Describe your intended use...",
  "sp_improvement_suggestions": "Share your suggestions here...",
  "sp_contact": "Share your email here...",
  "states": [
    "AZ"
  ],
  "maxItems": 200,
  "naicsPrimaryOnly": false
}' |
apify call jungle_synthesizer/sba-crawler --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jungle_synthesizer/sba-crawler",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/pYzLyEbOLoMt56pI6/builds/YkaOVwfzEI65z0s4B/openapi.json
