# SBA Small Business Search Scraper — Federal Contractor Leads (`hipersoft/sba-dsbs-scraper`) Actor

Scrape the SBA Small Business Search (DSBS) directory of federal contractors: business name, UEI, CAGE, contact person, email, phone, website, address, NAICS codes, 8(a)/HUBZone/WOSB/SDVOSB certifications, capabilities and keywords. Filter by state, NAICS, certification.

- **URL**: https://apify.com/hipersoft/sba-dsbs-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.001 / business

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## SBA Small Business Search Scraper: Federal Contractor Leads with Contacts

**SBA Small Business Search Scraper** extracts business profiles from the **U.S. Small Business Administration's Small Business Search (SBS)**, formerly the **Dynamic Small Business Search (DSBS)**: the official directory where small businesses market themselves to federal agencies and prime contractors. For every business you get the **legal business name, DBA, UEI, CAGE code, contact person, email, phone, website, full address, county and congressional district, primary and all NAICS codes, SBA certifications (8(a), HUBZone, WOSB, EDWOSB, VOSB, SDVOSB), self-certifications, keywords, capabilities narrative, year established, legal structure, SAM status, bonding levels** and the profile link. Search by **keyword**, filter by **state, NAICS code, ZIP code or certification**, and export to **CSV, Excel or JSON**. Perfect for **teaming partner search, subcontractor sourcing and B2B lead generation in government contracting**.

### What does SBA Small Business Search Scraper do?

- 🔎 **Keyword search** across business names, capabilities and keywords: cybersecurity, roofing, janitorial, IT services…
- 🗺️ **State filter**: all 50 states, DC, Puerto Rico, Guam and the U.S. Virgin Islands.
- 🏷️ **NAICS filter**: find every small business registered under specific NAICS codes.
- 🎖️ **Certification filter**: 8(a), HUBZone, WOSB, EDWOSB, VOSB and SDVOSB.
- 📮 **ZIP code filter** for local sourcing.
- ✅ **Active SAM only** filter and **email-only** filter for outreach lists.
- 📇 **Contacts**: contact person, email, phone and website (as published by each business).
- 🆔 **Identifiers**: UEI and CAGE code for each business.
- 📝 **Capabilities narrative and keywords** to qualify partners quickly.
- 🏗️ **Bonding levels** for construction and service contractors.
- 📈 **Large exports**: tens of thousands of businesses per run.

### What data can you scrape from SBA Small Business Search?

| Field | Description |
|---|---|
| Business | Legal name, DBA, UEI, CAGE code, profile link |
| Contact | Contact person, email, phone, website |
| Location | Address, city, state, ZIP, county, congressional district |
| Industry | Primary NAICS, all NAICS codes, small-business NAICS codes |
| Certifications | Active SBA certifications, self-certifications |
| Profile | Keywords, capabilities narrative, capabilities statement link |
| Company | Year established, legal structure, SAM status, exporter |
| Bonding | Construction and service bonding per contract |
| Freshness | Last profile update date |

### Use cases for SBA small business data

- **Prime contractors**: find qualified small-business subcontractors to meet set-aside and subcontracting goals.
- **Teaming and joint ventures**: identify 8(a), HUBZone, WOSB and SDVOSB partners by NAICS and state.
- **B2B sales and marketing**: build targeted lead lists of government-focused small businesses.
- **Agencies and procurement officers**: run market research for set-aside decisions.
- **Consultants and service providers**: reach firms that need proposal writing, compliance or certification help.
- **Economic development**: map small-business capacity by region and industry.

### How to scrape SBA Small Business Search

1. Click **Try for free** to open SBA Small Business Search Scraper in Apify Console.
2. Enter **search terms** and/or pick **states**, **NAICS codes**, **certifications** or **ZIP codes**.
3. Optionally turn on **Only active SAM registrations** or **Only businesses with an email**.
4. Set **Max businesses** and click **Start**.
5. Download the businesses as **CSV, Excel or JSON**.

### Input

#### Example input

```json
{
  "searchTerms": ["cybersecurity"],
  "states": ["VA", "MD"],
  "certifications": ["sdvosb", "8a"],
  "withEmailOnly": true,
  "maxItems": 0
}
```

| Field | Description |
|---|---|
| **Search terms** | Keywords; one search each. |
| **States** | Only businesses in these states. |
| **NAICS codes** | Only businesses with these NAICS codes. |
| **SBA certifications** | Only businesses with one of these active certifications. |
| **ZIP codes** | Only businesses in these ZIP codes. |
| **Only active SAM registrations** | Skip businesses without an active SAM.gov registration. |
| **Only businesses with an email** | Skip businesses without an email address. |
| **Max businesses** | Stop after this many (0 = no limit). |

At least one search term or filter is required.

### Output

#### Business example

```json
{
  "businessName": "OZ Building Contractors, Inc",
  "uei": "W9JHUTB2KXN4",
  "cageCode": "4HJ65",
  "profileUrl": "https://search.certifications.sba.gov/profile/W9JHUTB2KXN4/4HJ65",
  "contactPerson": "MONA OZONE",
  "email": "obcinc@obcinctx.com",
  "phone": "8326236697",
  "website": "obcinctx.com",
  "address": "5330 Griggs Rd Ste G101",
  "city": "Houston",
  "state": "Texas",
  "zipCode": "77021",
  "county": "Harris County",
  "congressionalDistrict": "Texas-18",
  "naicsPrimary": "236220",
  "naicsCodes": ["236220", "237310", "238110", "238160", "238210", "238910"],
  "sbaCertifications": [],
  "selfCertifications": ["Minority-Owned Business", "Self-Certified Small Disadvantaged Business", "Women-Owned Small Business", "DOT Certified DBE"],
  "keywords": ["Drywall", "Metal Stud Framing", "Electrical", "Concrete", "Roofing"],
  "capabilities": "Oz Building Contractors, Inc.'s mission is to provide quality service through economic development…",
  "yearEstablished": 2005,
  "legalStructure": "Corporate Entity (not tax exempt)",
  "activeInSam": false,
  "constructionBondingPerContract": 2000000,
  "lastUpdated": "2022-03-11",
  "search": "\"roofing\" TX"
}
```

