{
  "openapi": "3.0.1",
  "info": {
    "title": "SBA Small Business Search Scraper",
    "description": "[💰$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.",
    "version": "1.0",
    "x-build-id": "Z4wvtKe16MC41vTN5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/aboo.script~dsbs-sba-gov-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-aboo.script-dsbs-sba-gov-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/aboo.script~dsbs-sba-gov-scraper/runs": {
      "post": {
        "operationId": "runs-sync-aboo.script-dsbs-sba-gov-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/aboo.script~dsbs-sba-gov-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-aboo.script-dsbs-sba-gov-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": {
          "searchQueries": {
            "title": "Search queries",
            "type": "array",
            "description": "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).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Profile URLs",
            "type": "array",
            "description": "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.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxResults": {
            "title": "Maximum number of results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of businesses to scrape per search query. Use 0 for unlimited.",
            "default": 5
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "alphabetical",
              "recentlyUpdated"
            ],
            "type": "string",
            "description": "Order of the results. Most relevant uses the search query match; for the * query the site order is kept. Applies to search queries only.",
            "default": "relevance"
          },
          "states": {
            "title": "States and territories",
            "type": "array",
            "description": "Only businesses located in these states or territories. Applies to search queries only.",
            "items": {
              "type": "string",
              "enum": [
                "AL",
                "AK",
                "AS",
                "AZ",
                "AR",
                "CA",
                "CO",
                "CT",
                "DE",
                "DC",
                "FM",
                "FL",
                "GA",
                "GU",
                "HI",
                "ID",
                "IL",
                "IN",
                "IA",
                "KS",
                "KY",
                "LA",
                "ME",
                "MH",
                "MD",
                "MA",
                "MI",
                "MN",
                "MS",
                "MO",
                "MT",
                "NE",
                "NV",
                "NH",
                "NJ",
                "NM",
                "NY",
                "NC",
                "ND",
                "MP",
                "OH",
                "OK",
                "OR",
                "PW",
                "PA",
                "PR",
                "RI",
                "SC",
                "SD",
                "TN",
                "TX",
                "UT",
                "VT",
                "VA",
                "VI",
                "WA",
                "WV",
                "WI",
                "WY"
              ],
              "enumTitles": [
                "Alabama (AL)",
                "Alaska (AK)",
                "American Samoa (AS)",
                "Arizona (AZ)",
                "Arkansas (AR)",
                "California (CA)",
                "Colorado (CO)",
                "Connecticut (CT)",
                "Delaware (DE)",
                "District of Columbia (DC)",
                "Federated States of Micronesia (FM)",
                "Florida (FL)",
                "Georgia (GA)",
                "Guam (GU)",
                "Hawaii (HI)",
                "Idaho (ID)",
                "Illinois (IL)",
                "Indiana (IN)",
                "Iowa (IA)",
                "Kansas (KS)",
                "Kentucky (KY)",
                "Louisiana (LA)",
                "Maine (ME)",
                "Marshall Islands (MH)",
                "Maryland (MD)",
                "Massachusetts (MA)",
                "Michigan (MI)",
                "Minnesota (MN)",
                "Mississippi (MS)",
                "Missouri (MO)",
                "Montana (MT)",
                "Nebraska (NE)",
                "Nevada (NV)",
                "New Hampshire (NH)",
                "New Jersey (NJ)",
                "New Mexico (NM)",
                "New York (NY)",
                "North Carolina (NC)",
                "North Dakota (ND)",
                "Northern Mariana Islands (MP)",
                "Ohio (OH)",
                "Oklahoma (OK)",
                "Oregon (OR)",
                "Palau (PW)",
                "Pennsylvania (PA)",
                "Puerto Rico (PR)",
                "Rhode Island (RI)",
                "South Carolina (SC)",
                "South Dakota (SD)",
                "Tennessee (TN)",
                "Texas (TX)",
                "Utah (UT)",
                "Vermont (VT)",
                "Virginia (VA)",
                "U.S. Virgin Islands (VI)",
                "Washington (WA)",
                "West Virginia (WV)",
                "Wisconsin (WI)",
                "Wyoming (WY)"
              ]
            }
          },
          "zipCodes": {
            "title": "ZIP codes",
            "type": "array",
            "description": "Only businesses with these 5-digit ZIP codes. Applies to search queries only.",
            "items": {
              "type": "string"
            }
          },
          "naicsCodes": {
            "title": "NAICS codes",
            "type": "array",
            "description": "Only businesses that are small for at least one of these NAICS codes (for example 541511). Applies to search queries only.",
            "items": {
              "type": "string"
            }
          },
          "primaryNaicsOnly": {
            "title": "Primary NAICS code only",
            "type": "boolean",
            "description": "Match the NAICS codes above against the primary NAICS code only. Applies to search queries only.",
            "default": false
          },
          "sbaCertifications": {
            "title": "SBA certifications",
            "type": "array",
            "description": "Only businesses with any of these active SBA certifications. Applies to search queries only.",
            "items": {
              "type": "string",
              "enum": [
                "8a",
                "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)"
              ]
            }
          },
          "selfCertifications": {
            "title": "Self-certifications and ownership",
            "type": "array",
            "description": "Only businesses with any of these self-certifications or ownership types. Applies to search queries only.",
            "items": {
              "type": "string",
              "enum": [
                "smallDisadvantagedBusiness",
                "hubzoneJointVenture",
                "veteranOwned",
                "womanOwned",
                "womanOwnedJointVenture",
                "cdcOwned",
                "nativeAmericanOwned",
                "triballyOwned",
                "americanIndianOwned",
                "ancOwned",
                "nhoOwned"
              ],
              "enumTitles": [
                "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"
              ]
            }
          },
          "keywords": {
            "title": "Profile keywords",
            "type": "array",
            "description": "Only businesses whose profile keywords contain these exact keywords (for example cybersecurity). Applies to search queries only.",
            "items": {
              "type": "string"
            }
          },
          "matchAllKeywords": {
            "title": "Match all profile keywords",
            "type": "boolean",
            "description": "Require every profile keyword above instead of any of them. Applies to search queries only.",
            "default": false
          },
          "lastUpdated": {
            "title": "Last updated",
            "enum": [
              "anytime",
              "past-3-months",
              "past-6-months",
              "past-year"
            ],
            "type": "string",
            "description": "Only profiles updated within this period. Applies to search queries only.",
            "default": "anytime"
          },
          "activeSamOnly": {
            "title": "Active SAM.gov registration only",
            "type": "boolean",
            "description": "Only businesses with an active SAM.gov registration. Applies to search queries only.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}