# SBA Small Business Search Scraper (`aboo.script/dsbs-sba-gov-scraper`) Actor

\[💰$2 / 1K] ⚡ Fast SBA Small Business Search (DSBS) scraper. No login, no API key. Find US federal contractors by keyword or profile URL, filter by state, NAICS and 8(a), HUBZone, WOSB or VOSB status. Get contacts, email, phone, capabilities, NAICS codes and past performance.

- **URL**: https://apify.com/aboo.script/dsbs-sba-gov-scraper.md
- **Developed by:** [Aboo Script](https://apify.com/aboo.script) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.40 / 1,000 results

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

![SBA Small Business Search Scraper](https://i.ibb.co/chsDzZSH/dsbs-sba-gov-banner.png)

**SBA Small Business Search Scraper** extracts US small business profiles from the [SBA Small Business Search](https://search.certifications.sba.gov/) (formerly DSBS, the Dynamic Small Business Search) into clean, structured data you can download as JSON, CSV, Excel, or HTML. Type a few keywords or paste profile URLs, and get the business name, contact person, email, phone, address, capabilities, NAICS codes, SBA certifications, and past performance for every result. No account or login required.

### Introduction

The [SBA Small Business Search](https://search.certifications.sba.gov/) is the official U.S. Small Business Administration directory that federal contracting officers, prime contractors, and agencies use to find small businesses for government contracts. Each profile shows who the business is, what it does, which NAICS codes it is small for, and which SBA certifications it holds, such as 8(a), HUBZone, WOSB, EDWOSB, VOSB, and SDVOSB.

This actor collects the same public information you see in your browser and turns it into a ready-to-use dataset. You can run it once, schedule it to run daily, or connect it to your own tools.

### What data can you extract from the SBA Small Business Search?

- 🏢 Business name, DBA name, UEI and CAGE code
- 👤 Contact person and current principals
- 📧 Email, phone, fax, website, and capability statement link
- 📍 Address, city, state, ZIP code, county, and congressional district
- 📝 Capabilities narrative, special equipment, and profile keywords
- 🏷️ Primary NAICS code and all NAICS codes with descriptions, small business and exception flags
- 🎖️ SBA certifications (8(a), HUBZone, WOSB, EDWOSB, VOSB, SDVOSB) with status, entrance and exit dates
- ✅ Self-certifications and ownership (veteran-owned, woman-owned, minority-owned, tribally owned, and more)
- 🏗️ Bonding levels, quality assurance standards, and non-federal certifications
- 🌎 Export activities, export markets, and export objective
- 📄 Past performance references, active SAM.gov status, size protest details, and last update date
- 🔗 Direct URL to each business profile

### Use Cases

- 🤝 **Teaming and subcontracting**: find certified small businesses to partner with on federal bids and subcontracting plans.
- 📈 **Market research**: see how many small businesses offer a service in a state, a NAICS code, or a certification program.
- 🕵️ **Competitor monitoring**: follow which firms compete in your NAICS codes and what certifications they hold.
- 📬 **Lead generation**: build contact lists of government contractors with email, phone, and contact person.
- 🗂️ **Database building**: create your own searchable catalog of federal small business suppliers.
- 🤖 **AI and automation**: feed clean, structured data into spreadsheets, dashboards, or AI workflows.

### How to scrape the SBA Small Business Search step by step

1. Type business names, services, or keywords into **Search queries**, or paste business profile links into **Profile URLs**.
2. Optionally narrow the search with filters such as **States and territories**, **NAICS codes**, or **SBA certifications**.
3. Set **Maximum number of results** to how many businesses you want per search query.
4. Click **Start** and wait for the run to finish.
5. Download your data in JSON, CSV, Excel, or HTML from the **Output** tab.

### Input

- **Search queries**: business names, capabilities, or keywords to search for, one per line, just like the search box on the website. Each query is scraped separately. Use `*` to get every business that matches your filters (at least one filter is needed).
- **Profile URLs**: business profile links from search.certifications.sba.gov, for example `https://search.certifications.sba.gov/profile/MED7NQ5ZKLL7/5KN15`. Old dsbs.sba.gov profile links with a SAM_UEI are supported too.
- **Maximum number of results**: how many businesses to collect for each search query. Use 0 for unlimited.
- **Sort by**: most relevant, alphabetical by business name, or recently updated.
- **States and territories**: only businesses located in the selected states or territories.
- **ZIP codes**: only businesses with these 5-digit ZIP codes.
- **NAICS codes**: only businesses that are small for at least one of these NAICS codes.
- **Primary NAICS code only**: match the NAICS codes against the primary NAICS code only.
- **SBA certifications**: only businesses with any of the selected active certifications: 8(a), HUBZone, WOSB, EDWOSB, VOSB, or SDVOSB.
- **Self-certifications and ownership**: only businesses with any of the selected self-certifications, such as veteran-owned, woman-owned, or Native American owned.
- **Profile keywords**: only businesses whose profile keywords contain these exact keywords.
- **Match all profile keywords**: require every profile keyword instead of any of them.
- **Last updated**: only profiles updated in the past 3 months, 6 months, or year.
- **Active SAM.gov registration only**: only businesses with an active SAM.gov registration.

Sorting and filters apply to search queries. You can use search queries, profile URLs, or both in the same run.

### Input Examples

Search by keyword:

```json
{
  "searchQueries": ["cybersecurity"],
  "maxResults": 5
}
```

Scrape a business profile:

```json
{
  "startUrls": [{ "url": "https://search.certifications.sba.gov/profile/MED7NQ5ZKLL7/5KN15" }],
  "maxResults": 5
}
```

Get 8(a) certified businesses in Texas, most recently updated first:

```json
{
  "searchQueries": ["*"],
  "states": ["TX"],
  "sbaCertifications": ["8a"],
  "sortBy": "recentlyUpdated",
  "maxResults": 5
}
```

### Output

Each business is saved as one item in the dataset. Here is an example of a single item:

```json
{
  "url": "https://search.certifications.sba.gov/profile/DFQTHQKV28A6/13GW6",
  "uei": "DFQTHQKV28A6",
  "cageCode": "13GW6",
  "businessName": "PROTEGO CYBERSECURITY LLC",
  "dbaName": null,
  "contactPerson": "DAVID SWISHER",
  "currentPrincipals": "David Swisher - Founder/CEO",
  "email": "dswisher@protegocss.com",
  "phone": "6023635683",
  "fax": null,
  "website": "https://www.protegocybersecurity.com/",
  "additionalWebsite": "https://protego.federalgovernment.info/",
  "address": "5031 E ARMOR ST",
  "address2": null,
  "city": "CAVE CREEK",
  "state": "Arizona",
  "zipCode": "85331",
  "county": null,
  "congressionalDistrict": "01",
  "yearEstablished": 2024,
  "legalStructure": "Corporate Entity (Not Tax Exempt)",
  "capabilitiesNarrative": "Protego Cybersecurity LLC is a veteran-owned cybersecurity advisory and\nconsultancy firm headquartered in Scottsdale, Arizona. ...",
  "capabilitiesStatementUrl": "https://protego.federalgovernment.info/files/PROTEGOCYBERSECURITYLLC-UPDATEDCapabilityStatement.pdf",
  "specialEquipment": "Threat intel origin, NIST CSF, CIS, PCI-DSS.....",
  "keywords": ["Cybersecurity", "CMMC", "Cyber Advisory", "Enterprise governance", "Fractional CISO", "PCI", "HIPAA", "SOC2"],
  "primaryNaics": "541512",
  "naicsCodes": [
    {
      "code": "541512",
      "description": "Computer Systems Design Services",
      "isPrimary": true,
      "isSmall": true,
      "isException": false
    },
    {
      "code": "541330",
      "description": "Military and Aerospace Equipment and Military Weapons",
      "isPrimary": false,
      "isSmall": true,
      "isException": true
    }
  ],
  "sbaCertifications": [
    {
      "name": "VOSB",
      "status": "Active",
      "isActive": true,
      "isPending": null,
      "isSuspended": null,
      "entranceDate": "2026-04-17",
      "exitDate": "2029-04-17",
      "caseNumber": null,
      "servicingOffice": null
    }
  ],
  "selfCertifications": ["For Profit Organization", "Limited Liability Company", "Veteran-Owned Business"],
  "qualityAssuranceStandards": [],
  "nonFederalCertifications": null,
  "constructionBondingPerContract": null,
  "constructionBondingAggregate": null,
  "serviceBondingPerContract": null,
  "serviceBondingAggregate": null,
  "isExporter": null,
  "exportActivities": null,
  "exportMarkets": null,
  "desiredExportRelationships": null,
  "exportObjective": null,
  "isSamActive": true,
  "servicingOffice": null,
  "sizeProtest": false,
  "sizeProtestNaics": [],
  "sizeProtestDate": null,
  "sizeDetermination": null,
  "performanceHistory": [],
  "lastUpdated": "2026-09-01T00:00:00.000Z"
}
```

You can download the dataset in JSON, CSV, Excel, XML, or HTML, or access it through the Apify API.

### Notes

- Profile URLs must be business profile pages; other links are skipped.
- Businesses can hide their email, phone, fax, or address on their profile. Hidden details are returned as `null`.
- A search query of `*` needs at least one filter; without filters the run stops with a message.
- Broad searches can match tens of thousands of businesses, so the first results can take a little longer to appear.
- Most relevant sorting uses the search query. With `*` there is no query to rank by, so results keep the website order.
- `performanceHistory` is only filled when the business has added past performance references to its profile.
- The same business found by two search queries is saved only once.

### Why use the SBA Small Business Search Scraper?

- ✅ **No login needed**: works with public data only, so there is no account to manage.
- 🎯 **Same filters as the website**: state, ZIP code, NAICS code, SBA certification, self-certification, keywords, last updated, and active SAM.gov registration.
- 📇 **Full profiles**: contact details, capabilities, NAICS descriptions, certification dates, and past performance in one item.
- 🧹 **Clean data**: numbers are real numbers, dates use one standard format, and website links are complete URLs.
- 💸 **Pay for what you need**: set a result limit per query and keep every run small and cheap.
- 🔄 **Ready for automation**: schedule runs, export to Google Sheets, or connect to Make, Zapier, and n8n.

### FAQ

#### How many results can I scrape?

You can set any number in **Maximum number of results**, or 0 for every match. The actor keeps going until it reaches your limit or runs out of matching businesses.

#### Do I need an SBA or SAM.gov account?

No. The actor only collects publicly available data. You do not need to log in or provide any account details.

#### Can I get every business with a certain certification?

Yes. Use `*` as the search query and pick the certification in **SBA certifications**. Add a state or NAICS code to narrow it down.

#### Can I scrape data on a schedule?

Yes. Use Apify Schedules to run the actor every hour, day, or week, and get fresh data automatically. Sort by **Recently updated** to see newly updated profiles first.

#### Why are some fields empty?

Some businesses do not fill in every part of their profile. When a value is not available, it is returned as `null` or an empty list.

#### Can I request a new feature or filter?

Yes. Right now the actor supports search queries, profile URLs, and the filters listed above. If you need other filters, such as county, congressional district, or bonding level, get in touch and they can be added.

#### Can I get a custom or private version?

Yes. The actor can be customized for your workflow, delivered as a private version, or a new scraper can be built for a different website. Use the contact details below.

### Need to scrape other company directories?

- [50/50 Women on Boards Scraper - US Public Companies](https://apify.com/aboo.script/5050wob-com-scraper): board gender diversity data of US public companies.
- [amfori Members Scraper](https://apify.com/aboo.script/amfori-org-scraper): amfori member companies with country and website.
- [1pacteclimat.fr Scraper - Signatory Companies](https://apify.com/aboo.script/1pacteclimat-fr-scraper): companies that signed the French business climate pledge.
- [ASC Certified Farms Scraper](https://apify.com/aboo.script/asc-aqua-org-scraper): ASC certified aquaculture farms with species and certificate details.

***

**Need help or want a custom solution?**

- 📧 Email: aboo.script@gmail.com
- 🧩 More scrapers: [Apify profile](https://apify.com/aboo.script)

### Image Credit

Image credit: [SBA Small Business Search](https://search.certifications.sba.gov/)

# Actor input Schema

## `searchQueries` (type: `array`):

Business names, capabilities or keywords to search for, like on the SBA Small Business Search page. Each query is scraped separately. Use \* to match every business (needs at least one filter below).

## `startUrls` (type: `array`):

Business profile URLs from search.certifications.sba.gov (for example https://search.certifications.sba.gov/profile/MED7NQ5ZKLL7/5KN15). Old dsbs.sba.gov profile links with SAM_UEI are supported too.

## `maxResults` (type: `integer`):

Maximum number of businesses to scrape per search query. Use 0 for unlimited.

## `sortBy` (type: `string`):

Order of the results. Most relevant uses the search query match; for the \* query the site order is kept. Applies to search queries only.

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

Only businesses located in these states or territories. Applies to search queries only.

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

Only businesses with these 5-digit ZIP codes. Applies to search queries only.

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

Only businesses that are small for at least one of these NAICS codes (for example 541511). Applies to search queries only.

## `primaryNaicsOnly` (type: `boolean`):

Match the NAICS codes above against the primary NAICS code only. Applies to search queries only.

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

Only businesses with any of these active SBA certifications. Applies to search queries only.

## `selfCertifications` (type: `array`):

Only businesses with any of these self-certifications or ownership types. Applies to search queries only.

## `keywords` (type: `array`):

Only businesses whose profile keywords contain these exact keywords (for example cybersecurity). Applies to search queries only.

## `matchAllKeywords` (type: `boolean`):

Require every profile keyword above instead of any of them. Applies to search queries only.

## `lastUpdated` (type: `string`):

Only profiles updated within this period. Applies to search queries only.

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

Only businesses with an active SAM.gov registration. Applies to search queries only.

## Actor input object example

```json
{
  "searchQueries": [
    "cybersecurity"
  ],
  "startUrls": [
    {
      "url": "https://search.certifications.sba.gov/profile/MED7NQ5ZKLL7/5KN15"
    }
  ],
  "maxResults": 5,
  "sortBy": "relevance",
  "primaryNaicsOnly": false,
  "matchAllKeywords": false,
  "lastUpdated": "anytime",
  "activeSamOnly": false
}
```

# Actor output Schema

## `overview` (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 = {
    "searchQueries": [
        "cybersecurity"
    ],
    "startUrls": [
        {
            "url": "https://search.certifications.sba.gov/profile/MED7NQ5ZKLL7/5KN15"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("aboo.script/dsbs-sba-gov-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 = {
    "searchQueries": ["cybersecurity"],
    "startUrls": [{ "url": "https://search.certifications.sba.gov/profile/MED7NQ5ZKLL7/5KN15" }],
}

# Run the Actor and wait for it to finish
run = client.actor("aboo.script/dsbs-sba-gov-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 '{
  "searchQueries": [
    "cybersecurity"
  ],
  "startUrls": [
    {
      "url": "https://search.certifications.sba.gov/profile/MED7NQ5ZKLL7/5KN15"
    }
  ]
}' |
apify call aboo.script/dsbs-sba-gov-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,aboo.script/dsbs-sba-gov-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/F3T3htQdvYSvN2yZH/builds/Z4wvtKe16MC41vTN5/openapi.json