#### Output schema

| Field | Type | Description |
|---|---|---|
| `businessName`, `dbaName`, `uei`, `cageCode`, `profileUrl` | string | Business identity. |
| `contactPerson`, `email`, `phone`, `website` | string | Contact details. |
| `address`, `city`, `state`, `zipCode`, `county`, `congressionalDistrict` | string | Location. |
| `naicsPrimary`, `naicsCodes`, `naicsSmallCodes` | mixed | Industry codes. |
| `sbaCertifications`, `selfCertifications` | array | Certifications. |
| `keywords`, `capabilities`, `capabilitiesStatementUrl` | mixed | Capabilities. |
| `yearEstablished`, `legalStructure`, `activeInSam`, `exporter`, `qualityStandards` | mixed | Company info. |
| `constructionBondingPerContract`, `serviceBondingPerContract` | number | Bonding. |
| `lastUpdated` | string | Last profile update. |
| `search`, `scrapedAt` | string | Source info. |

### How much does it cost to scrape SBA Small Business Search?

The scraper uses **pay-per-business** pricing: a small fixed price per business, with automatic discounts on higher Apify plans. See the **Pricing** tab for the exact price.

### More government contracting data

- [SAM.gov Opportunities Scraper](https://apify.com/hipersoft/samgov-opportunities-scraper): federal contract opportunities.
- [USAspending Scraper](https://apify.com/hipersoft/usaspending-scraper): federal contract and grant awards.

### FAQ

**Is this the same as DSBS?**
Yes. SBA's Dynamic Small Business Search (DSBS) is now called Small Business Search (SBS); this scraper uses the current directory.

**How many businesses can I get?**
All businesses matching your filters, including tens of thousands for a whole state.

**Why are some emails or phones empty?**
Businesses choose whether to display their email, phone and address; hidden fields are left empty.

**Can I find 8(a) or HUBZone firms in my NAICS code?**
Yes. Combine **NAICS codes** with **SBA certifications** and optionally **States**.

**What formats can I export?**
CSV, Excel, JSON, XML, HTML and RSS, or read the results through the Apify API.

**Can I integrate this scraper with other apps?**
SBA Small Business Search Scraper can be connected with almost any cloud service or web app thanks to [integrations on the Apify platform](https://apify.com/integrations). It works with [Make](https://apify.com/integrations/make), [Zapier](https://apify.com/integrations/zapier), [Slack](https://docs.apify.com/platform/integrations/slack), [Airbyte](https://docs.apify.com/platform/integrations/airbyte), [GitHub](https://docs.apify.com/platform/integrations/github), [Google Drive](https://docs.apify.com/platform/integrations/drive) and [many more](https://apify.com/integrations), plus the [Apify API](https://docs.apify.com/api/v2), JS/Python clients and MCP. Or use [webhooks](https://docs.apify.com/platform/integrations/webhooks) to trigger an action whenever a run finishes.

**Is it legal to use this data?**
The directory is published by the SBA so that agencies and contractors can find small businesses. You are responsible for using contact details in line with applicable law, including anti-spam rules such as CAN-SPAM.

### Related Actors

- [SAM.gov Opportunities Scraper](https://apify.com/hipersoft/samgov-opportunities-scraper)
- [USAspending Scraper](https://apify.com/hipersoft/usaspending-scraper)

### Notes

Original clean-room implementation. Returns only publicly displayed data. Not affiliated with the U.S. Small Business Administration.

# Actor input Schema

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

Keywords matched against business names, capabilities and keywords, e.g. cybersecurity, roofing, janitorial, software development. Each term is a separate search.

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

Only businesses in these states. Each state is searched separately.

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

Only businesses registered under these NAICS codes, e.g. 541511, 238160, 561720.

## `certifications` (type: `array`):

Only businesses holding one of these active SBA certifications.

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

Only businesses in these 5-digit ZIP codes.

## `activeSamOnly` (type: `boolean`):

Only businesses with an active SAM.gov registration.

## `withEmailOnly` (type: `boolean`):

Skip businesses that do not list an email address.

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

Stop after this many businesses. 0 means no limit.

## `proxyConfiguration` (type: `object`):

Not required for normal use.

## Actor input object example

```json
{
  "searchTerms": [
    "cybersecurity"
  ],
  "activeSamOnly": false,
  "withEmailOnly": false,
  "maxItems": 50,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

The results as dataset items.

# 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": [
        "cybersecurity"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/sba-dsbs-scraper").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": ["cybersecurity"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/sba-dsbs-scraper").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 '{
  "searchTerms": [
    "cybersecurity"
  ],
  "maxItems": 50
}' |
apify call hipersoft/sba-dsbs-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hipersoft/sba-dsbs-scraper"
        }
    }
}
```

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/E2N7O6BkyhGrBm50Y/builds/7wXOMsuhG0oUyzpeA/openapi.json
