{
  "data": {
    "id": "wEIFBh05Vywiqqs7t",
    "actId": "og7SVG0cv9HByYWXi",
    "userId": "IYgBDiXtHOijAaUel",
    "startedAt": "2026-11-06T10:25:58.778Z",
    "finishedAt": "2026-11-06T10:26:07.842Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CLI"
    },
    "stats": {
      "durationMillis": 8955,
      "runTimeSecs": 8.955,
      "computeUnits": 0.00995,
      "imageSizeBytes": 359623168
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "QYo53EZkJk0prePWY",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"BizBuySell Businesses-for-Sale Scraper Input\",\n  \"description\": \"Search BizBuySell by keyword, state, city, county, industry, price, cash flow, revenue and listing type, paste search/listing URLs and IDs, or monitor new and changed listings across runs with a state key.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"type\": \"string\",\n      \"description\": \"What to scrape. Search runs a filtered marketplace query; byUrls accepts BizBuySell search or listing URLs; byListingIds looks up exact listing IDs.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"search\",\n        \"byUrls\",\n        \"byListingIds\"\n      ],\n      \"enumTitles\": [\n        \"Search listings\",\n        \"Scrape BizBuySell URLs\",\n        \"Look up listing IDs\"\n      ],\n      \"default\": \"search\",\n      \"prefill\": \"search\"\n    },\n    \"searchQuery\": {\n      \"title\": \"Keyword\",\n      \"type\": \"string\",\n      \"description\": \"Free-text keyword, e.g. laundromat, restaurant, HVAC, car wash. Leave blank to browse all listings. (mode=search)\",\n      \"editor\": \"textfield\",\n      \"prefill\": \"laundromat\"\n    },\n    \"state\": {\n      \"title\": \"State\",\n      \"type\": \"string\",\n      \"description\": \"US state filter. Choose All states to search nationwide. (mode=search)\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"ALL\",\n        \"AL\",\n        \"AK\",\n        \"AZ\",\n        \"AR\",\n        \"CA\",\n        \"CO\",\n        \"CT\",\n        \"DE\",\n        \"DC\",\n        \"FL\",\n        \"GA\",\n        \"HI\",\n        \"ID\",\n        \"IL\",\n        \"IN\",\n        \"IA\",\n        \"KS\",\n        \"KY\",\n        \"LA\",\n        \"ME\",\n        \"MD\",\n        \"MA\",\n        \"MI\",\n        \"MN\",\n        \"MS\",\n        \"MO\",\n        \"MT\",\n        \"NE\",\n        \"NV\",\n        \"NH\",\n        \"NJ\",\n        \"NM\",\n        \"NY\",\n        \"NC\",\n        \"ND\",\n        \"OH\",\n        \"OK\",\n        \"OR\",\n        \"PA\",\n        \"RI\",\n        \"SC\",\n        \"SD\",\n        \"TN\",\n        \"TX\",\n        \"UT\",\n        \"VT\",\n        \"VA\",\n        \"WA\",\n        \"WV\",\n        \"WI\",\n        \"WY\"\n      ],\n      \"enumTitles\": [\n        \"All states\",\n        \"Alabama\",\n        \"Alaska\",\n        \"Arizona\",\n        \"Arkansas\",\n        \"California\",\n        \"Colorado\",\n        \"Connecticut\",\n        \"Delaware\",\n        \"District of Columbia\",\n        \"Florida\",\n        \"Georgia\",\n        \"Hawaii\",\n        \"Idaho\",\n        \"Illinois\",\n        \"Indiana\",\n        \"Iowa\",\n        \"Kansas\",\n        \"Kentucky\",\n        \"Louisiana\",\n        \"Maine\",\n        \"Maryland\",\n        \"Massachusetts\",\n        \"Michigan\",\n        \"Minnesota\",\n        \"Mississippi\",\n        \"Missouri\",\n        \"Montana\",\n        \"Nebraska\",\n        \"Nevada\",\n        \"New Hampshire\",\n        \"New Jersey\",\n        \"New Mexico\",\n        \"New York\",\n        \"North Carolina\",\n        \"North Dakota\",\n        \"Ohio\",\n        \"Oklahoma\",\n        \"Oregon\",\n        \"Pennsylvania\",\n        \"Rhode Island\",\n        \"South Carolina\",\n        \"South Dakota\",\n        \"Tennessee\",\n        \"Texas\",\n        \"Utah\",\n        \"Vermont\",\n        \"Virginia\",\n        \"Washington\",\n        \"West Virginia\",\n        \"Wisconsin\",\n        \"Wyoming\"\n      ],\n      \"default\": \"ALL\",\n      \"prefill\": \"ALL\"\n    },\n    \"city\": {\n      \"title\": \"City\",\n      \"type\": \"string\",\n      \"description\": \"Optional city filter, e.g. Austin or Los Angeles. Resolved against BizBuySell locations. (mode=search)\",\n      \"editor\": \"textfield\",\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"county\": {\n      \"title\": \"County\",\n      \"type\": \"string\",\n      \"description\": \"Optional county filter, e.g. Los Angeles County. Resolved against BizBuySell locations. (mode=search)\",\n      \"editor\": \"textfield\",\n      \"default\": \"\",\n      \"prefill\": \"\"\n    },\n    \"category\": {\n      \"title\": \"Industry / category\",\n      \"type\": \"string\",\n      \"description\": \"BizBuySell industry category. Choose All categories to search every industry. (mode=search)\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"ALL\",\n        \"88\",\n        \"134\",\n        \"132\",\n        \"133\",\n        \"135\",\n        \"136\",\n        \"23\",\n        \"3\",\n        \"108\",\n        \"119\",\n        \"8\",\n        \"137\",\n        \"12\",\n        \"226\",\n        \"138\",\n        \"139\",\n        \"140\",\n        \"141\",\n        \"24\",\n        \"142\",\n        \"143\",\n        \"144\",\n        \"145\",\n        \"232\",\n        \"146\",\n        \"81\",\n        \"5\",\n        \"217\",\n        \"147\",\n        \"90\",\n        \"83\",\n        \"123\",\n        \"231\",\n        \"222\",\n        \"148\",\n        \"224\",\n        \"149\",\n        \"93\",\n        \"103\",\n        \"97\",\n        \"102\",\n        \"95\",\n        \"96\",\n        \"98\",\n        \"106\",\n        \"105\",\n        \"107\",\n        \"104\",\n        \"99\",\n        \"101\",\n        \"89\",\n        \"150\",\n        \"151\",\n        \"152\",\n        \"27\",\n        \"109\",\n        \"153\",\n        \"154\",\n        \"228\",\n        \"155\",\n        \"22\",\n        \"40\",\n        \"156\",\n        \"157\",\n        \"158\",\n        \"159\",\n        \"160\",\n        \"161\",\n        \"162\",\n        \"118\",\n        \"28\",\n        \"29\",\n        \"211\",\n        \"116\",\n        \"183\",\n        \"31\",\n        \"113\",\n        \"218\",\n        \"179\",\n        \"180\",\n        \"112\",\n        \"181\",\n        \"182\",\n        \"221\",\n        \"234\",\n        \"223\",\n        \"191\",\n        \"57\",\n        \"77\",\n        \"59\",\n        \"58\",\n        \"60\",\n        \"70\",\n        \"62\",\n        \"63\",\n        \"74\",\n        \"64\",\n        \"66\",\n        \"184\",\n        \"185\",\n        \"61\",\n        \"91\",\n        \"121\",\n        \"69\",\n        \"73\",\n        \"186\",\n        \"68\",\n        \"92\",\n        \"213\",\n        \"115\",\n        \"25\",\n        \"131\",\n        \"56\",\n        \"55\",\n        \"52\",\n        \"209\",\n        \"188\",\n        \"189\",\n        \"45\",\n        \"16\",\n        \"227\",\n        \"210\",\n        \"17\",\n        \"214\",\n        \"163\",\n        \"4\",\n        \"229\",\n        \"164\",\n        \"165\",\n        \"166\",\n        \"167\",\n        \"168\",\n        \"219\",\n        \"169\",\n        \"128\",\n        \"171\",\n        \"172\",\n        \"173\",\n        \"174\",\n        \"235\",\n        \"238\",\n        \"175\",\n        \"215\",\n        \"176\",\n        \"237\",\n        \"177\",\n        \"178\",\n        \"236\",\n        \"14\",\n        \"1\",\n        \"216\",\n        \"192\",\n        \"2\",\n        \"6\",\n        \"193\",\n        \"7\",\n        \"10\",\n        \"18\",\n        \"194\",\n        \"195\",\n        \"11\",\n        \"111\",\n        \"196\",\n        \"114\",\n        \"197\",\n        \"233\",\n        \"19\",\n        \"13\",\n        \"20\",\n        \"198\",\n        \"126\",\n        \"110\",\n        \"122\",\n        \"26\",\n        \"127\",\n        \"33\",\n        \"199\",\n        \"34\",\n        \"124\",\n        \"220\",\n        \"200\",\n        \"201\",\n        \"202\",\n        \"203\",\n        \"230\",\n        \"129\",\n        \"125\",\n        \"120\",\n        \"225\",\n        \"117\",\n        \"41\",\n        \"30\",\n        \"44\",\n        \"204\",\n        \"47\",\n        \"205\",\n        \"43\",\n        \"206\",\n        \"207\",\n        \"130\",\n        \"32\",\n        \"208\",\n        \"48\",\n        \"187\",\n        \"78\",\n        \"79\",\n        \"80\",\n        \"212\"\n      ],\n      \"enumTitles\": [\n        \"All categories\",\n        \"Agriculture\",\n        \"Agriculture > Greenhouses\",\n        \"Agriculture > Tree Farms & Orchards\",\n        \"Agriculture > Vineyards & Wineries\",\n        \"Agriculture > Other Agriculture\",\n        \"Automotive & Boat\",\n        \"Automotive & Boat > Auto Repair & Service Shops\",\n        \"Automotive & Boat > Car Dealerships\",\n        \"Automotive & Boat > Car Washes\",\n        \"Automotive & Boat > Equipment Rental & Dealers\",\n        \"Automotive & Boat > Gas Stations\",\n        \"Automotive & Boat > Junk & Salvage Yards\",\n        \"Automotive & Boat > Marine/Boat Service & Dealers\",\n        \"Automotive & Boat > Tire Stores\",\n        \"Automotive & Boat > Towing Companies\",\n        \"Automotive & Boat > Truck Stops\",\n        \"Automotive & Boat > Other Automotive & Boat\",\n        \"Beauty & Personal Care\",\n        \"Beauty & Personal Care > Hair Salons & Barber Shops\",\n        \"Beauty & Personal Care > Massage\",\n        \"Beauty & Personal Care > Nail Salons\",\n        \"Beauty & Personal Care > Spas\",\n        \"Beauty & Personal Care > Tanning Salons\",\n        \"Beauty & Personal Care > Tattoo & Body Piercing\",\n        \"Beauty & Personal Care > Other Beauty & Personal Care\",\n        \"Building & Construction\",\n        \"Building & Construction > Building Material & Hardware Stores\",\n        \"Building & Construction > Carpet & Flooring\",\n        \"Building & Construction > Concrete\",\n        \"Building & Construction > Electrical & Mechanical\",\n        \"Building & Construction > Heavy Construction\",\n        \"Building & Construction > HVAC Businesses\",\n        \"Building & Construction > Insulation Businesses\",\n        \"Building & Construction > Painting & Finishing Contractors\",\n        \"Building & Construction > Plumbing\",\n        \"Building & Construction > Roofing\",\n        \"Building & Construction > Other Building & Construction\",\n        \"CLASSIFIEDS\",\n        \"CLASSIFIEDS > Auctions\",\n        \"CLASSIFIEDS > Business Connections\",\n        \"CLASSIFIEDS > Business Services\",\n        \"CLASSIFIEDS > Capital To Invest\",\n        \"CLASSIFIEDS > Financing / Business Loans\",\n        \"CLASSIFIEDS > Foreign Connections\",\n        \"CLASSIFIEDS > Internet Services\",\n        \"CLASSIFIEDS > Legal Services\",\n        \"CLASSIFIEDS > Marketing Services\",\n        \"CLASSIFIEDS > Professional Services\",\n        \"CLASSIFIEDS > Wanted - Miscellaneous\",\n        \"CLASSIFIEDS > Other/Other\",\n        \"Communication & Media\",\n        \"Communication & Media > Magazines & Newspapers\",\n        \"Communication & Media > Production Companies\",\n        \"Communication & Media > Other Communication & Media\",\n        \"Education & Children\",\n        \"Education & Children > Day Care & Child Care Centers\",\n        \"Education & Children > Preschools\",\n        \"Education & Children > Schools\",\n        \"Education & Children > Tutoring & Test Prep\",\n        \"Education & Children > Other Education & Children\",\n        \"Entertainment & Recreation\",\n        \"Entertainment & Recreation > Art Galleries\",\n        \"Entertainment & Recreation > Banquet Halls\",\n        \"Entertainment & Recreation > Bowling Alleys\",\n        \"Entertainment & Recreation > Casinos\",\n        \"Entertainment & Recreation > Golf Courses & Services\",\n        \"Entertainment & Recreation > Marinas & Fishing\",\n        \"Entertainment & Recreation > Nightclubs & Theaters\",\n        \"Entertainment & Recreation > Other Entertainment & Recreation\",\n        \"Financial Services\",\n        \"Financial Services > Accounting & Tax Practices\",\n        \"Financial Services > Banking & Loans\",\n        \"Financial Services > Check Cashing\",\n        \"Financial Services > Insurance Agencies\",\n        \"Financial Services > Other Financial Services\",\n        \"Health Care & Fitness\",\n        \"Health Care & Fitness > Assisted Living & Nursing Homes\",\n        \"Health Care & Fitness > Chiropractic Practices\",\n        \"Health Care & Fitness > Dance, Pilates & Yoga\",\n        \"Health Care & Fitness > Dental Practices\",\n        \"Health Care & Fitness > Gyms & Fitness Centers\",\n        \"Health Care & Fitness > Home Health Care\",\n        \"Health Care & Fitness > Medical Practices\",\n        \"Health Care & Fitness > Medical Transportation\",\n        \"Health Care & Fitness > Optometry Practice\",\n        \"Health Care & Fitness > Physical Therapy Practices\",\n        \"Health Care & Fitness > Other Health Care & Fitness\",\n        \"Manufacturing\",\n        \"Manufacturing > Auto, Boat & Aircraft\",\n        \"Manufacturing > Chemical & Related products\",\n        \"Manufacturing > Clothing & Fabric\",\n        \"Manufacturing > Electronic & Electrical Equipment\",\n        \"Manufacturing > Energy & Petroleum\",\n        \"Manufacturing > Food & Related products\",\n        \"Manufacturing > Furniture & Fixtures\",\n        \"Manufacturing > Glass, Stone & Concrete\",\n        \"Manufacturing > Industrial & Commercial Machinery\",\n        \"Manufacturing > Lumber & Wood Products\",\n        \"Manufacturing > Machine Shops & Tools\",\n        \"Manufacturing > Medical Devices & Products\",\n        \"Manufacturing > Metal Products\",\n        \"Manufacturing > Mining\",\n        \"Manufacturing > Packaging\",\n        \"Manufacturing > Paper & Printing\",\n        \"Manufacturing > Rubber & Plastic Products\",\n        \"Manufacturing > Signs\",\n        \"Manufacturing > Other Manufacturing\",\n        \"Non-Classifiable Establishments\",\n        \"Non-Classifiable Establishments > All Non-Classifiable Establishments\",\n        \"Online & Technology\",\n        \"Online & Technology > Cell Phone & Computer Repair & Services\",\n        \"Online & Technology > Graphic & Web Design\",\n        \"Online & Technology > IT & Software Services\",\n        \"Online & Technology > Software & App Companies\",\n        \"Online & Technology > Websites & Ecommerce\",\n        \"Online & Technology > Other Online & Technology\",\n        \"Pet Services\",\n        \"Pet Services > Dog Daycare & Boarding\",\n        \"Pet Services > Pet Grooming\",\n        \"Pet Services > Pet Stores & Supplies\",\n        \"Pet Services > Veterinary Practices\",\n        \"Pet Services > Other Pet Services\",\n        \"Restaurants & Food\",\n        \"Restaurants & Food > American Restaurants\",\n        \"Restaurants & Food > Bakeries\",\n        \"Restaurants & Food > Bars, Pubs & Taverns\",\n        \"Restaurants & Food > Boba Tea & Dessert Shop\",\n        \"Restaurants & Food > Breweries\",\n        \"Restaurants & Food > Chinese Restaurants\",\n        \"Restaurants & Food > Coffee Shops & Cafes\",\n        \"Restaurants & Food > Delis & Sandwich Shops\",\n        \"Restaurants & Food > Diners\",\n        \"Restaurants & Food > Distilleries\",\n        \"Restaurants & Food > Donut Shops\",\n        \"Restaurants & Food > Food Trucks\",\n        \"Restaurants & Food > Ice Cream & Frozen Yogurt Shops\",\n        \"Restaurants & Food > Indian Restaurants\",\n        \"Restaurants & Food > Italian Restaurants\",\n        \"Restaurants & Food > Juice Bars\",\n        \"Restaurants & Food > Korean Restaurants\",\n        \"Restaurants & Food > Mediterranean Restaurants\",\n        \"Restaurants & Food > Mexican Restaurants\",\n        \"Restaurants & Food > Miscellaneous Restaurant & Bars\",\n        \"Restaurants & Food > Pizza Restaurants\",\n        \"Restaurants & Food > Quick Service Restaurants\",\n        \"Restaurants & Food > Sushi & Japanese Restaurants\",\n        \"Restaurants & Food > Thai Restaurants\",\n        \"Restaurants & Food > Vietnamese Restaurants\",\n        \"Restaurants & Food > Other Restaurants & Food\",\n        \"Retail\",\n        \"Retail > Beauty Supply Stores\",\n        \"Retail > Bike Shops\",\n        \"Retail > Clothing & Accessory Stores\",\n        \"Retail > Convenience Stores\",\n        \"Retail > Dollar Stores\",\n        \"Retail > Flower Shops\",\n        \"Retail > Furniture & Furnishings Stores\",\n        \"Retail > Grocery Stores & Supermarkets\",\n        \"Retail > Health Food & Nutrition\",\n        \"Retail > Jewelry Stores\",\n        \"Retail > Liquor Stores\",\n        \"Retail > Nursery & Garden Centers\",\n        \"Retail > Pawn Shops\",\n        \"Retail > Pharmacies\",\n        \"Retail > Smoke Shops\",\n        \"Retail > Sporting Goods Store\",\n        \"Retail > Vending Machines\",\n        \"Retail > Other Retail\",\n        \"Service Businesses\",\n        \"Service Businesses > Architecture & Engineering Firms\",\n        \"Service Businesses > Catering Companies\",\n        \"Service Businesses > Cleaning Businesses\",\n        \"Service Businesses > Commercial Laundry\",\n        \"Service Businesses > Dry Cleaners\",\n        \"Service Businesses > Funeral Homes\",\n        \"Service Businesses > Landscaping & Yard Services\",\n        \"Service Businesses > Laundromats & Coin Laundry\",\n        \"Service Businesses > Legal Services & Law Firms\",\n        \"Service Businesses > Locksmith\",\n        \"Service Businesses > Marketing & Advertising\",\n        \"Service Businesses > Medical Billing\",\n        \"Service Businesses > Mobile Home Parks\",\n        \"Service Businesses > Pest Control\",\n        \"Service Businesses > Property Management\",\n        \"Service Businesses > Restoration & Remediation\",\n        \"Service Businesses > Routes\",\n        \"Service Businesses > Security\",\n        \"Service Businesses > Staffing Agencies\",\n        \"Service Businesses > Swimming Pool Businesses\",\n        \"Service Businesses > Waste Management & Recycling\",\n        \"Service Businesses > Other Service Businesses\",\n        \"Transportation & Storage\",\n        \"Transportation & Storage > Limo & Passenger Transportation\",\n        \"Transportation & Storage > Moving & Shipping\",\n        \"Transportation & Storage > Storage Facilities & Warehouses\",\n        \"Transportation & Storage > Trucking Companies\",\n        \"Transportation & Storage > Other Transportation & Storage\",\n        \"Travel\",\n        \"Travel > Bed & Breakfasts\",\n        \"Travel > Campgrounds & RV Parks\",\n        \"Travel > Hotels\",\n        \"Travel > Motels\",\n        \"Travel > Travel Agencies\",\n        \"Travel > Other Travel\",\n        \"Wholesale & Distributors\",\n        \"Wholesale & Distributors > Durable Goods\",\n        \"Wholesale & Distributors > Nondurable Goods\",\n        \"Wholesale & Distributors > Other Wholesalers & Distributors\"\n      ],\n      \"default\": \"ALL\",\n      \"prefill\": \"ALL\"\n    },\n    \"listingType\": {\n      \"title\": \"Listing type\",\n      \"type\": \"string\",\n      \"description\": \"Established businesses, business assets, business real estate, or startup listings. (mode=search)\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"all\",\n        \"established\",\n        \"assetSale\",\n        \"realEstate\",\n        \"startup\"\n      ],\n      \"enumTitles\": [\n        \"All listing types\",\n        \"Established businesses\",\n        \"Business assets\",\n        \"Business real estate\",\n        \"Startup businesses\"\n      ],\n      \"default\": \"all\",\n      \"prefill\": \"all\"\n    },\n    \"minAskingPrice\": {\n      \"title\": \"Minimum asking price (USD)\",\n      \"type\": \"integer\",\n      \"description\": \"Only listings at or above this asking price. Leave blank for no minimum.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 10000000000\n    },\n    \"maxAskingPrice\": {\n      \"title\": \"Maximum asking price (USD)\",\n      \"type\": \"integer\",\n      \"description\": \"Only listings at or below this asking price. Leave blank for no maximum.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 10000000000\n    },\n    \"minCashFlow\": {\n      \"title\": \"Minimum cash flow / SDE (USD)\",\n      \"type\": \"integer\",\n      \"description\": \"Only listings at or above this annual cash flow (SDE). Leave blank for no minimum.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 10000000000\n    },\n    \"maxCashFlow\": {\n      \"title\": \"Maximum cash flow / SDE (USD)\",\n      \"type\": \"integer\",\n      \"description\": \"Only listings at or below this annual cash flow (SDE). Leave blank for no maximum.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 10000000000\n    },\n    \"minGrossRevenue\": {\n      \"title\": \"Minimum gross revenue (USD)\",\n      \"type\": \"integer\",\n      \"description\": \"Only listings at or above this annual gross revenue. Leave blank for no minimum.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 10000000000\n    },\n    \"maxGrossRevenue\": {\n      \"title\": \"Maximum gross revenue (USD)\",\n      \"type\": \"integer\",\n      \"description\": \"Only listings at or below this annual gross revenue. Leave blank for no maximum.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 10000000000\n    },\n    \"establishedAfterYear\": {\n      \"title\": \"Established after year\",\n      \"type\": \"integer\",\n      \"description\": \"Only businesses established after this year, e.g. 2015. Leave blank for any year.\",\n      \"editor\": \"number\",\n      \"minimum\": 1800,\n      \"maximum\": 2100\n    },\n    \"listedWithinDays\": {\n      \"title\": \"Listed within days\",\n      \"type\": \"integer\",\n      \"description\": \"Only listings added or refreshed within this many days. 0 means any age.\",\n      \"editor\": \"number\",\n      \"minimum\": 0,\n      \"maximum\": 3650,\n      \"default\": 0,\n      \"prefill\": 0\n    },\n    \"sortBy\": {\n      \"title\": \"Sort by\",\n      \"type\": \"string\",\n      \"description\": \"Result ordering. Relevance is the marketplace default.\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"default\",\n        \"priceAsc\",\n        \"priceDesc\",\n        \"cashFlowDesc\",\n        \"newest\"\n      ],\n      \"enumTitles\": [\n        \"Relevance (default)\",\n        \"Asking price: low to high\",\n        \"Asking price: high to low\",\n        \"Cash flow: high to low\",\n        \"Newest listings first\"\n      ],\n      \"default\": \"default\",\n      \"prefill\": \"default\"\n    },\n    \"sellerFinancing\": {\n      \"title\": \"Seller financing only\",\n      \"type\": \"boolean\",\n      \"description\": \"Only listings that offer seller financing.\",\n      \"editor\": \"checkbox\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"homeBased\": {\n      \"title\": \"Home-based only\",\n      \"type\": \"boolean\",\n      \"description\": \"Only home-based businesses.\",\n      \"editor\": \"checkbox\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"realEstateIncluded\": {\n      \"title\": \"Real estate included only\",\n      \"type\": \"boolean\",\n      \"description\": \"Only listings where real estate is included in the asking price.\",\n      \"editor\": \"checkbox\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"absenteeOwner\": {\n      \"title\": \"Absentee-owner only\",\n      \"type\": \"boolean\",\n      \"description\": \"Only listings that allow an absentee owner.\",\n      \"editor\": \"checkbox\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"priceReduced\": {\n      \"title\": \"Price reduced only\",\n      \"type\": \"boolean\",\n      \"description\": \"Only listings with a reduced asking price.\",\n      \"editor\": \"checkbox\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"franchiseResale\": {\n      \"title\": \"Franchise resales only\",\n      \"type\": \"boolean\",\n      \"description\": \"Only franchise resale listings.\",\n      \"editor\": \"checkbox\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"strictFilters\": {\n      \"title\": \"Strict gross-revenue filtering\",\n      \"type\": \"boolean\",\n      \"description\": \"When a gross-revenue filter is set, trust BizBuySell's source-side filter when detail revenue is unavailable; when enrichDetails successfully reads a detail page, drop records whose detail revenue is still unknown. Default false.\",\n      \"editor\": \"checkbox\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"enrichDetails\": {\n      \"title\": \"Fetch full detail pages\",\n      \"type\": \"boolean\",\n      \"description\": \"Adds full description, gross revenue, employees, established year, inventory, FF&E, rent, facilities, financing and broker phone. Adds one request per listing and is slower.\",\n      \"editor\": \"checkbox\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"mirrorImages\": {\n      \"title\": \"Mirror images to Apify storage\",\n      \"type\": \"boolean\",\n      \"description\": \"Store listing photos in this run's key-value store and return public Apify URLs. On by default so images open from any client; turn off to keep the source URLs.\",\n      \"editor\": \"checkbox\",\n      \"default\": true,\n      \"prefill\": true\n    },\n    \"startUrls\": {\n      \"title\": \"BizBuySell URLs\",\n      \"type\": \"array\",\n      \"description\": \"BizBuySell search, category, state, city, county or listing URLs. (mode=byUrls)\",\n      \"editor\": \"requestListSources\",\n      \"items\": {\n        \"type\": \"object\",\n        \"properties\": {\n          \"url\": {\n            \"title\": \"URL\",\n            \"type\": \"string\",\n            \"description\": \"BizBuySell search or listing URL.\"\n          }\n        }\n      },\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"listingIds\": {\n      \"title\": \"Listing IDs\",\n      \"type\": \"array\",\n      \"description\": \"Numeric BizBuySell listing IDs, e.g. 2501583. (mode=byListingIds)\",\n      \"editor\": \"stringList\",\n      \"items\": {\n        \"type\": \"string\"\n      },\n      \"default\": [],\n      \"prefill\": []\n    },\n    \"maxItems\": {\n      \"title\": \"Maximum listings\",\n      \"type\": \"integer\",\n      \"description\": \"Hard cap on the number of listings to save.\",\n      \"editor\": \"number\",\n      \"minimum\": 1,\n      \"maximum\": 10000,\n      \"default\": 50,\n      \"prefill\": 3\n    },\n    \"stateKey\": {\n      \"title\": \"Monitoring state key\",\n      \"type\": \"string\",\n      \"description\": \"Optional. Set the same key on scheduled runs to remember previously seen listings in a named key-value store. Leave empty for stateless scraping.\",\n      \"editor\": \"textfield\"\n    },\n    \"onlyNew\": {\n      \"title\": \"Only new listings\",\n      \"type\": \"boolean\",\n      \"description\": \"With stateKey, emit only listing IDs that were never seen in a previous run. New/changed records are emitted by default when stateKey is set.\",\n      \"editor\": \"checkbox\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"emitUnchanged\": {\n      \"title\": \"Also emit unchanged listings\",\n      \"type\": \"boolean\",\n      \"description\": \"With stateKey, also emit listings whose tracked fields did not change. Leave off to receive only new or changed listings.\",\n      \"editor\": \"checkbox\",\n      \"default\": false,\n      \"prefill\": false\n    },\n    \"proxyConfiguration\": {\n      \"title\": \"Proxy configuration (optional)\",\n      \"type\": \"object\",\n      \"description\": \"Optional override for advanced users. Leave empty to let the actor connect directly and choose its own fallback route; search works without any proxy setup.\",\n      \"editor\": \"proxy\"\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# BizBuySell Businesses-for-Sale & Financials Scraper\r\n\r\nBizBuySell is the largest US marketplace for buying and selling small businesses, franchises and commercial real estate. This actor turns its public listings into structured deal data: asking price, location, cash flow, EBITDA, revenue, broker contacts and the full detail-page story for each business.\r\n\r\n## What this actor does\r\n\r\n- **Search the marketplace your way** — keyword, state, city, county, 200+ industries, listing type, asking-price range, cash-flow range, gross-revenue range, established-after year, days listed and sort order.\r\n- **Or paste URLs and IDs** — BizBuySell search pages, category pages, state/city/county pages and individual listing URLs all work; exact listing IDs are supported too.\r\n- **Get the financial picture** — asking price, cash flow (SDE), EBITDA, gross revenue, real estate, inventory, FF&E, rent, year established and employee count when the seller discloses them.\r\n- **Reach the broker** — broker name, phone, company and profile link from the listing and its detail page.\r\n- **Go deeper on demand** — turn on `enrichDetails` for the full description, facilities, competition, growth, financing, support and reason for selling.\r\n- **Monitor new and changed listings** — set `stateKey` on scheduled runs to remember what was already seen; `onlyNew` and `emitUnchanged` control whether you receive new, changed or every listing.\r\n- Empty fields are omitted, never sent as `null`.\r\n\r\n## Output per listing\r\n\r\n- `productId` — BizBuySell's numeric listing ID\r\n- `title` — listing headline\r\n- `description` — summary, or the full description with `enrichDetails`\r\n- `url` — direct link to the listing\r\n- `location` — city or county plus state, e.g. `Bonita Springs, FL`\r\n- `city`, `county`, `stateCode`, `state` — parsed location parts\r\n- `askingPrice`, `askingPriceNumeric` — formatted and numeric asking price\r\n- `askingPriceDetail` — asking price as shown on the detail page, with `enrichDetails`\r\n- `cashFlow`, `cashFlowNumeric` — seller's discretionary earnings / SDE\r\n- `grossRevenue`, `grossRevenueNumeric` — annual gross revenue, with `enrichDetails`\r\n- `ebitda`, `ebitdaNumeric` — EBITDA when disclosed\r\n- `realEstate`, `realEstateNumeric` — included real-estate value or `Owned` / `Leased` status, with `enrichDetails`\r\n- `inventory`, `inventoryNumeric` — inventory value and inclusion, with `enrichDetails`\r\n- `ffe`, `ffeNumeric` — furniture, fixtures and equipment, with `enrichDetails`\r\n- `rentMonthly`, `rentMonthlyNumeric` — monthly rent, with `enrichDetails`\r\n- `established`, `establishedYear` — founding year, with `enrichDetails`\r\n- `employees`, `employeeCount` — headcount, with `enrichDetails`\r\n- `listingTypeId`, `listingType` — established, asset sale, real estate or startup\r\n- `adLevelId`, `adLevel` — marketplace placement level\r\n- `category` — industry path, e.g. `Laundromats and Coin Laundry > Dry Cleaners`\r\n- `image` — primary photo URL; with `mirrorImages` on (the default) this is a public Apify storage URL that opens from any client. If you turn mirroring off, this is the source CDN URL and may return 403.\r\n- `images` — every photo URL the search result exposes, in source order. These are the original BizBuySell CDN URLs.\r\n- `imageOriginal` — the source BizBuySell CDN URL, kept for traceability; the CDN may return 403 to a clean shell, so use `image` for customer-facing links\r\n- `imageStatus` — `mirrored`, `mirror_failed` or `skipped` when image mirroring is requested\r\n- `recentlyAdded`, `recentlyUpdated`, `priceReduced` — listing freshness flags\r\n- `daysListedAgo`, `daysModifiedAgo` — days since the listing was added or modified, only when BizBuySell reports them; never calculated from an invented date\r\n- `hotProperty`, `franchiseResale` — marketplace badges when the search result reports them\r\n- `leaseRateDuration`, `leaseRatePerSquareFoot` — raw lease terms exactly as the search result reports them\r\n- `leaseDurationMonths` — lease duration normalized to months only when the raw text states years or months (for example `5 years` → `60`); omitted when the unit is not explicit\r\n- `leaseRatePerSquareFootNumeric`, `leaseRatePerSquareFootPeriod` — numeric per-square-foot rate and the period (`year`, `month`, `week` or `day`) only when the source text states it; the raw `leaseRatePerSquareFoot` text is retained\r\n- `listingStatus`, `listingStatusSource`, `listingStatusEvidence`, `statusCheckedAt` — `inactive` tombstone for an explicit listing ID that a successful lookup no longer returns; this is the actor's observed absence, not a BizBuySell sold/expired status\r\n- `realEstateIncluded` — real estate included in the asking price\r\n- `sellerFinancing`, `homeBased` — seller terms and operating style, with `enrichDetails`\r\n- `brokerName`, `brokerPhone`, `brokerCompany`, `brokerProfileUrl` — listing contact\r\n- `facilities`, `competition`, `growthAndExpansion`, `financing`, `supportAndTraining`, `reasonForSelling` — detail-page narrative, with `enrichDetails`\r\n- `buildingSquareFeet`, `website` — premises size and business website, with `enrichDetails`\r\n- `detailsRaw` — raw detail-page labels and values (for example `\"Cash Flow (SDE)\": \"$75,000\"`), with `enrichDetails`\r\n- `enriched` — `true` only when the detail page was fetched and merged\r\n- `detailStatus` — `ok`, `blocked`, `timeout`, `skipped` or `error`; `skipped` covers `enrichDetails` off and the circuit breaker\r\n- `detailError` — the reason enrichment was blocked, timed out, failed or was skipped by the circuit breaker\r\n- `searchUrl` — the exact search URL, including every filter and sort used; listing-ID and listing-URL runs use the listing URL as provenance\r\n- `searchTotal` — the total the source reported for that search, when it returned one\r\n- `truncated` — `true` when `maxItems` or the 10,000-result window actually cut the result set\r\n- `searchInput` — the normalized search filters used for the record\r\n- `isNew`, `changed`, `changedFields`, `previousValues` — incremental-monitoring signals when `stateKey` is set; a new listing has `isNew: true`, a previously seen listing with different tracked fields has `changed: true` and lists them in `changedFields`\r\n- `firstSeenAt`, `lastSeenAt`, `lastChangedAt`, `monitorStateKey` — actor observation timestamps and the state key used for monitoring; these are not BizBuySell-provided listing dates\r\n- `recordType: \"businessListing\"`, `scrapedAt` — UTC ISO 8601 timestamp\r\n\r\n## Input\r\n\r\n| Field | Type | Default | Description |\r\n|---|---|---|---|\r\n| `mode` | string | `search` | `search`, `byUrls` or `byListingIds` |\r\n| `searchQuery` | string | - | Keyword, e.g. restaurant, HVAC, car wash (mode=search) |\r\n| `state` | string | `ALL` | US state or `ALL` (mode=search) |\r\n| `city` | string | – | City filter, e.g. Austin (mode=search) |\r\n| `county` | string | – | County filter, e.g. Los Angeles County (mode=search) |\r\n| `category` | string | `ALL` | BizBuySell industry category (mode=search) |\r\n| `listingType` | string | `all` | `all`, `established`, `assetSale`, `realEstate`, `startup` (mode=search) |\r\n| `minAskingPrice` / `maxAskingPrice` | integer | – | Asking-price range in USD |\r\n| `minCashFlow` / `maxCashFlow` | integer | – | Annual cash-flow range in USD |\r\n| `minGrossRevenue` / `maxGrossRevenue` | integer | – | Annual gross-revenue range in USD |\r\n| `establishedAfterYear` | integer | – | Only businesses founded after this year |\r\n| `listedWithinDays` | integer | `0` | Only listings added or refreshed within this many days; `0` = any |\r\n| `sortBy` | string | `default` | `default`, `priceAsc`, `priceDesc`, `cashFlowDesc`, `newest` |\r\n| `sellerFinancing` | boolean | `false` | Only seller-financing listings |\r\n| `homeBased` | boolean | `false` | Only home-based businesses |\r\n| `realEstateIncluded` | boolean | `false` | Only listings with real estate included |\r\n| `absenteeOwner` | boolean | `false` | Only absentee-owner listings |\r\n| `priceReduced` | boolean | `false` | Only price-reduced listings |\r\n| `franchiseResale` | boolean | `false` | Only franchise resales |\r\n| `strictFilters` | boolean | `false` | Enforce the gross-revenue filter strictly. The source-side filter is trusted when detail revenue is unavailable; with `enrichDetails`, unknown detail values are dropped |\r\n| `enrichDetails` | boolean | `false` | Fetch each listing's detail page for full financials and narrative |\r\n| `mirrorImages` | boolean | `true` | Copy photos into public Apify storage and return stable URLs |\r\n| `startUrls` | array | `[]` | BizBuySell search, category or listing URLs (mode=byUrls) |\r\n| `listingIds` | array | `[]` | Numeric listing IDs (mode=byListingIds) |\r\n| `maxItems` | integer | `50` | Hard cap, 1–10,000 |\r\n| `stateKey` | string | – | Optional incremental-monitoring key. Reuse the same key on scheduled runs to persist seen listings in a named key-value store |\r\n| `onlyNew` | boolean | `false` | With `stateKey`, emit only listing IDs never seen in a previous run |\r\n| `emitUnchanged` | boolean | `false` | With `stateKey`, also emit listings whose tracked fields did not change; leave off for new/changed only |\r\n| `proxyConfiguration` | object | – | Optional proxy override; leave empty to use the actor's own connection fallback |\r\n\r\n### Example: California laundromats with strong cash flow\r\n\r\n```json\r\n{\r\n  \"mode\": \"search\",\r\n  \"searchQuery\": \"laundromat\",\r\n  \"state\": \"CA\",\r\n  \"minCashFlow\": 100000,\r\n  \"maxItems\": 50\r\n}\r\n```\r\n\r\n### Example: restaurants in Los Angeles County\r\n\r\n```json\r\n{\r\n  \"mode\": \"search\",\r\n  \"category\": \"17\",\r\n  \"state\": \"CA\",\r\n  \"county\": \"Los Angeles County\",\r\n  \"minAskingPrice\": 100000,\r\n  \"maxAskingPrice\": 1000000,\r\n  \"sortBy\": \"priceAsc\",\r\n  \"maxItems\": 100\r\n}\r\n```\r\n\r\n### Example: look up exact listings with full details\r\n\r\n```json\r\n{\r\n  \"mode\": \"byListingIds\",\r\n  \"listingIds\": [\"2501583\", \"2571748\"],\r\n  \"enrichDetails\": true,\r\n  \"maxItems\": 2\r\n}\r\n```\r\n\r\n### Example: paste a BizBuySell search URL\r\n\r\n```json\r\n{\r\n  \"mode\": \"byUrls\",\r\n  \"startUrls\": [\r\n    { \"url\": \"https://www.bizbuysell.com/california-businesses-for-sale/\" }\r\n  ],\r\n  \"maxItems\": 50\r\n}\r\n```\r\n\r\n### Example: daily monitoring of new California laundromats\r\n\r\n```json\r\n{\r\n  \"mode\": \"search\",\r\n  \"searchQuery\": \"laundromat\",\r\n  \"state\": \"CA\",\r\n  \"maxItems\": 50,\r\n  \"stateKey\": \"ca-laundromats\",\r\n  \"onlyNew\": true\r\n}\r\n```\r\n\r\nRun this on a schedule with the same `stateKey`; each run emits only listing IDs that were not seen before. Drop `onlyNew` and keep `emitUnchanged: false` to receive new plus changed listings, or set `emitUnchanged: true` to receive every match with change flags.\r\n\r\n## Use cases\r\n\r\n- **Deal sourcing** — build a daily shortlist of businesses for sale by state, county, industry and cash flow.\r\n- **Broker outreach** — collect broker names and phone numbers for a target market and industry.\r\n- **Valuation benchmarking** — compare asking prices and SDE multiples across regions and categories.\r\n- **Search-fund research** — screen acquisition targets by revenue, cash flow and seller financing.\r\n- **Market monitoring** — track new listings, price reductions and recently updated businesses.\r\n- **Franchise and real-estate buyers** — find franchise resales and listings where real estate is included.\r\n\r\n## FAQ\r\n\r\n### Do I need a BizBuySell account?\r\n\r\nNo. Every field comes from public listing pages and the public search feed. No login, cookie or API key is needed.\r\n\r\n### How fresh is the data?\r\n\r\nEach run reads the current search results and listing pages, so the dataset reflects what BizBuySell shows at that moment.\r\n\r\n### How does incremental monitoring work?\r\n\r\nSet `stateKey` to a stable name, for example `ca-laundromats`, and reuse it on every scheduled run. The actor stores a per-listing field snapshot and observation timestamps in the named Apify key-value store `bizbuysell-monitor-state`, under the `stateKey` record, not in the dataset. Each emitted record then carries `isNew`, `changed`, `changedFields`, `previousValues`, `firstSeenAt`, `lastSeenAt` and `lastChangedAt`.\r\n\r\n- `onlyNew: true` emits only listing IDs that were never seen before.\r\n- With `onlyNew: false` and `emitUnchanged: false` (the default when `stateKey` is set), only new or changed listings are emitted.\r\n- `emitUnchanged: true` emits every match and still annotates changes.\r\n- Without `stateKey`, every run is stateless and always emits every matching listing. Use a new `stateKey` to start a fresh baseline.\r\n\r\nThe tracked fields are search-level (title, price, cash flow, EBITDA, location, listing type, status and freshness flags), so a temporarily unavailable detail page does not create false price-change alerts. Monitoring timestamps are observation times recorded by the actor, not listing dates published by BizBuySell.\r\n\r\n### Which date and status fields are available?\r\n\r\nBizBuySell's search feed sometimes exposes `daysListedAgo` and `daysModifiedAgo`; the actor emits them only when the source provides them. `recentlyAdded` and `recentlyUpdated` come from the same feed. Detail-page date-listed or sold/expired status is not reliably exposed by BizBuySell; that part is a hard limit, so the actor does not invent one. For explicit `listingIds` or listing URLs, an ID that a successful lookup no longer returns is emitted as a tombstone with `listingStatus: \"inactive\"`, `listingStatusSource: \"listing-id-lookup\"` and `statusCheckedAt`. Tombstones keep the ID, status, provenance and observation timestamps but do not invent a title or price. A failed lookup is not treated as an inactive listing.\r\n\r\n### How are lease terms normalized?\r\n\r\nThe raw `leaseRateDuration` and `leaseRatePerSquareFoot` text is always preserved. `leaseDurationMonths` is added only when the raw duration states a year or month unit. `leaseRatePerSquareFootNumeric` is the amount and `leaseRatePerSquareFootPeriod` is set only when the source text names the period. A bare number such as `20` is not assumed to be monthly or annual.\r\n\r\n### Why are some financial fields missing?\r\n\r\nSellers fill in cash flow, revenue, EBITDA, inventory and similar fields voluntarily. If a seller did not disclose a figure, that field is omitted from the record instead of being invented.\r\n\r\n### Why do some listings have no asking price?\r\n\r\nSome sellers hide the price. Those records keep the listing, location, description and broker details but omit the price fields.\r\n\r\n### What is the difference between cash flow, EBITDA and gross revenue?\r\n\r\nCash flow (SDE) is the seller's discretionary earnings after owner compensation and add-backs. EBITDA is earnings before interest, taxes, depreciation and amortization. Gross revenue is total annual sales before expenses. BizBuySell sellers report them separately and not every listing discloses all three.\r\n\r\n### How many listings can I get in one run?\r\n\r\nBizBuySell returns up to 10,000 results per query. To go deeper, split the market into smaller slices — for example one state, county or category at a time — and combine the runs. `maxItems` is capped at 10,000 for the same reason. Each search-mode record carries `searchTotal` when the source reports it, and `truncated` tells you whether `maxItems` or the 10,000-result window actually cut that search short.\r\n\r\n### Does `enrichDetails` always fill every detail field?\r\n\r\nIt fills what the public detail page shows. The detail page is sometimes rate-limited by the site, so the actor treats enrichment as best-effort: when a detail page is unavailable, the listing is still saved with its search-result fields and the run continues. Every record states `enriched` and `detailStatus`, with `detailError` when applicable; records skipped after repeated failures are marked `detailStatus: \"skipped\"` rather than being reported as enriched.\r\n\r\n### How does the gross-revenue filter behave when revenue is unknown?\r\n\r\nThe search feed rarely includes gross revenue, but BizBuySell applies the gross-income range on its own search endpoint. The actor trusts that source-side filter when detail revenue is unavailable. With `enrichDetails`, a missing detail value is included unless `strictFilters: true` is set; strict filtering only drops unknowns when detail data was expected. The run status message states which behavior was used, so the filter is never silently claimed to be complete.\r\n\r\n### Can I search by city or county?\r\n\r\nYes. Enter a city or county name and the actor resolves it against BizBuySell's location list. A state filter is optional but helps disambiguate names that exist in several states.\r\n\r\n### How does keyword search work?\r\n\r\nBizBuySell ranks keyword matches by relevance across the listing, including the full description. It is not an exact substring match, so a result can match a word that appears later in the description rather than in the title.\r\n\r\n### Can I get broker email addresses?\r\n\r\nNo. This is a hard limit. BizBuySell's public search API returns broker name, phone and profile URL only, and the public detail page's broker block exposes name, phone and profile link with no email address. The actor does not invent, guess or enrich emails.\r\n\r\n### Why does `imageOriginal` sometimes fail to open?\r\n\r\n`imageOriginal` is the source BizBuySell CDN URL, kept for traceability. That CDN can return 403 to a clean client. The `image` field is the customer-facing URL and is mirrored into Apify storage by default.\r\n\r\n### Do you scrape franchise and broker directories?\r\n\r\nNo. The actor covers business-for-sale listings, including franchise resales and real-estate listings. The separate franchise directory and broker directory are out of scope.\r\n\r\n### Why are some fields only present with `enrichDetails`?\r\n\r\nFields such as gross revenue, inventory, FF&E, rent, employees, year established, facilities, financing and website come from the individual listing page. The search feed does not carry them for every listing.\r\n\r\n### Do I need to set up a proxy?\r\n\r\nNo. Search works with no proxy at all, and the actor chooses a fallback connection for detail pages automatically. `proxyConfiguration` is an optional override for advanced users only; leaving it empty is the recommended setup.\r\n\r\n### Is this affiliated with BizBuySell?\r\n\r\nNo. This is an independent, third-party actor that reads publicly available BizBuySell listing pages. It is not affiliated with or endorsed by BizBuySell or its parent company.\r\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "bizbuysell-businesses-for-sale-and-financials",
      "title": "BizBuySell Businesses-for-Sale & Financials Scraper",
      "description": "Search BizBuySell business-for-sale listings by keyword, state, city, county, industry, price, cash flow, revenue and listing type. Get financials, broker contacts, images, detail status and incremental monitoring fields.",
      "version": "1.0",
      "buildTag": "latest",
      "input": {
        "title": "BizBuySell Businesses-for-Sale Scraper Input",
        "description": "Search BizBuySell by keyword, state, city, county, industry, price, cash flow, revenue and listing type, paste search/listing URLs and IDs, or monitor new and changed listings across runs with a state key.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "type": "string",
            "description": "What to scrape. Search runs a filtered marketplace query; byUrls accepts BizBuySell search or listing URLs; byListingIds looks up exact listing IDs.",
            "editor": "select",
            "enum": [
              "search",
              "byUrls",
              "byListingIds"
            ],
            "enumTitles": [
              "Search listings",
              "Scrape BizBuySell URLs",
              "Look up listing IDs"
            ],
            "default": "search",
            "prefill": "search"
          },
          "searchQuery": {
            "title": "Keyword",
            "type": "string",
            "description": "Free-text keyword, e.g. laundromat, restaurant, HVAC, car wash. Leave blank to browse all listings. (mode=search)",
            "editor": "textfield",
            "prefill": "laundromat"
          },
          "state": {
            "title": "State",
            "type": "string",
            "description": "US state filter. Choose All states to search nationwide. (mode=search)",
            "editor": "select",
            "enum": [
              "ALL",
              "AL",
              "AK",
              "AZ",
              "AR",
              "CA",
              "CO",
              "CT",
              "DE",
              "DC",
              "FL",
              "GA",
              "HI",
              "ID",
              "IL",
              "IN",
              "IA",
              "KS",
              "KY",
              "LA",
              "ME",
              "MD",
              "MA",
              "MI",
              "MN",
              "MS",
              "MO",
              "MT",
              "NE",
              "NV",
              "NH",
              "NJ",
              "NM",
              "NY",
              "NC",
              "ND",
              "OH",
              "OK",
              "OR",
              "PA",
              "RI",
              "SC",
              "SD",
              "TN",
              "TX",
              "UT",
              "VT",
              "VA",
              "WA",
              "WV",
              "WI",
              "WY"
            ],
            "enumTitles": [
              "All states",
              "Alabama",
              "Alaska",
              "Arizona",
              "Arkansas",
              "California",
              "Colorado",
              "Connecticut",
              "Delaware",
              "District of Columbia",
              "Florida",
              "Georgia",
              "Hawaii",
              "Idaho",
              "Illinois",
              "Indiana",
              "Iowa",
              "Kansas",
              "Kentucky",
              "Louisiana",
              "Maine",
              "Maryland",
              "Massachusetts",
              "Michigan",
              "Minnesota",
              "Mississippi",
              "Missouri",
              "Montana",
              "Nebraska",
              "Nevada",
              "New Hampshire",
              "New Jersey",
              "New Mexico",
              "New York",
              "North Carolina",
              "North Dakota",
              "Ohio",
              "Oklahoma",
              "Oregon",
              "Pennsylvania",
              "Rhode Island",
              "South Carolina",
              "South Dakota",
              "Tennessee",
              "Texas",
              "Utah",
              "Vermont",
              "Virginia",
              "Washington",
              "West Virginia",
              "Wisconsin",
              "Wyoming"
            ],
            "default": "ALL",
            "prefill": "ALL"
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Optional city filter, e.g. Austin or Los Angeles. Resolved against BizBuySell locations. (mode=search)",
            "editor": "textfield",
            "default": "",
            "prefill": ""
          },
          "county": {
            "title": "County",
            "type": "string",
            "description": "Optional county filter, e.g. Los Angeles County. Resolved against BizBuySell locations. (mode=search)",
            "editor": "textfield",
            "default": "",
            "prefill": ""
          },
          "category": {
            "title": "Industry / category",
            "type": "string",
            "description": "BizBuySell industry category. Choose All categories to search every industry. (mode=search)",
            "editor": "select",
            "enum": [
              "ALL",
              "88",
              "134",
              "132",
              "133",
              "135",
              "136",
              "23",
              "3",
              "108",
              "119",
              "8",
              "137",
              "12",
              "226",
              "138",
              "139",
              "140",
              "141",
              "24",
              "142",
              "143",
              "144",
              "145",
              "232",
              "146",
              "81",
              "5",
              "217",
              "147",
              "90",
              "83",
              "123",
              "231",
              "222",
              "148",
              "224",
              "149",
              "93",
              "103",
              "97",
              "102",
              "95",
              "96",
              "98",
              "106",
              "105",
              "107",
              "104",
              "99",
              "101",
              "89",
              "150",
              "151",
              "152",
              "27",
              "109",
              "153",
              "154",
              "228",
              "155",
              "22",
              "40",
              "156",
              "157",
              "158",
              "159",
              "160",
              "161",
              "162",
              "118",
              "28",
              "29",
              "211",
              "116",
              "183",
              "31",
              "113",
              "218",
              "179",
              "180",
              "112",
              "181",
              "182",
              "221",
              "234",
              "223",
              "191",
              "57",
              "77",
              "59",
              "58",
              "60",
              "70",
              "62",
              "63",
              "74",
              "64",
              "66",
              "184",
              "185",
              "61",
              "91",
              "121",
              "69",
              "73",
              "186",
              "68",
              "92",
              "213",
              "115",
              "25",
              "131",
              "56",
              "55",
              "52",
              "209",
              "188",
              "189",
              "45",
              "16",
              "227",
              "210",
              "17",
              "214",
              "163",
              "4",
              "229",
              "164",
              "165",
              "166",
              "167",
              "168",
              "219",
              "169",
              "128",
              "171",
              "172",
              "173",
              "174",
              "235",
              "238",
              "175",
              "215",
              "176",
              "237",
              "177",
              "178",
              "236",
              "14",
              "1",
              "216",
              "192",
              "2",
              "6",
              "193",
              "7",
              "10",
              "18",
              "194",
              "195",
              "11",
              "111",
              "196",
              "114",
              "197",
              "233",
              "19",
              "13",
              "20",
              "198",
              "126",
              "110",
              "122",
              "26",
              "127",
              "33",
              "199",
              "34",
              "124",
              "220",
              "200",
              "201",
              "202",
              "203",
              "230",
              "129",
              "125",
              "120",
              "225",
              "117",
              "41",
              "30",
              "44",
              "204",
              "47",
              "205",
              "43",
              "206",
              "207",
              "130",
              "32",
              "208",
              "48",
              "187",
              "78",
              "79",
              "80",
              "212"
            ],
            "enumTitles": [
              "All categories",
              "Agriculture",
              "Agriculture > Greenhouses",
              "Agriculture > Tree Farms & Orchards",
              "Agriculture > Vineyards & Wineries",
              "Agriculture > Other Agriculture",
              "Automotive & Boat",
              "Automotive & Boat > Auto Repair & Service Shops",
              "Automotive & Boat > Car Dealerships",
              "Automotive & Boat > Car Washes",
              "Automotive & Boat > Equipment Rental & Dealers",
              "Automotive & Boat > Gas Stations",
              "Automotive & Boat > Junk & Salvage Yards",
              "Automotive & Boat > Marine/Boat Service & Dealers",
              "Automotive & Boat > Tire Stores",
              "Automotive & Boat > Towing Companies",
              "Automotive & Boat > Truck Stops",
              "Automotive & Boat > Other Automotive & Boat",
              "Beauty & Personal Care",
              "Beauty & Personal Care > Hair Salons & Barber Shops",
              "Beauty & Personal Care > Massage",
              "Beauty & Personal Care > Nail Salons",
              "Beauty & Personal Care > Spas",
              "Beauty & Personal Care > Tanning Salons",
              "Beauty & Personal Care > Tattoo & Body Piercing",
              "Beauty & Personal Care > Other Beauty & Personal Care",
              "Building & Construction",
              "Building & Construction > Building Material & Hardware Stores",
              "Building & Construction > Carpet & Flooring",
              "Building & Construction > Concrete",
              "Building & Construction > Electrical & Mechanical",
              "Building & Construction > Heavy Construction",
              "Building & Construction > HVAC Businesses",
              "Building & Construction > Insulation Businesses",
              "Building & Construction > Painting & Finishing Contractors",
              "Building & Construction > Plumbing",
              "Building & Construction > Roofing",
              "Building & Construction > Other Building & Construction",
              "CLASSIFIEDS",
              "CLASSIFIEDS > Auctions",
              "CLASSIFIEDS > Business Connections",
              "CLASSIFIEDS > Business Services",
              "CLASSIFIEDS > Capital To Invest",
              "CLASSIFIEDS > Financing / Business Loans",
              "CLASSIFIEDS > Foreign Connections",
              "CLASSIFIEDS > Internet Services",
              "CLASSIFIEDS > Legal Services",
              "CLASSIFIEDS > Marketing Services",
              "CLASSIFIEDS > Professional Services",
              "CLASSIFIEDS > Wanted - Miscellaneous",
              "CLASSIFIEDS > Other/Other",
              "Communication & Media",
              "Communication & Media > Magazines & Newspapers",
              "Communication & Media > Production Companies",
              "Communication & Media > Other Communication & Media",
              "Education & Children",
              "Education & Children > Day Care & Child Care Centers",
              "Education & Children > Preschools",
              "Education & Children > Schools",
              "Education & Children > Tutoring & Test Prep",
              "Education & Children > Other Education & Children",
              "Entertainment & Recreation",
              "Entertainment & Recreation > Art Galleries",
              "Entertainment & Recreation > Banquet Halls",
              "Entertainment & Recreation > Bowling Alleys",
              "Entertainment & Recreation > Casinos",
              "Entertainment & Recreation > Golf Courses & Services",
              "Entertainment & Recreation > Marinas & Fishing",
              "Entertainment & Recreation > Nightclubs & Theaters",
              "Entertainment & Recreation > Other Entertainment & Recreation",
              "Financial Services",
              "Financial Services > Accounting & Tax Practices",
              "Financial Services > Banking & Loans",
              "Financial Services > Check Cashing",
              "Financial Services > Insurance Agencies",
              "Financial Services > Other Financial Services",
              "Health Care & Fitness",
              "Health Care & Fitness > Assisted Living & Nursing Homes",
              "Health Care & Fitness > Chiropractic Practices",
              "Health Care & Fitness > Dance, Pilates & Yoga",
              "Health Care & Fitness > Dental Practices",
              "Health Care & Fitness > Gyms & Fitness Centers",
              "Health Care & Fitness > Home Health Care",
              "Health Care & Fitness > Medical Practices",
              "Health Care & Fitness > Medical Transportation",
              "Health Care & Fitness > Optometry Practice",
              "Health Care & Fitness > Physical Therapy Practices",
              "Health Care & Fitness > Other Health Care & Fitness",
              "Manufacturing",
              "Manufacturing > Auto, Boat & Aircraft",
              "Manufacturing > Chemical & Related products",
              "Manufacturing > Clothing & Fabric",
              "Manufacturing > Electronic & Electrical Equipment",
              "Manufacturing > Energy & Petroleum",
              "Manufacturing > Food & Related products",
              "Manufacturing > Furniture & Fixtures",
              "Manufacturing > Glass, Stone & Concrete",
              "Manufacturing > Industrial & Commercial Machinery",
              "Manufacturing > Lumber & Wood Products",
              "Manufacturing > Machine Shops & Tools",
              "Manufacturing > Medical Devices & Products",
              "Manufacturing > Metal Products",
              "Manufacturing > Mining",
              "Manufacturing > Packaging",
              "Manufacturing > Paper & Printing",
              "Manufacturing > Rubber & Plastic Products",
              "Manufacturing > Signs",
              "Manufacturing > Other Manufacturing",
              "Non-Classifiable Establishments",
              "Non-Classifiable Establishments > All Non-Classifiable Establishments",
              "Online & Technology",
              "Online & Technology > Cell Phone & Computer Repair & Services",
              "Online & Technology > Graphic & Web Design",
              "Online & Technology > IT & Software Services",
              "Online & Technology > Software & App Companies",
              "Online & Technology > Websites & Ecommerce",
              "Online & Technology > Other Online & Technology",
              "Pet Services",
              "Pet Services > Dog Daycare & Boarding",
              "Pet Services > Pet Grooming",
              "Pet Services > Pet Stores & Supplies",
              "Pet Services > Veterinary Practices",
              "Pet Services > Other Pet Services",
              "Restaurants & Food",
              "Restaurants & Food > American Restaurants",
              "Restaurants & Food > Bakeries",
              "Restaurants & Food > Bars, Pubs & Taverns",
              "Restaurants & Food > Boba Tea & Dessert Shop",
              "Restaurants & Food > Breweries",
              "Restaurants & Food > Chinese Restaurants",
              "Restaurants & Food > Coffee Shops & Cafes",
              "Restaurants & Food > Delis & Sandwich Shops",
              "Restaurants & Food > Diners",
              "Restaurants & Food > Distilleries",
              "Restaurants & Food > Donut Shops",
              "Restaurants & Food > Food Trucks",
              "Restaurants & Food > Ice Cream & Frozen Yogurt Shops",
              "Restaurants & Food > Indian Restaurants",
              "Restaurants & Food > Italian Restaurants",
              "Restaurants & Food > Juice Bars",
              "Restaurants & Food > Korean Restaurants",
              "Restaurants & Food > Mediterranean Restaurants",
              "Restaurants & Food > Mexican Restaurants",
              "Restaurants & Food > Miscellaneous Restaurant & Bars",
              "Restaurants & Food > Pizza Restaurants",
              "Restaurants & Food > Quick Service Restaurants",
              "Restaurants & Food > Sushi & Japanese Restaurants",
              "Restaurants & Food > Thai Restaurants",
              "Restaurants & Food > Vietnamese Restaurants",
              "Restaurants & Food > Other Restaurants & Food",
              "Retail",
              "Retail > Beauty Supply Stores",
              "Retail > Bike Shops",
              "Retail > Clothing & Accessory Stores",
              "Retail > Convenience Stores",
              "Retail > Dollar Stores",
              "Retail > Flower Shops",
              "Retail > Furniture & Furnishings Stores",
              "Retail > Grocery Stores & Supermarkets",
              "Retail > Health Food & Nutrition",
              "Retail > Jewelry Stores",
              "Retail > Liquor Stores",
              "Retail > Nursery & Garden Centers",
              "Retail > Pawn Shops",
              "Retail > Pharmacies",
              "Retail > Smoke Shops",
              "Retail > Sporting Goods Store",
              "Retail > Vending Machines",
              "Retail > Other Retail",
              "Service Businesses",
              "Service Businesses > Architecture & Engineering Firms",
              "Service Businesses > Catering Companies",
              "Service Businesses > Cleaning Businesses",
              "Service Businesses > Commercial Laundry",
              "Service Businesses > Dry Cleaners",
              "Service Businesses > Funeral Homes",
              "Service Businesses > Landscaping & Yard Services",
              "Service Businesses > Laundromats & Coin Laundry",
              "Service Businesses > Legal Services & Law Firms",
              "Service Businesses > Locksmith",
              "Service Businesses > Marketing & Advertising",
              "Service Businesses > Medical Billing",
              "Service Businesses > Mobile Home Parks",
              "Service Businesses > Pest Control",
              "Service Businesses > Property Management",
              "Service Businesses > Restoration & Remediation",
              "Service Businesses > Routes",
              "Service Businesses > Security",
              "Service Businesses > Staffing Agencies",
              "Service Businesses > Swimming Pool Businesses",
              "Service Businesses > Waste Management & Recycling",
              "Service Businesses > Other Service Businesses",
              "Transportation & Storage",
              "Transportation & Storage > Limo & Passenger Transportation",
              "Transportation & Storage > Moving & Shipping",
              "Transportation & Storage > Storage Facilities & Warehouses",
              "Transportation & Storage > Trucking Companies",
              "Transportation & Storage > Other Transportation & Storage",
              "Travel",
              "Travel > Bed & Breakfasts",
              "Travel > Campgrounds & RV Parks",
              "Travel > Hotels",
              "Travel > Motels",
              "Travel > Travel Agencies",
              "Travel > Other Travel",
              "Wholesale & Distributors",
              "Wholesale & Distributors > Durable Goods",
              "Wholesale & Distributors > Nondurable Goods",
              "Wholesale & Distributors > Other Wholesalers & Distributors"
            ],
            "default": "ALL",
            "prefill": "ALL"
          },
          "listingType": {
            "title": "Listing type",
            "type": "string",
            "description": "Established businesses, business assets, business real estate, or startup listings. (mode=search)",
            "editor": "select",
            "enum": [
              "all",
              "established",
              "assetSale",
              "realEstate",
              "startup"
            ],
            "enumTitles": [
              "All listing types",
              "Established businesses",
              "Business assets",
              "Business real estate",
              "Startup businesses"
            ],
            "default": "all",
            "prefill": "all"
          },
          "minAskingPrice": {
            "title": "Minimum asking price (USD)",
            "type": "integer",
            "description": "Only listings at or above this asking price. Leave blank for no minimum.",
            "editor": "number",
            "minimum": 0,
            "maximum": 10000000000
          },
          "maxAskingPrice": {
            "title": "Maximum asking price (USD)",
            "type": "integer",
            "description": "Only listings at or below this asking price. Leave blank for no maximum.",
            "editor": "number",
            "minimum": 0,
            "maximum": 10000000000
          },
          "minCashFlow": {
            "title": "Minimum cash flow / SDE (USD)",
            "type": "integer",
            "description": "Only listings at or above this annual cash flow (SDE). Leave blank for no minimum.",
            "editor": "number",
            "minimum": 0,
            "maximum": 10000000000
          },
          "maxCashFlow": {
            "title": "Maximum cash flow / SDE (USD)",
            "type": "integer",
            "description": "Only listings at or below this annual cash flow (SDE). Leave blank for no maximum.",
            "editor": "number",
            "minimum": 0,
            "maximum": 10000000000
          },
          "minGrossRevenue": {
            "title": "Minimum gross revenue (USD)",
            "type": "integer",
            "description": "Only listings at or above this annual gross revenue. Leave blank for no minimum.",
            "editor": "number",
            "minimum": 0,
            "maximum": 10000000000
          },
          "maxGrossRevenue": {
            "title": "Maximum gross revenue (USD)",
            "type": "integer",
            "description": "Only listings at or below this annual gross revenue. Leave blank for no maximum.",
            "editor": "number",
            "minimum": 0,
            "maximum": 10000000000
          },
          "establishedAfterYear": {
            "title": "Established after year",
            "type": "integer",
            "description": "Only businesses established after this year, e.g. 2015. Leave blank for any year.",
            "editor": "number",
            "minimum": 1800,
            "maximum": 2100
          },
          "listedWithinDays": {
            "title": "Listed within days",
            "type": "integer",
            "description": "Only listings added or refreshed within this many days. 0 means any age.",
            "editor": "number",
            "minimum": 0,
            "maximum": 3650,
            "default": 0,
            "prefill": 0
          },
          "sortBy": {
            "title": "Sort by",
            "type": "string",
            "description": "Result ordering. Relevance is the marketplace default.",
            "editor": "select",
            "enum": [
              "default",
              "priceAsc",
              "priceDesc",
              "cashFlowDesc",
              "newest"
            ],
            "enumTitles": [
              "Relevance (default)",
              "Asking price: low to high",
              "Asking price: high to low",
              "Cash flow: high to low",
              "Newest listings first"
            ],
            "default": "default",
            "prefill": "default"
          },
          "sellerFinancing": {
            "title": "Seller financing only",
            "type": "boolean",
            "description": "Only listings that offer seller financing.",
            "editor": "checkbox",
            "default": false,
            "prefill": false
          },
          "homeBased": {
            "title": "Home-based only",
            "type": "boolean",
            "description": "Only home-based businesses.",
            "editor": "checkbox",
            "default": false,
            "prefill": false
          },
          "realEstateIncluded": {
            "title": "Real estate included only",
            "type": "boolean",
            "description": "Only listings where real estate is included in the asking price.",
            "editor": "checkbox",
            "default": false,
            "prefill": false
          },
          "absenteeOwner": {
            "title": "Absentee-owner only",
            "type": "boolean",
            "description": "Only listings that allow an absentee owner.",
            "editor": "checkbox",
            "default": false,
            "prefill": false
          },
          "priceReduced": {
            "title": "Price reduced only",
            "type": "boolean",
            "description": "Only listings with a reduced asking price.",
            "editor": "checkbox",
            "default": false,
            "prefill": false
          },
          "franchiseResale": {
            "title": "Franchise resales only",
            "type": "boolean",
            "description": "Only franchise resale listings.",
            "editor": "checkbox",
            "default": false,
            "prefill": false
          },
          "strictFilters": {
            "title": "Strict gross-revenue filtering",
            "type": "boolean",
            "description": "When a gross-revenue filter is set, trust BizBuySell's source-side filter when detail revenue is unavailable; when enrichDetails successfully reads a detail page, drop records whose detail revenue is still unknown. Default false.",
            "editor": "checkbox",
            "default": false,
            "prefill": false
          },
          "enrichDetails": {
            "title": "Fetch full detail pages",
            "type": "boolean",
            "description": "Adds full description, gross revenue, employees, established year, inventory, FF&E, rent, facilities, financing and broker phone. Adds one request per listing and is slower.",
            "editor": "checkbox",
            "default": false,
            "prefill": false
          },
          "mirrorImages": {
            "title": "Mirror images to Apify storage",
            "type": "boolean",
            "description": "Store listing photos in this run's key-value store and return public Apify URLs. On by default so images open from any client; turn off to keep the source URLs.",
            "editor": "checkbox",
            "default": true,
            "prefill": true
          },
          "startUrls": {
            "title": "BizBuySell URLs",
            "type": "array",
            "description": "BizBuySell search, category, state, city, county or listing URLs. (mode=byUrls)",
            "editor": "requestListSources",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "URL",
                  "type": "string",
                  "description": "BizBuySell search or listing URL."
                }
              }
            },
            "default": [],
            "prefill": []
          },
          "listingIds": {
            "title": "Listing IDs",
            "type": "array",
            "description": "Numeric BizBuySell listing IDs, e.g. 2501583. (mode=byListingIds)",
            "editor": "stringList",
            "items": {
              "type": "string"
            },
            "default": [],
            "prefill": []
          },
          "maxItems": {
            "title": "Maximum listings",
            "type": "integer",
            "description": "Hard cap on the number of listings to save.",
            "editor": "number",
            "minimum": 1,
            "maximum": 10000,
            "default": 50,
            "prefill": 3
          },
          "stateKey": {
            "title": "Monitoring state key",
            "type": "string",
            "description": "Optional. Set the same key on scheduled runs to remember previously seen listings in a named key-value store. Leave empty for stateless scraping.",
            "editor": "textfield"
          },
          "onlyNew": {
            "title": "Only new listings",
            "type": "boolean",
            "description": "With stateKey, emit only listing IDs that were never seen in a previous run. New/changed records are emitted by default when stateKey is set.",
            "editor": "checkbox",
            "default": false,
            "prefill": false
          },
          "emitUnchanged": {
            "title": "Also emit unchanged listings",
            "type": "boolean",
            "description": "With stateKey, also emit listings whose tracked fields did not change. Leave off to receive only new or changed listings.",
            "editor": "checkbox",
            "default": false,
            "prefill": false
          },
          "proxyConfiguration": {
            "title": "Proxy configuration (optional)",
            "type": "object",
            "description": "Optional override for advanced users. Leave empty to let the actor connect directly and choose its own fallback route; search works without any proxy setup.",
            "editor": "proxy"
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "BizBuySell Businesses-for-Sale & Financials Scraper Output",
        "description": "One record per BizBuySell business-for-sale listing with asking price, location, financials, broker contacts, listing age, lease terms, optional full detail-page fields, incremental-monitoring change flags and inactive tombstones for missing explicit listing IDs.",
        "properties": {
          "listings": {
            "type": "string",
            "title": "BizBuySell Listings",
            "description": "Dataset containing all scraped business-for-sale listings",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "dockerfile": "./Dockerfile",
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "Overview",
              "transformation": {
                "fields": [
                  "title",
                  "location",
                  "askingPrice",
                  "cashFlow",
                  "listingType",
                  "url"
                ]
              },
              "display": {
                "component": "table",
                "properties": {
                  "title": {
                    "label": "Business Title",
                    "format": "text"
                  },
                  "location": {
                    "label": "Location",
                    "format": "text"
                  },
                  "askingPrice": {
                    "label": "Asking Price",
                    "format": "text"
                  },
                  "cashFlow": {
                    "label": "Cash Flow (SDE)",
                    "format": "text"
                  },
                  "listingType": {
                    "label": "Listing Type",
                    "format": "text"
                  },
                  "url": {
                    "label": "Listing URL",
                    "format": "link"
                  }
                }
              }
            },
            "financials": {
              "title": "Financials",
              "transformation": {
                "fields": [
                  "title",
                  "location",
                  "askingPrice",
                  "cashFlow",
                  "grossRevenue",
                  "ebitda",
                  "established",
                  "employees"
                ]
              },
              "display": {
                "component": "table",
                "properties": {
                  "title": {
                    "label": "Business Title",
                    "format": "text"
                  },
                  "location": {
                    "label": "Location",
                    "format": "text"
                  },
                  "askingPrice": {
                    "label": "Asking Price",
                    "format": "text"
                  },
                  "cashFlow": {
                    "label": "Cash Flow (SDE)",
                    "format": "text"
                  },
                  "grossRevenue": {
                    "label": "Gross Revenue",
                    "format": "text"
                  },
                  "ebitda": {
                    "label": "EBITDA",
                    "format": "text"
                  },
                  "established": {
                    "label": "Established",
                    "format": "text"
                  },
                  "employees": {
                    "label": "Employees",
                    "format": "text"
                  }
                }
              }
            },
            "detailed": {
              "title": "Detailed",
              "transformation": {
                "fields": [
                  "title",
                  "productId",
                  "location",
                  "stateCode",
                  "category",
                  "description",
                  "askingPrice",
                  "askingPriceNumeric",
                  "cashFlow",
                  "grossRevenue",
                  "ebitda",
                  "brokerName",
                  "brokerPhone",
                  "url",
                  "searchUrl",
                  "scrapedAt",
                  "detailStatus",
                  "enriched",
                  "truncated",
                  "imagesOriginal",
                  "imageStatus",
                  "daysListedAgo",
                  "daysModifiedAgo",
                  "listingStatus",
                  "leaseDurationMonths",
                  "leaseRatePerSquareFootNumeric",
                  "isNew",
                  "changed"
                ]
              },
              "display": {
                "component": "table",
                "properties": {
                  "title": {
                    "label": "Business Title",
                    "format": "text"
                  },
                  "productId": {
                    "label": "Listing ID",
                    "format": "text"
                  },
                  "location": {
                    "label": "Location",
                    "format": "text"
                  },
                  "stateCode": {
                    "label": "State",
                    "format": "text"
                  },
                  "category": {
                    "label": "Category",
                    "format": "text"
                  },
                  "description": {
                    "label": "Description",
                    "format": "text"
                  },
                  "askingPrice": {
                    "label": "Asking Price",
                    "format": "text"
                  },
                  "askingPriceNumeric": {
                    "label": "Price (numeric)",
                    "format": "number"
                  },
                  "cashFlow": {
                    "label": "Cash Flow (SDE)",
                    "format": "text"
                  },
                  "grossRevenue": {
                    "label": "Gross Revenue",
                    "format": "text"
                  },
                  "ebitda": {
                    "label": "EBITDA",
                    "format": "text"
                  },
                  "brokerName": {
                    "label": "Broker",
                    "format": "text"
                  },
                  "brokerPhone": {
                    "label": "Broker Phone",
                    "format": "text"
                  },
                  "url": {
                    "label": "Listing URL",
                    "format": "link"
                  },
                  "searchUrl": {
                    "label": "Search URL",
                    "format": "link"
                  },
                  "scrapedAt": {
                    "label": "Scraped At",
                    "format": "text"
                  },
                  "daysListedAgo": {
                    "label": "Days Listed",
                    "format": "number"
                  },
                  "daysModifiedAgo": {
                    "label": "Days Since Modified",
                    "format": "number"
                  },
                  "listingStatus": {
                    "label": "Listing Status",
                    "format": "text"
                  },
                  "leaseDurationMonths": {
                    "label": "Lease Duration (months)",
                    "format": "number"
                  },
                  "leaseRatePerSquareFootNumeric": {
                    "label": "Lease Rate / SF",
                    "format": "number"
                  },
                  "isNew": {
                    "label": "New This Run",
                    "format": "text"
                  },
                  "changed": {
                    "label": "Changed This Run",
                    "format": "text"
                  }
                }
              }
            }
          }
        }
      },
      "environmentVariables": {},
      "readme": "# BizBuySell Businesses-for-Sale & Financials Scraper\r\n\r\nBizBuySell is the largest US marketplace for buying and selling small businesses, franchises and commercial real estate. This actor turns its public listings into structured deal data: asking price, location, cash flow, EBITDA, revenue, broker contacts and the full detail-page story for each business.\r\n\r\n## What this actor does\r\n\r\n- **Search the marketplace your way** — keyword, state, city, county, 200+ industries, listing type, asking-price range, cash-flow range, gross-revenue range, established-after year, days listed and sort order.\r\n- **Or paste URLs and IDs** — BizBuySell search pages, category pages, state/city/county pages and individual listing URLs all work; exact listing IDs are supported too.\r\n- **Get the financial picture** — asking price, cash flow (SDE), EBITDA, gross revenue, real estate, inventory, FF&E, rent, year established and employee count when the seller discloses them.\r\n- **Reach the broker** — broker name, phone, company and profile link from the listing and its detail page.\r\n- **Go deeper on demand** — turn on `enrichDetails` for the full description, facilities, competition, growth, financing, support and reason for selling.\r\n- **Monitor new and changed listings** — set `stateKey` on scheduled runs to remember what was already seen; `onlyNew` and `emitUnchanged` control whether you receive new, changed or every listing.\r\n- Empty fields are omitted, never sent as `null`.\r\n\r\n## Output per listing\r\n\r\n- `productId` — BizBuySell's numeric listing ID\r\n- `title` — listing headline\r\n- `description` — summary, or the full description with `enrichDetails`\r\n- `url` — direct link to the listing\r\n- `location` — city or county plus state, e.g. `Bonita Springs, FL`\r\n- `city`, `county`, `stateCode`, `state` — parsed location parts\r\n- `askingPrice`, `askingPriceNumeric` — formatted and numeric asking price\r\n- `askingPriceDetail` — asking price as shown on the detail page, with `enrichDetails`\r\n- `cashFlow`, `cashFlowNumeric` — seller's discretionary earnings / SDE\r\n- `grossRevenue`, `grossRevenueNumeric` — annual gross revenue, with `enrichDetails`\r\n- `ebitda`, `ebitdaNumeric` — EBITDA when disclosed\r\n- `realEstate`, `realEstateNumeric` — included real-estate value or `Owned` / `Leased` status, with `enrichDetails`\r\n- `inventory`, `inventoryNumeric` — inventory value and inclusion, with `enrichDetails`\r\n- `ffe`, `ffeNumeric` — furniture, fixtures and equipment, with `enrichDetails`\r\n- `rentMonthly`, `rentMonthlyNumeric` — monthly rent, with `enrichDetails`\r\n- `established`, `establishedYear` — founding year, with `enrichDetails`\r\n- `employees`, `employeeCount` — headcount, with `enrichDetails`\r\n- `listingTypeId`, `listingType` — established, asset sale, real estate or startup\r\n- `adLevelId`, `adLevel` — marketplace placement level\r\n- `category` — industry path, e.g. `Laundromats and Coin Laundry > Dry Cleaners`\r\n- `image` — primary photo URL; with `mirrorImages` on (the default) this is a public Apify storage URL that opens from any client. If you turn mirroring off, this is the source CDN URL and may return 403.\r\n- `images` — every photo URL the search result exposes, in source order. These are the original BizBuySell CDN URLs.\r\n- `imageOriginal` — the source BizBuySell CDN URL, kept for traceability; the CDN may return 403 to a clean shell, so use `image` for customer-facing links\r\n- `imageStatus` — `mirrored`, `mirror_failed` or `skipped` when image mirroring is requested\r\n- `recentlyAdded`, `recentlyUpdated`, `priceReduced` — listing freshness flags\r\n- `daysListedAgo`, `daysModifiedAgo` — days since the listing was added or modified, only when BizBuySell reports them; never calculated from an invented date\r\n- `hotProperty`, `franchiseResale` — marketplace badges when the search result reports them\r\n- `leaseRateDuration`, `leaseRatePerSquareFoot` — raw lease terms exactly as the search result reports them\r\n- `leaseDurationMonths` — lease duration normalized to months only when the raw text states years or months (for example `5 years` → `60`); omitted when the unit is not explicit\r\n- `leaseRatePerSquareFootNumeric`, `leaseRatePerSquareFootPeriod` — numeric per-square-foot rate and the period (`year`, `month`, `week` or `day`) only when the source text states it; the raw `leaseRatePerSquareFoot` text is retained\r\n- `listingStatus`, `listingStatusSource`, `listingStatusEvidence`, `statusCheckedAt` — `inactive` tombstone for an explicit listing ID that a successful lookup no longer returns; this is the actor's observed absence, not a BizBuySell sold/expired status\r\n- `realEstateIncluded` — real estate included in the asking price\r\n- `sellerFinancing`, `homeBased` — seller terms and operating style, with `enrichDetails`\r\n- `brokerName`, `brokerPhone`, `brokerCompany`, `brokerProfileUrl` — listing contact\r\n- `facilities`, `competition`, `growthAndExpansion`, `financing`, `supportAndTraining`, `reasonForSelling` — detail-page narrative, with `enrichDetails`\r\n- `buildingSquareFeet`, `website` — premises size and business website, with `enrichDetails`\r\n- `detailsRaw` — raw detail-page labels and values (for example `\"Cash Flow (SDE)\": \"$75,000\"`), with `enrichDetails`\r\n- `enriched` — `true` only when the detail page was fetched and merged\r\n- `detailStatus` — `ok`, `blocked`, `timeout`, `skipped` or `error`; `skipped` covers `enrichDetails` off and the circuit breaker\r\n- `detailError` — the reason enrichment was blocked, timed out, failed or was skipped by the circuit breaker\r\n- `searchUrl` — the exact search URL, including every filter and sort used; listing-ID and listing-URL runs use the listing URL as provenance\r\n- `searchTotal` — the total the source reported for that search, when it returned one\r\n- `truncated` — `true` when `maxItems` or the 10,000-result window actually cut the result set\r\n- `searchInput` — the normalized search filters used for the record\r\n- `isNew`, `changed`, `changedFields`, `previousValues` — incremental-monitoring signals when `stateKey` is set; a new listing has `isNew: true`, a previously seen listing with different tracked fields has `changed: true` and lists them in `changedFields`\r\n- `firstSeenAt`, `lastSeenAt`, `lastChangedAt`, `monitorStateKey` — actor observation timestamps and the state key used for monitoring; these are not BizBuySell-provided listing dates\r\n- `recordType: \"businessListing\"`, `scrapedAt` — UTC ISO 8601 timestamp\r\n\r\n## Input\r\n\r\n| Field | Type | Default | Description |\r\n|---|---|---|---|\r\n| `mode` | string | `search` | `search`, `byUrls` or `byListingIds` |\r\n| `searchQuery` | string | - | Keyword, e.g. restaurant, HVAC, car wash (mode=search) |\r\n| `state` | string | `ALL` | US state or `ALL` (mode=search) |\r\n| `city` | string | – | City filter, e.g. Austin (mode=search) |\r\n| `county` | string | – | County filter, e.g. Los Angeles County (mode=search) |\r\n| `category` | string | `ALL` | BizBuySell industry category (mode=search) |\r\n| `listingType` | string | `all` | `all`, `established`, `assetSale`, `realEstate`, `startup` (mode=search) |\r\n| `minAskingPrice` / `maxAskingPrice` | integer | – | Asking-price range in USD |\r\n| `minCashFlow` / `maxCashFlow` | integer | – | Annual cash-flow range in USD |\r\n| `minGrossRevenue` / `maxGrossRevenue` | integer | – | Annual gross-revenue range in USD |\r\n| `establishedAfterYear` | integer | – | Only businesses founded after this year |\r\n| `listedWithinDays` | integer | `0` | Only listings added or refreshed within this many days; `0` = any |\r\n| `sortBy` | string | `default` | `default`, `priceAsc`, `priceDesc`, `cashFlowDesc`, `newest` |\r\n| `sellerFinancing` | boolean | `false` | Only seller-financing listings |\r\n| `homeBased` | boolean | `false` | Only home-based businesses |\r\n| `realEstateIncluded` | boolean | `false` | Only listings with real estate included |\r\n| `absenteeOwner` | boolean | `false` | Only absentee-owner listings |\r\n| `priceReduced` | boolean | `false` | Only price-reduced listings |\r\n| `franchiseResale` | boolean | `false` | Only franchise resales |\r\n| `strictFilters` | boolean | `false` | Enforce the gross-revenue filter strictly. The source-side filter is trusted when detail revenue is unavailable; with `enrichDetails`, unknown detail values are dropped |\r\n| `enrichDetails` | boolean | `false` | Fetch each listing's detail page for full financials and narrative |\r\n| `mirrorImages` | boolean | `true` | Copy photos into public Apify storage and return stable URLs |\r\n| `startUrls` | array | `[]` | BizBuySell search, category or listing URLs (mode=byUrls) |\r\n| `listingIds` | array | `[]` | Numeric listing IDs (mode=byListingIds) |\r\n| `maxItems` | integer | `50` | Hard cap, 1–10,000 |\r\n| `stateKey` | string | – | Optional incremental-monitoring key. Reuse the same key on scheduled runs to persist seen listings in a named key-value store |\r\n| `onlyNew` | boolean | `false` | With `stateKey`, emit only listing IDs never seen in a previous run |\r\n| `emitUnchanged` | boolean | `false` | With `stateKey`, also emit listings whose tracked fields did not change; leave off for new/changed only |\r\n| `proxyConfiguration` | object | – | Optional proxy override; leave empty to use the actor's own connection fallback |\r\n\r\n### Example: California laundromats with strong cash flow\r\n\r\n```json\r\n{\r\n  \"mode\": \"search\",\r\n  \"searchQuery\": \"laundromat\",\r\n  \"state\": \"CA\",\r\n  \"minCashFlow\": 100000,\r\n  \"maxItems\": 50\r\n}\r\n```\r\n\r\n### Example: restaurants in Los Angeles County\r\n\r\n```json\r\n{\r\n  \"mode\": \"search\",\r\n  \"category\": \"17\",\r\n  \"state\": \"CA\",\r\n  \"county\": \"Los Angeles County\",\r\n  \"minAskingPrice\": 100000,\r\n  \"maxAskingPrice\": 1000000,\r\n  \"sortBy\": \"priceAsc\",\r\n  \"maxItems\": 100\r\n}\r\n```\r\n\r\n### Example: look up exact listings with full details\r\n\r\n```json\r\n{\r\n  \"mode\": \"byListingIds\",\r\n  \"listingIds\": [\"2501583\", \"2571748\"],\r\n  \"enrichDetails\": true,\r\n  \"maxItems\": 2\r\n}\r\n```\r\n\r\n### Example: paste a BizBuySell search URL\r\n\r\n```json\r\n{\r\n  \"mode\": \"byUrls\",\r\n  \"startUrls\": [\r\n    { \"url\": \"https://www.bizbuysell.com/california-businesses-for-sale/\" }\r\n  ],\r\n  \"maxItems\": 50\r\n}\r\n```\r\n\r\n### Example: daily monitoring of new California laundromats\r\n\r\n```json\r\n{\r\n  \"mode\": \"search\",\r\n  \"searchQuery\": \"laundromat\",\r\n  \"state\": \"CA\",\r\n  \"maxItems\": 50,\r\n  \"stateKey\": \"ca-laundromats\",\r\n  \"onlyNew\": true\r\n}\r\n```\r\n\r\nRun this on a schedule with the same `stateKey`; each run emits only listing IDs that were not seen before. Drop `onlyNew` and keep `emitUnchanged: false` to receive new plus changed listings, or set `emitUnchanged: true` to receive every match with change flags.\r\n\r\n## Use cases\r\n\r\n- **Deal sourcing** — build a daily shortlist of businesses for sale by state, county, industry and cash flow.\r\n- **Broker outreach** — collect broker names and phone numbers for a target market and industry.\r\n- **Valuation benchmarking** — compare asking prices and SDE multiples across regions and categories.\r\n- **Search-fund research** — screen acquisition targets by revenue, cash flow and seller financing.\r\n- **Market monitoring** — track new listings, price reductions and recently updated businesses.\r\n- **Franchise and real-estate buyers** — find franchise resales and listings where real estate is included.\r\n\r\n## FAQ\r\n\r\n### Do I need a BizBuySell account?\r\n\r\nNo. Every field comes from public listing pages and the public search feed. No login, cookie or API key is needed.\r\n\r\n### How fresh is the data?\r\n\r\nEach run reads the current search results and listing pages, so the dataset reflects what BizBuySell shows at that moment.\r\n\r\n### How does incremental monitoring work?\r\n\r\nSet `stateKey` to a stable name, for example `ca-laundromats`, and reuse it on every scheduled run. The actor stores a per-listing field snapshot and observation timestamps in the named Apify key-value store `bizbuysell-monitor-state`, under the `stateKey` record, not in the dataset. Each emitted record then carries `isNew`, `changed`, `changedFields`, `previousValues`, `firstSeenAt`, `lastSeenAt` and `lastChangedAt`.\r\n\r\n- `onlyNew: true` emits only listing IDs that were never seen before.\r\n- With `onlyNew: false` and `emitUnchanged: false` (the default when `stateKey` is set), only new or changed listings are emitted.\r\n- `emitUnchanged: true` emits every match and still annotates changes.\r\n- Without `stateKey`, every run is stateless and always emits every matching listing. Use a new `stateKey` to start a fresh baseline.\r\n\r\nThe tracked fields are search-level (title, price, cash flow, EBITDA, location, listing type, status and freshness flags), so a temporarily unavailable detail page does not create false price-change alerts. Monitoring timestamps are observation times recorded by the actor, not listing dates published by BizBuySell.\r\n\r\n### Which date and status fields are available?\r\n\r\nBizBuySell's search feed sometimes exposes `daysListedAgo` and `daysModifiedAgo`; the actor emits them only when the source provides them. `recentlyAdded` and `recentlyUpdated` come from the same feed. Detail-page date-listed or sold/expired status is not reliably exposed by BizBuySell; that part is a hard limit, so the actor does not invent one. For explicit `listingIds` or listing URLs, an ID that a successful lookup no longer returns is emitted as a tombstone with `listingStatus: \"inactive\"`, `listingStatusSource: \"listing-id-lookup\"` and `statusCheckedAt`. Tombstones keep the ID, status, provenance and observation timestamps but do not invent a title or price. A failed lookup is not treated as an inactive listing.\r\n\r\n### How are lease terms normalized?\r\n\r\nThe raw `leaseRateDuration` and `leaseRatePerSquareFoot` text is always preserved. `leaseDurationMonths` is added only when the raw duration states a year or month unit. `leaseRatePerSquareFootNumeric` is the amount and `leaseRatePerSquareFootPeriod` is set only when the source text names the period. A bare number such as `20` is not assumed to be monthly or annual.\r\n\r\n### Why are some financial fields missing?\r\n\r\nSellers fill in cash flow, revenue, EBITDA, inventory and similar fields voluntarily. If a seller did not disclose a figure, that field is omitted from the record instead of being invented.\r\n\r\n### Why do some listings have no asking price?\r\n\r\nSome sellers hide the price. Those records keep the listing, location, description and broker details but omit the price fields.\r\n\r\n### What is the difference between cash flow, EBITDA and gross revenue?\r\n\r\nCash flow (SDE) is the seller's discretionary earnings after owner compensation and add-backs. EBITDA is earnings before interest, taxes, depreciation and amortization. Gross revenue is total annual sales before expenses. BizBuySell sellers report them separately and not every listing discloses all three.\r\n\r\n### How many listings can I get in one run?\r\n\r\nBizBuySell returns up to 10,000 results per query. To go deeper, split the market into smaller slices — for example one state, county or category at a time — and combine the runs. `maxItems` is capped at 10,000 for the same reason. Each search-mode record carries `searchTotal` when the source reports it, and `truncated` tells you whether `maxItems` or the 10,000-result window actually cut that search short.\r\n\r\n### Does `enrichDetails` always fill every detail field?\r\n\r\nIt fills what the public detail page shows. The detail page is sometimes rate-limited by the site, so the actor treats enrichment as best-effort: when a detail page is unavailable, the listing is still saved with its search-result fields and the run continues. Every record states `enriched` and `detailStatus`, with `detailError` when applicable; records skipped after repeated failures are marked `detailStatus: \"skipped\"` rather than being reported as enriched.\r\n\r\n### How does the gross-revenue filter behave when revenue is unknown?\r\n\r\nThe search feed rarely includes gross revenue, but BizBuySell applies the gross-income range on its own search endpoint. The actor trusts that source-side filter when detail revenue is unavailable. With `enrichDetails`, a missing detail value is included unless `strictFilters: true` is set; strict filtering only drops unknowns when detail data was expected. The run status message states which behavior was used, so the filter is never silently claimed to be complete.\r\n\r\n### Can I search by city or county?\r\n\r\nYes. Enter a city or county name and the actor resolves it against BizBuySell's location list. A state filter is optional but helps disambiguate names that exist in several states.\r\n\r\n### How does keyword search work?\r\n\r\nBizBuySell ranks keyword matches by relevance across the listing, including the full description. It is not an exact substring match, so a result can match a word that appears later in the description rather than in the title.\r\n\r\n### Can I get broker email addresses?\r\n\r\nNo. This is a hard limit. BizBuySell's public search API returns broker name, phone and profile URL only, and the public detail page's broker block exposes name, phone and profile link with no email address. The actor does not invent, guess or enrich emails.\r\n\r\n### Why does `imageOriginal` sometimes fail to open?\r\n\r\n`imageOriginal` is the source BizBuySell CDN URL, kept for traceability. That CDN can return 403 to a clean client. The `image` field is the customer-facing URL and is mirrored into Apify storage by default.\r\n\r\n### Do you scrape franchise and broker directories?\r\n\r\nNo. The actor covers business-for-sale listings, including franchise resales and real-estate listings. The separate franchise directory and broker directory are out of scope.\r\n\r\n### Why are some fields only present with `enrichDetails`?\r\n\r\nFields such as gross revenue, inventory, FF&E, rent, employees, year established, facilities, financing and website come from the individual listing page. The search feed does not carry them for every listing.\r\n\r\n### Do I need to set up a proxy?\r\n\r\nNo. Search works with no proxy at all, and the actor chooses a fallback connection for detail pages automatically. `proxyConfiguration` is an optional override for advanced users only; leaving it empty is the recommended setup.\r\n\r\n### Is this affiliated with BizBuySell?\r\n\r\nNo. This is an independent, third-party actor that reads publicly available BizBuySell listing pages. It is not affiliated with or endorsed by BizBuySell or its parent company.\r\n"
    },
    "buildNumber": "1.0.3",
    "imageDigest": "63f052dec251f816ac962daa73793ebaed87064690f649ebd00a7bb1e264ed0f",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.00995
    }
  }
}