{
  "openapi": "3.0.1",
  "info": {
    "title": "SBA Small Business Search (DSBS) Scraper - Federal Contractors",
    "description": "SBA Small Business Search (DSBS) scraper and API for federal contractors in SAM.gov: keywords, states, NAICS codes or SBA certifications (8(a), HUBZone, WOSB, SDVOSB). One row per profile: UEI, CAGE, NAICS, capabilities, website, e-mail, phone. $0.80 per 1,000, lowest DSBS price on 23 Nov 2026.",
    "version": "1.0",
    "x-build-id": "8PtN0z7MMuXARllSj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~sba-small-business-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-sba-small-business-search-scraper",
        "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/rel8ble~sba-small-business-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-sba-small-business-search-scraper",
        "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/rel8ble~sba-small-business-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-sba-small-business-search-scraper",
        "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",
        "properties": {
          "searchTerm": {
            "title": "Search term",
            "type": "string",
            "description": "Words to search in business names, capabilities and keywords, e.g. \"cnc machining\", \"cybersecurity\", \"janitorial\". Results come in SBA relevance order."
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "US states or territories, by name (\"Ohio\") or 2-letter code (\"OH\"). Any of them matches. Accepted: Alabama, Alaska, American Samoa, Arizona, Arkansas, California, Colorado, Connecticut, Delaware, District of Columbia, Federated States of Micronesia, Florida, Georgia, Guam, Hawaii, Idaho, Illinois, Indiana, Iowa, Kansas, Kentucky, Louisiana, Maine, Marshall Islands, Maryland, Massachusetts, Michigan, Minnesota, Mississippi, Missouri, Montana, Nebraska, Nevada, New Hampshire, New Jersey, New Mexico, New York, North Carolina, North Dakota, Northern Mariana Islands, Ohio, Oklahoma, Oregon, Palau, Pennsylvania, Puerto Rico, Rhode Island, South Carolina, South Dakota, Tennessee, Texas, Utah, Vermont, Virginia, U.S. Virgin Islands, Washington, West Virginia, Wisconsin, Wyoming.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "6-digit NAICS codes, e.g. 332710 (machine shops), 541512 (computer systems design), 236220 (commercial building construction). A business matches when it is small under any of them.",
            "items": {
              "type": "string"
            }
          },
          "primaryNaicsOnly": {
            "title": "Primary NAICS only",
            "type": "boolean",
            "description": "Match the NAICS codes against the primary NAICS only.",
            "default": false
          },
          "sbaCertifications": {
            "title": "SBA certifications",
            "type": "array",
            "description": "Active SBA certifications. WOSB also matches EDWOSB firms; 8(a), VOSB and SDVOSB include their joint ventures.",
            "items": {
              "type": "string",
              "enum": [
                "8(a)",
                "HUBZone",
                "WOSB",
                "EDWOSB",
                "VOSB",
                "SDVOSB"
              ],
              "enumTitles": [
                "8(a) or 8(a) Joint Venture",
                "HUBZone",
                "Women-Owned Small Business (WOSB)",
                "Economically-Disadvantaged Women-Owned Small Business (EDWOSB)",
                "Veteran-Owned Small Business (VOSB)",
                "Service-Disabled Veteran-Owned Small Business (SDVOSB)"
              ]
            }
          },
          "sbaCertificationsMatch": {
            "title": "SBA certifications: match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "\"any\" = a business with at least one of the selected SBA certifications matches; \"all\" = it must have every one.",
            "default": "any"
          },
          "selfCertifications": {
            "title": "Self-certifications",
            "type": "array",
            "description": "Self-certified status in SAM.gov.",
            "items": {
              "type": "string",
              "enum": [
                "Self-Certified Small Disadvantaged Business",
                "Self-Certified HUBZone Joint Venture",
                "Self-Certified Veteran-Owned Small Business",
                "Self-Certified Woman-Owned Small Business",
                "Self-Certified Woman-Owned Small Business Joint Venture",
                "Community Development Corporation (CDC) Owned Small Business",
                "Native American Owned",
                "Tribally Owned Small Business",
                "American Indian Owned Small Business",
                "Alaskan Native Corp (ANC) Owned Small Business",
                "Native Hawaiian Org (NHO) Owned Small Business"
              ]
            }
          },
          "selfCertificationsMatch": {
            "title": "Self-certifications: match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "\"any\" = a business with at least one of the selected self-certifications matches; \"all\" = it must have every one.",
            "default": "any"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Exact keywords from the business profiles, e.g. \"Machining\", \"Welding\". For free-text use Search term.",
            "items": {
              "type": "string"
            }
          },
          "keywordsMatch": {
            "title": "Keywords: match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "\"any\" = a business with at least one of the selected keywords matches; \"all\" = it must have every one.",
            "default": "any"
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "5-digit ZIP codes.",
            "items": {
              "type": "string"
            }
          },
          "qualityStandards": {
            "title": "Quality assurance standards",
            "type": "array",
            "description": "Keep businesses that list these standards.",
            "items": {
              "type": "string",
              "enum": [
                "ANSI/ASQC Z1.4",
                "ISO 9000 Series",
                "ISO 10012-1",
                "MIL-Q-9858",
                "MIL-STD-45662A"
              ]
            }
          },
          "updatedWithin": {
            "title": "Profile updated",
            "enum": [
              "anytime",
              "past-3-months",
              "past-6-months",
              "past-year"
            ],
            "type": "string",
            "description": "Keep profiles updated recently.",
            "default": "anytime"
          },
          "activeSamOnly": {
            "title": "Active SAM.gov registration only",
            "type": "boolean",
            "description": "Keep only businesses with an active SAM.gov registration (can bid on federal contracts today).",
            "default": false
          },
          "onlyWithEmail": {
            "title": "Only rows with a business e-mail",
            "type": "boolean",
            "description": "Drop rows without an e-mail we can output (hidden by the owner or a free / ISP mailbox).",
            "default": false
          },
          "onlyWithWebsite": {
            "title": "Only rows with a website",
            "type": "boolean",
            "description": "Drop rows without a website.",
            "default": false
          },
          "onlyWithPhone": {
            "title": "Only rows with a phone",
            "type": "boolean",
            "description": "Drop rows without a public phone number.",
            "default": false
          },
          "minYearEstablished": {
            "title": "Established in or after",
            "minimum": 0,
            "maximum": 2100,
            "type": "integer",
            "description": "Keep businesses established in this year or later. 0 = no filter.",
            "default": 0
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Rows to save. 0 = all that match.",
            "default": 20
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}