{
  "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.",
  "properties": {
    "absenteeOwner": {
      "default": false,
      "description": "Only listings that allow an absentee owner.",
      "editor": "checkbox",
      "prefill": false,
      "title": "Absentee-owner only",
      "type": "boolean"
    },
    "category": {
      "default": "ALL",
      "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"
      ],
      "prefill": "ALL",
      "title": "Industry / category",
      "type": "string"
    },
    "city": {
      "default": "",
      "description": "Optional city filter, e.g. Austin or Los Angeles. Resolved against BizBuySell locations. (mode=search)",
      "editor": "textfield",
      "prefill": "",
      "title": "City",
      "type": "string"
    },
    "county": {
      "default": "",
      "description": "Optional county filter, e.g. Los Angeles County. Resolved against BizBuySell locations. (mode=search)",
      "editor": "textfield",
      "prefill": "",
      "title": "County",
      "type": "string"
    },
    "emitUnchanged": {
      "default": false,
      "description": "With stateKey, also emit listings whose tracked fields did not change. Leave off to receive only new or changed listings.",
      "editor": "checkbox",
      "prefill": false,
      "title": "Also emit unchanged listings",
      "type": "boolean"
    },
    "enrichDetails": {
      "default": false,
      "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",
      "prefill": false,
      "title": "Fetch full detail pages",
      "type": "boolean"
    },
    "establishedAfterYear": {
      "description": "Only businesses established after this year, e.g. 2015. Leave blank for any year.",
      "editor": "number",
      "maximum": 2100,
      "minimum": 1800,
      "title": "Established after year",
      "type": "integer"
    },
    "franchiseResale": {
      "default": false,
      "description": "Only franchise resale listings.",
      "editor": "checkbox",
      "prefill": false,
      "title": "Franchise resales only",
      "type": "boolean"
    },
    "homeBased": {
      "default": false,
      "description": "Only home-based businesses.",
      "editor": "checkbox",
      "prefill": false,
      "title": "Home-based only",
      "type": "boolean"
    },
    "listedWithinDays": {
      "default": 0,
      "description": "Only listings added or refreshed within this many days. 0 means any age.",
      "editor": "number",
      "maximum": 3650,
      "minimum": 0,
      "prefill": 0,
      "title": "Listed within days",
      "type": "integer"
    },
    "listingIds": {
      "default": [],
      "description": "Numeric BizBuySell listing IDs, e.g. 2501583. (mode=byListingIds)",
      "editor": "stringList",
      "items": {
        "type": "string"
      },
      "prefill": [],
      "title": "Listing IDs",
      "type": "array"
    },
    "listingType": {
      "default": "all",
      "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"
      ],
      "prefill": "all",
      "title": "Listing type",
      "type": "string"
    },
    "maxAskingPrice": {
      "description": "Only listings at or below this asking price. Leave blank for no maximum.",
      "editor": "number",
      "maximum": 10000000000,
      "minimum": 0,
      "title": "Maximum asking price (USD)",
      "type": "integer"
    },
    "maxCashFlow": {
      "description": "Only listings at or below this annual cash flow (SDE). Leave blank for no maximum.",
      "editor": "number",
      "maximum": 10000000000,
      "minimum": 0,
      "title": "Maximum cash flow / SDE (USD)",
      "type": "integer"
    },
    "maxGrossRevenue": {
      "description": "Only listings at or below this annual gross revenue. Leave blank for no maximum.",
      "editor": "number",
      "maximum": 10000000000,
      "minimum": 0,
      "title": "Maximum gross revenue (USD)",
      "type": "integer"
    },
    "maxItems": {
      "default": 50,
      "description": "Hard cap on the number of listings to save.",
      "editor": "number",
      "maximum": 10000,
      "minimum": 1,
      "prefill": 3,
      "title": "Maximum listings",
      "type": "integer"
    },
    "minAskingPrice": {
      "description": "Only listings at or above this asking price. Leave blank for no minimum.",
      "editor": "number",
      "maximum": 10000000000,
      "minimum": 0,
      "title": "Minimum asking price (USD)",
      "type": "integer"
    },
    "minCashFlow": {
      "description": "Only listings at or above this annual cash flow (SDE). Leave blank for no minimum.",
      "editor": "number",
      "maximum": 10000000000,
      "minimum": 0,
      "title": "Minimum cash flow / SDE (USD)",
      "type": "integer"
    },
    "minGrossRevenue": {
      "description": "Only listings at or above this annual gross revenue. Leave blank for no minimum.",
      "editor": "number",
      "maximum": 10000000000,
      "minimum": 0,
      "title": "Minimum gross revenue (USD)",
      "type": "integer"
    },
    "mirrorImages": {
      "default": true,
      "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",
      "prefill": true,
      "title": "Mirror images to Apify storage",
      "type": "boolean"
    },
    "mode": {
      "default": "search",
      "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"
      ],
      "prefill": "search",
      "title": "Mode",
      "type": "string"
    },
    "onlyNew": {
      "default": false,
      "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",
      "prefill": false,
      "title": "Only new listings",
      "type": "boolean"
    },
    "priceReduced": {
      "default": false,
      "description": "Only listings with a reduced asking price.",
      "editor": "checkbox",
      "prefill": false,
      "title": "Price reduced only",
      "type": "boolean"
    },
    "proxyConfiguration": {
      "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",
      "title": "Proxy configuration (optional)",
      "type": "object"
    },
    "realEstateIncluded": {
      "default": false,
      "description": "Only listings where real estate is included in the asking price.",
      "editor": "checkbox",
      "prefill": false,
      "title": "Real estate included only",
      "type": "boolean"
    },
    "searchQuery": {
      "description": "Free-text keyword, e.g. laundromat, restaurant, HVAC, car wash. Leave blank to browse all listings. (mode=search)",
      "editor": "textfield",
      "prefill": "laundromat",
      "title": "Keyword",
      "type": "string"
    },
    "sellerFinancing": {
      "default": false,
      "description": "Only listings that offer seller financing.",
      "editor": "checkbox",
      "prefill": false,
      "title": "Seller financing only",
      "type": "boolean"
    },
    "sortBy": {
      "default": "default",
      "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"
      ],
      "prefill": "default",
      "title": "Sort by",
      "type": "string"
    },
    "startUrls": {
      "default": [],
      "description": "BizBuySell search, category, state, city, county or listing URLs. (mode=byUrls)",
      "editor": "requestListSources",
      "items": {
        "properties": {
          "url": {
            "description": "BizBuySell search or listing URL.",
            "title": "URL",
            "type": "string"
          }
        },
        "type": "object"
      },
      "prefill": [],
      "title": "BizBuySell URLs",
      "type": "array"
    },
    "state": {
      "default": "ALL",
      "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"
      ],
      "prefill": "ALL",
      "title": "State",
      "type": "string"
    },
    "stateKey": {
      "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",
      "title": "Monitoring state key",
      "type": "string"
    },
    "strictFilters": {
      "default": false,
      "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",
      "prefill": false,
      "title": "Strict gross-revenue filtering",
      "type": "boolean"
    }
  },
  "required": [
    "mode"
  ],
  "schemaVersion": 1,
  "title": "BizBuySell Businesses-for-Sale Scraper Input",
  "type": "object"
}
