# Sba Finder (`obicodes/sba-finder`) Actor

This actor calls the official SBA Small Business website and saves the returned businesses to the default dataset.

- **URL**: https://apify.com/obicodes/sba-finder.md
- **Developed by:** [Obicodes](https://apify.com/obicodes) (community)
- **Categories:** Automation, Developer tools
- **Features:** Limited permissions
- **Stats:** 8 total users, 1 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 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.

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 Certifications Search Actor

This actor calls the official SBA Small Business website and saves the returned businesses to the default dataset.

### Input

Key fields:

- `searchTerm` – optional full text search across name, UEI, CAGE code, keywords, etc. Defaults to `"car repair"`.
- `states` – array of two-letter state / territory codes. At least one filter (search term or state) must be provided; the SBA API rejects completely empty searches. Defaults to `["AZ", "CA", "FM", "FL"]`.
- `lastUpdated` – `"anytime"`, `"past-3-months"`, `"past-6-months"`, `"past-year"`, or `"custom"` with `customDateRange`. Defaults to `"past-year"`.
- `maxItems` – trim the returned array (0 keeps everything the API sends back). Defaults to `20`.

Example input:

```json
{
  "searchTerm": "car repair",
  "states": ["AZ", "CA", "FM", "FL"],
  "lastUpdated": "past-year",
  "maxItems": 20
}
```

### Output

- Default dataset contains one item per returned business, including:
  - Normalised fields (business name, UEI, CAGE, contact, location, NAICS codes, certifications, bonding levels, revenue, etc.).
  - `lastUpdateDateIso` – ISO timestamp converted from the epoch value.
  - `profile` + `profileError` if `includeProfiles` was enabled.
- `raw` – the untouched record from the `/_api/v2/search` response.
- The complete dataset contract is defined in `.actor/dataset_schema.json`.
- Key-value store record `OUTPUT` summarises total results, number stored, the exact filters sent to the API, and the `meili_filter` blob returned by the service.

Example Ouput:

```json

[
  {
    "entityDetailId": 475344,
    "uei": "EB7QHCTKC9C4",
    "cageCode": "99UG9",
    "businessName": "MY LITTLE HOUSE PRESCHOOL LLC",
    "dbaName": "",
    "samExtractCode": "A",
    "contact": {
      "name": "MARIA YANEZ",
      "phone": null,
      "email": null,
      "fax": null
    },
    "location": {
      "address1": null,
      "address2": null,
      "city": "HOLLYWOOD",
      "state": "Florida",
      "zipcode": "33024",
      "county": "Broward County",
      "countyCode": "011",
      "fipsCode": "12011",
      "congressionalDistrict": "25",
      "msa": "33100"
    },
    "website": "",
    "additionalWebsite": "http://mylittlehousepreschool.com",
    "capabilitiesNarrative": "My Little House Preschool LLC is a Small Woman Business located in Hollywood, FL. My Little House Preschool LLC delivers consistent and quality services to its customers with the highest level of integrity and great attention to their people and child care. They are passionate about their business and go to extraordinary lengths to satisfy their customers. My Little House Preschool vision is to create and strengthen relationships with their customers by providing exceptional service and consistently demonstrating their quality services. My Little House Preschool LLC and its employees take great pride in their work and in delighting their customers.",
    "capabilitiesLink": null,
    "naicsPrimary": "624410",
    "naicsAllCodes": [
      "611110",
      "624410"
    ],
    "naicsSmallCodes": [
      "611110",
      "624410"
    ],
    "naicsExceptionCodes": [],
    "sbaCertifications": [],
    "selfCertifications": [
      "Self-Certified Small Disadvantaged Business",
      "For Profit Organization",
      "Women-Owned Small Business",
      "Woman-Owned Business",
      "Limited Liability Company"
    ],
    "qualityAssuranceStandards": [],
    "bondingLevels": {
      "constructionPerContract": 0,
      "constructionAggregate": 0,
      "servicePerContract": 0,
      "serviceAggregate": 0
    },
    "exporter": {
      "status": null,
      "activities": null,
      "exportTo": null,
      "desiredRelationships": null,
      "objective": null
    },
    "businessSize": null,
    "annualRevenue": null,
    "yearEstablished": "2016",
    "lastUpdateDateUnix": 1739923200,
    "lastUpdateDateIso": "2025-02-19T00:00:00.000Z",
    "rankingScore": 0.484848484848485,
    "profile": null,
    "profileError": null,
    "raw": {
      "meili_primary_key": "eac34828-86aa-4b51-a18a-3e959e264295",
      "entity_detail_id": 475344,
      "email": null,
      "naics_primary": "624410",
      "naics_all_codes": [
        "611110",
        "624410"
      ],
      "naics_exception_codes": [],
      "business_type_codes": "27~2X~8W~A2~LJ",
      "qas_ansi_boolean": false,
      "qas_iso_9000_boolean": false,
      "qas_iso_10012_boolean": false,
      "qas_mil_q_boolean": false,
      "qas_mil_std_boolean": false,
      "self_small_boolean": true,
      "self_vosb_boolean": false,
      "self_cdc_boolean": false,
      "self_wosb_boolean": true,
      "self_wosb_jv_boolean": false,
      "self_native_owned_boolean": false,
      "self_american_indian_owned_boolean": false,
      "self_tribal_owned_boolean": false,
      "self_anc_owned_boolean": false,
      "self_nho_boolean": false,
      "self_hubzone_jv_boolean": false,
      "keywords": [],
      "last_update_date": 1739923200,
      "construction_bonding_per_contract": 0,
      "construction_bonding_aggregate": 0,
      "service_bonding_contract": 0,
      "service_bonding_aggregate": 0,
      "sam_extract_code": "A",
      "uei": "EB7QHCTKC9C4",
      "cage_code": "99UG9",
      "contact_person": "MARIA YANEZ",
      "fax": null,
      "phone": null,
      "address_1": null,
      "address_2": null,
      "website": "",
      "additional_website": "http://mylittlehousepreschool.com",
      "city": "HOLLYWOOD",
      "state": "Florida",
      "zipcode": "33024",
      "fips_code": "12011",
      "county": "Broward County",
      "capabilities_narrative": "My Little House Preschool LLC is a Small Woman Business located in Hollywood, FL. My Little House Preschool LLC delivers consistent and quality services to its customers with the highest level of integrity and great attention to their people and child care. They are passionate about their business and go to extraordinary lengths to satisfy their customers. My Little House Preschool vision is to create and strengthen relationships with their customers by providing exceptional service and consistently demonstrating their quality services. My Little House Preschool LLC and its employees take great pride in their work and in delighting their customers.",
      "capabilities_link": null,
      "legal_business_name": "MY LITTLE HOUSE PRESCHOOL LLC",
      "dba_name": "",
      "congressional_district": "25",
      "concat_state_congressional_district": "Florida-25",
      "county_code": "011",
      "msa": "33100",
      "current_principals": null,
      "legal_structure": "2K",
      "servicing_office": null,
      "sba_office_id": null,
      "special_equip_material": null,
      "exporter_status": null,
      "export_business_activities": null,
      "export_to": null,
      "desired_export_relationships": null,
      "export_objective": null,
      "business_size": null,
      "annual_revenue": null,
      "year_established": "2016",
      "non_fed_govt_certifications": null,
      "active_8a_boolean": false,
      "prev_8a_boolean": false,
      "active_8a_jv_boolean": false,
      "prev_8a_jv_boolean": false,
      "active_wosb_boolean": false,
      "prev_wosb_boolean": false,
      "active_edwosb_boolean": false,
      "prev_edwosb_boolean": false,
      "active_vosb_boolean": false,
      "prev_vosb_boolean": false,
      "active_vosb_jv_boolean": false,
      "prev_vosb_jv_boolean": false,
      "active_sdvosb_boolean": false,
      "prev_sdvosb_boolean": false,
      "active_sdvosb_jv_boolean": false,
      "prev_sdvosb_jv_boolean": false,
      "active_hz_boolean": false,
      "prev_hz_boolean": false,
      "size_protest_naics": [],
      "size_protest": false,
      "size_protest_date": null,
      "size_determination_description": null,
      "certs": [],
      "naics_small_codes": [
        "611110",
        "624410"
      ],
      "meili_self_certifications": [
        "Self-Certified Small Disadvantaged Business",
        "For Profit Organization",
        "Women-Owned Small Business",
        "Woman-Owned Business",
        "Limited Liability Company"
      ],
      "public_display": true,
      "public_display_limited": false,
      "qas_standards": [],
      "certStatus_8a": null,
      "certDateStart_8a": null,
      "certDateExit_8a": null,
      "certStatus_8aJV": null,
      "certDateStart_8aJV": null,
      "certDateExit_8aJV": null,
      "certStatus_HZ": null,
      "certDateStart_HZ": null,
      "certStatus_WOSB": null,
      "certDateStart_WOSB": null,
      "certPending_WOSB": null,
      "certStatus_EDWOSB": null,
      "certDateStart_EDWOSB": null,
      "certPending_EDWOSB": null,
      "certStatus_VOSB": null,
      "certDateStart_VOSB": null,
      "certDateExit_VOSB": null,
      "certStatus_VOSBJV": null,
      "certDateStart_VOSBJV": null,
      "certStatus_SDVOSB": null,
      "certDateStart_SDVOSB": null,
      "certDateExit_SDVOSB": null,
      "certStatus_SDVOSBJV": null,
      "certDateStart_SDVOSBJV": null,
      "display_phone": null,
      "display_email": null,
      "display_fax": null,
      "display_address": null,
      "_rankingScore": 0.484848484848485
    }
  },
  {
    "entityDetailId": 142153,
    "uei": "TH9KBPHZAZK8",
    "cageCode": "8NKD8",
    "businessName": "WES-CO INDUSTRIES",
    "dbaName": "",
    "samExtractCode": "A",
    "contact": {
      "name": "MARKO ZIVANOVIC",
      "phone": null,
      "email": null,
      "fax": null
    },
    "location": {
      "address1": null,
      "address2": null,
      "city": "SAN LEANDRO",
      "state": "California",
      "zipcode": "94577",
      "county": "Alameda County",
      "countyCode": "001",
      "fipsCode": "06001",
      "congressionalDistrict": "12",
      "msa": "41860"
    },
    "website": "https://wescoindustries.com",
    "additionalWebsite": "https://wescoindustries.com",
    "capabilitiesNarrative": "WES-CO Industries is a Design-Build Contractor, serving Mechanical, Electrical, Plumbing, and related needs of Public and Private Owners and Prime Contractors. Our innovative team provides turn-key Environmental Air Control Systems, with focus on HVAC/R and Industrial Ventilation (Dust Collection), through our in-house Engineering Group Professionals and skilled Field Installation Tradespeople, to deliver Lean, Efficient, and Effective Solutions.",
    "capabilitiesLink": null,
    "naicsPrimary": "238220",
    "naicsAllCodes": [
      "236210",
      "236220",
      "238210",
      "238220",
      "238390",
      "332322",
      "333413",
      "423830",
      "541620"
    ],
    "naicsSmallCodes": [
      "236210",
      "236220",
      "238210",
      "238220",
      "238390",
      "332322",
      "333413",
      "423830",
      "541620"
    ],
    "naicsExceptionCodes": [],
    "sbaCertifications": [],
    "selfCertifications": [
      "Self-Certified Small Disadvantaged Business",
      "For Profit Organization",
      "Manufacturer of Goods"
    ],
    "qualityAssuranceStandards": [],
    "bondingLevels": {
      "constructionPerContract": 500000,
      "constructionAggregate": 500000,
      "servicePerContract": 0,
      "serviceAggregate": 0
    },
    "exporter": {
      "status": "N",
      "activities": null,
      "exportTo": null,
      "desiredRelationships": null,
      "objective": null
    },
    "businessSize": null,
    "annualRevenue": null,
    "yearEstablished": "1966",
    "lastUpdateDateUnix": 1745798400,
    "lastUpdateDateIso": "2025-04-28T00:00:00.000Z",
    "rankingScore": 0.303030303030303,
    "profile": null,
    "profileError": null,
    "raw": {
      "meili_primary_key": "1a21e6f5-2bcc-4076-8032-62026e47de01",
      "entity_detail_id": 142153,
      "email": null,
      "naics_primary": "238220",
      "naics_all_codes": [
        "236210",
        "236220",
        "238210",
        "238220",
        "238390",
        "332322",
        "333413",
        "423830",
        "541620"
      ],
      "naics_exception_codes": [],
      "business_type_codes": "27~2X~MF",
      "qas_ansi_boolean": false,
      "qas_iso_9000_boolean": false,
      "qas_iso_10012_boolean": false,
      "qas_mil_q_boolean": false,
      "qas_mil_std_boolean": false,
      "self_small_boolean": true,
      "self_vosb_boolean": false,
      "self_cdc_boolean": false,
      "self_wosb_boolean": false,
      "self_wosb_jv_boolean": false,
      "self_native_owned_boolean": false,
      "self_american_indian_owned_boolean": false,
      "self_tribal_owned_boolean": false,
      "self_anc_owned_boolean": false,
      "self_nho_boolean": false,
      "self_hubzone_jv_boolean": false,
      "keywords": [],
      "last_update_date": 1745798400,
      "construction_bonding_per_contract": 500000,
      "construction_bonding_aggregate": 500000,
      "service_bonding_contract": 0,
      "service_bonding_aggregate": 0,
      "sam_extract_code": "A",
      "uei": "TH9KBPHZAZK8",
      "cage_code": "8NKD8",
      "contact_person": "MARKO ZIVANOVIC",
      "fax": null,
      "phone": null,
      "address_1": null,
      "address_2": null,
      "website": "https://wescoindustries.com",
      "additional_website": "https://wescoindustries.com",
      "city": "SAN LEANDRO",
      "state": "California",
      "zipcode": "94577",
      "fips_code": "06001",
      "county": "Alameda County",
      "capabilities_narrative": "WES-CO Industries is a Design-Build Contractor, serving Mechanical, Electrical, Plumbing, and related needs of Public and Private Owners and Prime Contractors. Our innovative team provides turn-key Environmental Air Control Systems, with focus on HVAC/R and Industrial Ventilation (Dust Collection), through our in-house Engineering Group Professionals and skilled Field Installation Tradespeople, to deliver Lean, Efficient, and Effective Solutions.",
      "capabilities_link": null,
      "legal_business_name": "WES-CO INDUSTRIES",
      "dba_name": "",
      "congressional_district": "12",
      "concat_state_congressional_district": "California-12",
      "county_code": "001",
      "msa": "41860",
      "current_principals": "Zivorad Zivanovic - President & Treasurer; Dragana Zivanovic - Secretary",
      "legal_structure": "2L",
      "servicing_office": null,
      "sba_office_id": null,
      "special_equip_material": null,
      "exporter_status": "N",
      "export_business_activities": null,
      "export_to": null,
      "desired_export_relationships": null,
      "export_objective": null,
      "business_size": null,
      "annual_revenue": null,
      "year_established": "1966",
      "non_fed_govt_certifications": null,
      "active_8a_boolean": false,
      "prev_8a_boolean": false,
      "active_8a_jv_boolean": false,
      "prev_8a_jv_boolean": false,
      "active_wosb_boolean": false,
      "prev_wosb_boolean": false,
      "active_edwosb_boolean": false,
      "prev_edwosb_boolean": false,
      "active_vosb_boolean": false,
      "prev_vosb_boolean": false,
      "active_vosb_jv_boolean": false,
      "prev_vosb_jv_boolean": false,
      "active_sdvosb_boolean": false,
      "prev_sdvosb_boolean": false,
      "active_sdvosb_jv_boolean": false,
      "prev_sdvosb_jv_boolean": false,
      "active_hz_boolean": false,
      "prev_hz_boolean": false,
      "size_protest_naics": [],
      "size_protest": false,
      "size_protest_date": null,
      "size_determination_description": null,
      "certs": [],
      "naics_small_codes": [
        "236210",
        "236220",
        "238210",
        "238220",
        "238390",
        "332322",
        "333413",
        "423830",
        "541620"
      ],
      "meili_self_certifications": [
        "Self-Certified Small Disadvantaged Business",
        "For Profit Organization",
        "Manufacturer of Goods"
      ],
      "public_display": true,
      "public_display_limited": false,
      "qas_standards": [],
      "certStatus_8a": null,
      "certDateStart_8a": null,
      "certDateExit_8a": null,
      "certStatus_8aJV": null,
      "certDateStart_8aJV": null,
      "certDateExit_8aJV": null,
      "certStatus_HZ": null,
      "certDateStart_HZ": null,
      "certStatus_WOSB": null,
      "certDateStart_WOSB": null,
      "certPending_WOSB": null,
      "certStatus_EDWOSB": null,
      "certDateStart_EDWOSB": null,
      "certPending_EDWOSB": null,
      "certStatus_VOSB": null,
      "certDateStart_VOSB": null,
      "certDateExit_VOSB": null,
      "certStatus_VOSBJV": null,
      "certDateStart_VOSBJV": null,
      "certStatus_SDVOSB": null,
      "certDateStart_SDVOSB": null,
      "certDateExit_SDVOSB": null,
      "certStatus_SDVOSBJV": null,
      "certDateStart_SDVOSBJV": null,
      "display_phone": null,
      "display_email": null,
      "display_fax": null,
      "display_address": null,
      "_rankingScore": 0.303030303030303
    }
  },
  {
    "entityDetailId": 295390,
    "uei": "P5C1PLR5N919",
    "cageCode": "9PRZ5",
    "businessName": "FORT WALTON BEACH HOTELS, LLC",
    "dbaName": "BEAL HOUSE FORT WALTON BEACHFRONT",
    "samExtractCode": "A",
    "contact": {
      "name": "ALICE SMITH",
      "phone": null,
      "email": null,
      "fax": null
    },
    "location": {
      "address1": null,
      "address2": null,
      "city": "FORT WALTON BEACH",
      "state": "Florida",
      "zipcode": "32548",
      "county": "Spartanburg County",
      "countyCode": "083",
      "fipsCode": "12083",
      "congressionalDistrict": "01",
      "msa": "43900"
    },
    "website": "",
    "additionalWebsite": null,
    "capabilitiesNarrative": null,
    "capabilitiesLink": null,
    "naicsPrimary": "721110",
    "naicsAllCodes": [
      "721110"
    ],
    "naicsSmallCodes": [
      "721110"
    ],
    "naicsExceptionCodes": [],
    "sbaCertifications": [],
    "selfCertifications": [
      "For Profit Organization"
    ],
    "qualityAssuranceStandards": [],
    "bondingLevels": {
      "constructionPerContract": null,
      "constructionAggregate": null,
      "servicePerContract": null,
      "serviceAggregate": null
    },
    "exporter": {
      "status": null,
      "activities": null,
      "exportTo": null,
      "desiredRelationships": null,
      "objective": null
    },
    "businessSize": null,
    "annualRevenue": null,
    "yearEstablished": "2022",
    "lastUpdateDateUnix": 1757980800,
    "lastUpdateDateIso": "2025-09-16T00:00:00.000Z",
    "rankingScore": 0.41991341991342,
    "profile": null,
    "profileError": null,
    "raw": {
      "meili_primary_key": "30e1a2c4-0a7e-4ebf-a092-04feb1e832de",
      "entity_detail_id": 295390,
      "email": null,
      "naics_primary": "721110",
      "naics_all_codes": [
        "721110"
      ],
      "naics_exception_codes": [],
      "business_type_codes": "2X",
      "qas_ansi_boolean": false,
      "qas_iso_9000_boolean": false,
      "qas_iso_10012_boolean": false,
      "qas_mil_q_boolean": false,
      "qas_mil_std_boolean": false,
      "self_small_boolean": false,
      "self_vosb_boolean": false,
      "self_cdc_boolean": false,
      "self_wosb_boolean": false,
      "self_wosb_jv_boolean": false,
      "self_native_owned_boolean": false,
      "self_american_indian_owned_boolean": false,
      "self_tribal_owned_boolean": false,
      "self_anc_owned_boolean": false,
      "self_nho_boolean": false,
      "self_hubzone_jv_boolean": false,
      "keywords": [],
      "last_update_date": 1757980800,
      "construction_bonding_per_contract": null,
      "construction_bonding_aggregate": null,
      "service_bonding_contract": null,
      "service_bonding_aggregate": null,
      "sam_extract_code": "A",
      "uei": "P5C1PLR5N919",
      "cage_code": "9PRZ5",
      "contact_person": "ALICE SMITH",
      "fax": null,
      "phone": null,
      "address_1": null,
      "address_2": null,
      "website": "",
      "additional_website": null,
      "city": "FORT WALTON BEACH",
      "state": "Florida",
      "zipcode": "32548",
      "fips_code": "12083",
      "county": "Spartanburg County",
      "capabilities_narrative": null,
      "capabilities_link": null,
      "legal_business_name": "FORT WALTON BEACH HOTELS, LLC",
      "dba_name": "BEAL HOUSE FORT WALTON BEACHFRONT",
      "congressional_district": "01",
      "concat_state_congressional_district": "Florida-01",
      "county_code": "083",
      "msa": "43900",
      "current_principals": null,
      "legal_structure": "2L",
      "servicing_office": null,
      "sba_office_id": null,
      "special_equip_material": null,
      "exporter_status": null,
      "export_business_activities": null,
      "export_to": null,
      "desired_export_relationships": null,
      "export_objective": null,
      "business_size": null,
      "annual_revenue": null,
      "year_established": "2022",
      "non_fed_govt_certifications": null,
      "active_8a_boolean": false,
      "prev_8a_boolean": false,
      "active_8a_jv_boolean": false,
      "prev_8a_jv_boolean": false,
      "active_wosb_boolean": false,
      "prev_wosb_boolean": false,
      "active_edwosb_boolean": false,
      "prev_edwosb_boolean": false,
      "active_vosb_boolean": false,
      "prev_vosb_boolean": false,
      "active_vosb_jv_boolean": false,
      "prev_vosb_jv_boolean": false,
      "active_sdvosb_boolean": false,
      "prev_sdvosb_boolean": false,
      "active_sdvosb_jv_boolean": false,
      "prev_sdvosb_jv_boolean": false,
      "active_hz_boolean": false,
      "prev_hz_boolean": false,
      "size_protest_naics": [],
      "size_protest": false,
      "size_protest_date": null,
      "size_determination_description": null,
      "certs": [],
      "naics_small_codes": [
        "721110"
      ],
      "meili_self_certifications": [
        "For Profit Organization"
      ],
      "public_display": true,
      "public_display_limited": false,
      "qas_standards": [],
      "certStatus_8a": null,
      "certDateStart_8a": null,
      "certDateExit_8a": null,
      "certStatus_8aJV": null,
      "certDateStart_8aJV": null,
      "certDateExit_8aJV": null,
      "certStatus_HZ": null,
      "certDateStart_HZ": null,
      "certStatus_WOSB": null,
      "certDateStart_WOSB": null,
      "certPending_WOSB": null,
      "certStatus_EDWOSB": null,
      "certDateStart_EDWOSB": null,
      "certPending_EDWOSB": null,
      "certStatus_VOSB": null,
      "certDateStart_VOSB": null,
      "certDateExit_VOSB": null,
      "certStatus_VOSBJV": null,
      "certDateStart_VOSBJV": null,
      "certStatus_SDVOSB": null,
      "certDateStart_SDVOSB": null,
      "certDateExit_SDVOSB": null,
      "certStatus_SDVOSBJV": null,
      "certDateStart_SDVOSBJV": null,
      "display_phone": null,
      "display_email": null,
      "display_fax": null,
      "display_address": null,
      "_rankingScore": 0.41991341991342
    }
  }]
```

### Notes

- The SBA API returns HTTP 500 when no filters are applied; the actor checks this upfront and fails fast with a descriptive message.
- When using `includeProfiles`, keep `profileConcurrency` reasonable to avoid overloading the SBA service.

# Actor input Schema

## `searchTerm` (type: `string`):

Full text query used by the Search SBA website (business name, UEI, CAGE code, keywords, etc.).

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

Select one or more two-letter state / territory codes.

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

Filter by when the SBA profile was last updated.

## `customDateRange` (type: `object`):

Only used when lastUpdated = custom. Dates are interpreted as YYYY-MM-DD.

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

Limit the number of businesses stored to the dataset (0 keeps everything).

## Actor input object example

```json
{
  "searchTerm": "car repair",
  "states": [
    "AZ",
    "CA",
    "FM",
    "FL"
  ],
  "lastUpdated": "past-year",
  "maxItems": 20
}
```

# 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 = {
    "searchTerm": "car repair",
    "states": [
        "AZ",
        "CA",
        "FM",
        "FL"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("obicodes/sba-finder").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 = {
    "searchTerm": "car repair",
    "states": [
        "AZ",
        "CA",
        "FM",
        "FL",
    ],
}

# Run the Actor and wait for it to finish
run = client.actor("obicodes/sba-finder").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 '{
  "searchTerm": "car repair",
  "states": [
    "AZ",
    "CA",
    "FM",
    "FL"
  ]
}' |
apify call obicodes/sba-finder --silent --output-dataset

```

## MCP server setup

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

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/OybZndKpbSGhwoee6/builds/vJLbzlFhg9raEx1pQ/openapi.json
