# BizBuySell Business Details Scraper (`ecomscrape/bizbuysell-business-details-scraper`) Actor

Automate business listing data extraction from BizBuySell.com with our powerful scraper. Extract detailed business information including financials, descriptions, and contact details from the internet's largest business-for-sale marketplace. Save hours of manual research and access structured data.

- **URL**: https://apify.com/ecomscrape/bizbuysell-business-details-scraper.md
- **Developed by:** [ecomscrape](https://apify.com/ecomscrape) (community)
- **Categories:** Automation, Developer tools, Lead generation
- **Features:** Full permissions
- **Stats:** 15 total users, 2 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Contact

If you encounter any issues or need to exchange information, please feel free to contact us through the following link:
[My profile](https://apify.com/ecomscrape)

## **BizBuySell Scraper: Extract Business Listings Data Efficiently**

### Introduction: Why Scrape BizBuySell.com?

BizBuySell.com stands as the internet's largest business-for-sale marketplace, hosting over 65,000 active business listings across every conceivable industry. For entrepreneurs, investors, market researchers, and business brokers, this platform represents an invaluable goldmine of business intelligence data. However, manually collecting information from thousands of listings is time-consuming, inconsistent, and impractical for large-scale analysis.

The BizBuySell Business Details Scraper addresses this challenge by automating the extraction of comprehensive business listing data. Whether you're conducting market research, tracking competitor pricing, building investment portfolios, or analyzing industry trends, this scraper transforms hours of manual work into minutes of automated data collection.

### Overview: What This Scraper Does

The BizBuySell Business Details Scraper is a specialized data extraction tool designed to collect structured information from individual business listing pages on BizBuySell.com. Unlike generic web scrapers, this tool understands the specific structure of BizBuySell listings and extracts all relevant business data points systematically.

**Key Features:**

- **Comprehensive Data Extraction**: Captures all available business information including descriptions, financials, location data, and listing details
- **Residential Proxy Support**: Utilizes residential proxies to ensure reliable access and avoid detection as automated traffic
- **Intelligent Retry Mechanism**: Automatically retries failed requests to maximize data collection success
- **Structured Output**: Returns clean, organized data in a consistent format ready for analysis
- **Batch Processing**: Handles multiple business listing URLs simultaneously for efficient large-scale extraction

**Ideal For:**

- Private equity firms researching acquisition opportunities
- Business brokers monitoring market inventory
- Market researchers analyzing industry trends and pricing
- Entrepreneurs evaluating business purchase options
- Data analysts building business valuation models
- Competitive intelligence professionals tracking market activity

### Input and Output Specifications

Example url 1: https://www.bizbuysell.com/business-real-estate-for-sale/cash-flow-opportunity-auto-industry-including-real-estate/2341507/

Example url 2: https://www.bizbuysell.com/business-real-estate-for-sale/well-established-marin-county-market-deli-and-coffee-bar/2338563/

Example url 3: https://www.bizbuysell.com/business-real-estate-for-sale/over-325k-invested-into-the-brand-new-commercial-kitchen/2329516/

Example Screenshot of bussiness information page:

![](https://i.ibb.co/CsMQQqrM/Screenshot-from-2025-10-22-11-24-50.png)

#### Input Format

The scraper accepts JSON configuration with specific parameters to control the extraction process:

```json
{
  "max_retries_per_url": 2, // Maximum waiting time when accessing the links you provided.
  "proxy": { // Add a proxy to ensure that during the data collection process, you are not detected as a bot.
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL" 
    ],
    "apifyProxyCountry": "SG" // You should choose an Country that coincides with the Country you want to collect data from
  },
  "ignore_url_failures": true,
  "urls": [ // Links to bussiness information pages.
    "https://www.bizbuysell.com/business-real-estate-for-sale/cash-flow-opportunity-auto-industry-including-real-estate/2341507/",
    "https://www.bizbuysell.com/business-real-estate-for-sale/well-established-marin-county-market-deli-and-coffee-bar/2338563/",
    "https://www.bizbuysell.com/business-real-estate-for-sale/over-325k-invested-into-the-brand-new-commercial-kitchen/2329516/"
  ]
}
```

**Input Parameters Explained:**

- **max_retries_per_url** (integer): Specifies how many times the scraper will attempt to access each URL if the initial request fails. A value of 2 means three total attempts (1 initial + 2 retries). This ensures temporary network issues or rate limiting don't cause data loss.

- **proxy** (object): Configuration for proxy usage to avoid detection and access restrictions
  - **useApifyProxy** (boolean): Enables the use of Apify's proxy services, which rotate IP addresses to prevent blocking
  - **apifyProxyGroups** (array): Specifies proxy type. "RESIDENTIAL" uses real residential IP addresses, making requests appear as regular users rather than bots
  - **apifyProxyCountry** (string): Two-letter country code for proxy location. Use a country matching your target market for better success rates and relevant results

- **ignore_url_failures** (boolean): When set to true, the scraper continues processing remaining URLs even if some fail, ensuring maximum data collection

- **urls** (array): List of full BizBuySell business listing page URLs to scrape. Each URL must be a complete detail page for a specific business listing.

**Input Requirements:**

- URLs must be direct links to individual business listing pages (not search results or category pages)
- Minimum 1 URL, no strict maximum (consider API rate limits for large batches)
- Proxy country code should match the target business locations when possible

#### Output Format and Data Fields

You get the output from the bizbuysell.com Bussiness Details Scraper stored in a tab. The following is an example of the Information Fields collected after running the Actor.

```json
[ // List of bussiness information
  {
  "productid": "2338563",
  "url": "https://www.bizbuysell.com/business-real-estate-for-sale/well-established-marin-county-market-deli-and-coffee-bar/2338563/",
  "name": "Well-established Marin County Market, Deli & Coffee Bar in Marin County, California - BizBuySell",
  "logo": "https://images.bizbuysell.com/shared/listings/233/2338563/68474b41-6122-486f-92d6-3dcb29aec685-W768.jpg",
  "category": "Coffee Shops and Cafes > Delis and Sandwich Shops",
  "description": "Well-established Marin County Market, Deli & Coffee Bar With Consistent Profits - SBA Pre Approved - Prime LocationRRC#  5087Location: Marin County Description:An exceptional opportunity to acquire a well-established, highly regarded, and profitable market, deli and coffee bar in Marin County. This thriving business has been a staple in the community for decades, serving both locals and tourists alike. Situated in a high-traffic commercial/residential district, the market benefits from steady foot traffic, a prime tourist location, and the most popular biking route in the Bay Area. The business includes a specialty grocery section offering high-quality produce, meats, beer, wine, and spirits, operating with three (3)  ABC licenses: Type 21 (off-sale General ), Type 41 (on-site beer & wine), and Type 81 (instructional tastings). The deli and prepared foods section features gourmet sandwiches, salads, and house-made specialties. A cafe serves artisan coffee and fresh pastries, while the catering segment continues to grow, presenting significant expansion potential. The business has maintained strong and consistent sales year over year, with profits of $259,338 in 2024, $234,256 in 2023, and $287,973 in 2022. Boasting such strong financials, the business is pre-qualified for an SBA loan. The landlord is willing to offer a new long-term lease to a qualified buyer, ensuring stability for future operations. A 2020 remodel of the building included upgrades to all electrical and plumbing systems (including all required Health Dept upgrades including 2 grease traps), a newly built café, an ADA-compliant restroom and entrance, a walk-in freezer, and new compressors for all walk-in refrigerators. The business is well-maintained and turnkey, with standard operating procedures in place, including recipes and food preparation guidelines. There are multiple opportunities for expansion, including enhancing and promoting catering services, expanding the grocery and specialty product selection, and increasing community engagement and marketing efforts. With a stellar reputation for quality, service, and diverse product offerings, this is an outstanding opportunity for a new owner to step into a successful business and continue its growth.Financial Information:Monthly Revenue: $178,937  Monthly Cash Flow: $21,611 Annual Revenue: $2,147,253 Annual Cash Flow: $259,338 General Info:Ownership: Contact for Info  Established: Contact for InfoEmployees: Contact for Info  Reason For Sale: Other InterestsMonthly Rent: $15,000 + NNN  Expiration: 5 Year Lease Negotiated  plus 5 Year Option Negotiated Facilities:Square Feet: 4,540 Seating: Contact for Info  Parking: Parking Lot, Street Parking Licenses: ABC type 21 Off-sale, Type 41, On-sale, Type 81, Business and Health Permit Days/Hours of Operation: 7:30am - 8pm Daily",
  "is_similar_to": [
    {
      "@type": "Product",
      "name": "Starbucks Commercial Property – Long-Term Security & Built-In Income in El Cajon, California - BizBuySell",
      "logo": "https://images.bizbuysell.com/shared/listings/240/2407151/f07e3a8a-0d5a-4007-9143-ad20b22cdad1-W768.jpg",
      "url": "https://www.bizbuysell.com/business-real-estate-for-sale/starbucks-commercial-property-long-term-security-and-built-in-income/2407151/",
      "productid": "2407151",
      "offers": {
        "@type": "Offer",
        "price": 4950000.0,
        "price_currency": "USD",
        "available_at_or_from": {
          "@type": "Place",
          "address": {
            "@type": "PostalAddress",
            "address_locality": "El Cajon",
            "address_region": "California",
            "street_address": "2201 Fletcher Pkwy"
          }
        }
      }
    },
    {
      "@type": "Product",
      "name": "Thriving Landmark Restaurant – Extraordinary Business Opportunity in Ramona, California - BizBuySell",
      "logo": "https://images.bizbuysell.com/shared/listings/232/2328486/b93d0c66-b0fb-49ba-b9ec-6a5aa95966cb-W768.jpg",
      "url": "https://www.bizbuysell.com/business-real-estate-for-sale/thriving-landmark-restaurant-extraordinary-business-opportunity/2328486/",
      "productid": "2328486",
      "offers": {
        "@type": "Offer",
        "price": 249000.0,
        "price_currency": "USD",
        "available_at_or_from": {
          "@type": "Place",
          "address": {
            "@type": "PostalAddress",
            "address_locality": "Ramona",
            "address_region": "California"
          }
        }
      }
    },
    {
      "@type": "Product",
      "name": "Prime Opportunity: Retail Condominium with Operating Franchise in San Francisco, California - BizBuySell",
      "logo": "https://images.bizbuysell.com/shared/listings/227/2277323/2332990e-3d0b-4c54-aa70-5c8bffc51b7b-W768.jpg",
      "url": "https://www.bizbuysell.com/business-real-estate-for-sale/prime-opportunity-retail-condominium-with-operating-franchise/2277323/",
      "productid": "2277323",
      "offers": {
        "@type": "Offer",
        "price": 1100000.0,
        "price_currency": "USD",
        "available_at_or_from": {
          "@type": "Place",
          "address": {
            "@type": "PostalAddress",
            "address_locality": "San Francisco",
            "address_region": "California",
            "street_address": "201 King St"
          }
        }
      }
    },
    {
      "@type": "Product",
      "name": "Teriyaki Madness",
      "logo": "https://images.bizbuysell.com/fnw/images/367/367/bbf8a6d2-56b4-49ea-b82b-53cf7269dbc0.gif",
      "url": "https://www.bizbuysell.com/franchise-for-sale/teriyaki-madness-food-and-restaurant-franchise/",
      "offers": {
        "@type": "Offer",
        "price_specification": {
          "@type": "PriceSpecification",
          "max_price": 976860.0,
          "min_price": 350500.0,
          "price": 350500.0,
          "price_currency": "USD"
        }
      }
    }
  ],
  "offers": {
    "@type": "Offer",
    "price": 1250000.0,
    "price_currency": "USD",
    "available_at_or_from": {
      "@type": "Place",
      "address": {
        "@type": "PostalAddress",
        "address_locality": "Marin",
        "address_region": "California"
      }
    },
    "offered_by": {
      "@type": "Person",
      "name": "Patrick Totah",
      "description": "Restaurant Sales and Consulting",
      "url": "https://www.bizbuysell.com/business-broker/patrick-totah/restaurant-realty-company/29507/",
      "job_title": "Business Broker",
      "image": "https://images.bizbuysell.com/shared/brokerdirectory/images/36955/pf_prs_photo.jpg",
      "address": [
        {
          "@type": "PostalAddress",
          "address_locality": "San Francisco County",
          "address_region": "California"
        },
        {
          "@type": "PostalAddress",
          "address_locality": "San Mateo County",
          "address_region": "California"
        },
        {
          "@type": "PostalAddress",
          "address_locality": "Santa Clara County",
          "address_region": "California"
        },
        {
          "@type": "PostalAddress",
          "address_locality": "Alameda County",
          "address_region": "California"
        },
        {
          "@type": "PostalAddress",
          "address_locality": "San Luis Obispo County",
          "address_region": "California"
        }
      ],
      "works_for": {
        "@type": "Organization",
        "name": "Restaurant Realty Company",
        "description": "Restaurant Realty Company was founded by Steven D. Zimmerman in the San Francisco Bay Area in 1996. Since inception the company has developed into the largest California restaurant brokerage specializing in sales, acquisitions and leasing of restaurants, bars, nightclubs and related commercial buildings with local representation in the San Francisco Bay Area, Sacramento, Los Angeles, Orange County and San Diego markets. Restaurant Realty’s brokers and agents are well versed in conducting deals with independent restaurant owners, landlords, buyers, and lessees of businesses and real estate, as well as larger ownership groups and buyers of multi-unit operations, franchises and chains. Restaurant Realty’s current brokers and agents have had great success completing transactions with over 3,200 clients, selling/leasing over 1,600 restaurant, bar and/or nightclub businesses, nearly 75 related commercial buildings sold, representing over 3 Million square feet of commercial space leased and over 7,500 valuations completed.",
        "logo": "https://images.bizbuysell.com/shared/brokerdirectory/images/1369/lg_cmp_RRC_watermark.jpg"
      }
    }
  },
  "address": {
    "@type": "PostalAddress",
    "address_locality": "Marin",
    "address_region": "California"
  },
  "extra_financials_data": [
    {
      "field": "Asking Price",
      "value": "$1,250,000"
    },
    {
      "field": "Gross Revenue",
      "value": "$2,147,253"
    },
    {
      "field": "Price/Sq. Ft.",
      "value": "$275.00"
    },
    {
      "field": "NOI",
      "value": "Not Disclosed"
    },
    {
      "field": "Building SF",
      "value": "Not Disclosed"
    },
    {
      "field": "Year Built",
      "value": "Not Disclosed"
    }
  ],
  "detailed_information": [
    {
      "field": "Location",
      "value": "Marin County, CA"
    },
    {
      "field": "Type",
      "value": "Other Business Real Estate"
    },
    {
      "field": "Building Status",
      "value": "Established"
    },
    {
      "field": "Facilities",
      "value": "Square Feet: 4,540 Seating: Contact for Info Parking: Parking Lot, Street Parking"
    },
    {
      "field": "Location Description",
      "value": "A prime tourist location, and the most popular biking route in the Bay Area"
    },
    {
      "field": "Current and Prior Use",
      "value": "County Market, Deli & Coffee Bar"
    },
    {
      "field": "Business Website",
      "value": "https://www.restaurantrealty.com/listings/5087/"
    }
  ]
}, // ... Many other bussiness details
]
```

The scraper extracts an extensive range of bussiness data fields, each serving specific analytical and business purposes:

**Output Fields:**

- **Product ID**: Unique identifier for the business listing (extracted from the URL). This allows you to track and reference specific listings in your database and correlate data across multiple scraping sessions.

- **URL**: The complete web address of the scraped listing page. Useful for verification, creating direct links in reports, and revisiting listings for updated information.

- **Name**: The business name or listing title as displayed on BizBuySell. This may be the actual business name or a descriptive title if the seller maintains confidentiality. Essential for identification and categorization.

- **Logo**: URL to the business logo image if available. Provides visual branding information and can be used in reports or presentations. May be null for confidential listings.

- **Category**: The industry or business type classification (e.g., "Restaurant", "Auto Repair", "E-commerce"). Critical for segmenting data by industry and conducting sector-specific analysis.

- **Description**: Full text description of the business opportunity including operations details, selling points, and unique features. This narrative content provides qualitative insights into the business model and value proposition.

- **Is Similar To**: Array of related or comparable businesses, if provided by BizBuySell. Helps identify similar opportunities and understand market comparables for valuation purposes.

- **Offers**: Structured data about what's included in the sale (equipment, inventory, real estate, training, etc.). Essential for understanding the complete transaction scope and calculating total investment requirements.

- **Address**: Business location information, which may range from specific street addresses to general county/state data depending on listing confidentiality level. Crucial for geographic market analysis and location-based filtering.

- **Extra Financials Data**: Detailed financial metrics which may include:
  - Revenue figures (annual or monthly)
  - Cash flow information
  - Asking price
  - Down payment requirements
  - Inventory value
  - Real estate value (if included)
  - EBITDA or profit margins
    This financial data enables quantitative analysis, valuation modeling, and investment decision-making.

- **Detailed Information**: Additional structured data points such as:
  - Year established
  - Number of employees
  - Hours of operation
  - Lease terms
  - Reason for sale
  - Inventory details
  - Growth opportunities
    These details provide context for evaluating business stability, operational requirements, and future potential.

**Example Output Use Cases:**

- **Investment Analysis**: Use financial data fields to filter businesses by ROI potential and asking price ranges
- **Market Research**: Aggregate category and location data to identify industry trends and geographic hotspots
- **Competitive Intelligence**: Monitor similar businesses in your sector using the "Is Similar To" field
- **Portfolio Management**: Track multiple acquisition targets using Product ID for consistent reference

### How to Use the Scraper

**Step 1: Identify Target Listings**

Browse BizBuySell.com to find businesses of interest. Copy the complete URL from each business detail page you want to scrape. Ensure URLs are from individual listing pages, not search results or category pages.

**Step 2: Configure Input Parameters**

Create your JSON input object with:

- Add all target URLs to the "urls" array
- Set appropriate retry count (2-3 recommended)
- Configure proxy settings with country matching your target market
- Enable "ignore_url_failures" for batch jobs

**Step 3: Execute the Scraper**

Submit your configuration to the scraper platform. The tool will process each URL sequentially, respecting retry parameters and proxy configurations.

**Step 4: Retrieve and Validate Data**

Once processing completes, download the output dataset. Review the results for completeness and verify that critical fields contain expected data.

**Best Practices:**

- **Start Small**: Test with 5-10 URLs before running large batches to validate configuration
- **Use Residential Proxies**: Essential for reliable access; datacenter proxies may be blocked
- **Monitor Success Rates**: If many URLs fail, adjust retry count or check for URL format issues
- **Schedule Regular Scrapes**: Business listings update frequently; periodic scraping captures price changes and new details
- **Respect Rate Limits**: Space out large scraping jobs to avoid overwhelming the platform
- **Verify Data Quality**: Always spot-check output accuracy against source pages

**Common Issues and Solutions:**

- **404 Errors**: Listing may have been removed or sold; verify URLs are current
- **Incomplete Data**: Some listings withhold information intentionally; this is expected for confidential listings
- **Proxy Blocks**: If experiencing failures, try different proxy countries or increase retry attempts
- **Missing Financial Data**: Not all sellers provide complete financial information; this varies by listing

### Benefits and Real-World Applications

**Time Efficiency**: What would take days of manual copying and organizing transforms into an automated process completed in minutes. A single analyst can now monitor hundreds of listings that would previously require a full research team.

**Data Consistency**: Automated extraction ensures every listing is captured with the same structure and completeness, eliminating human error and inconsistencies that plague manual data entry.

**Competitive Advantage**: Access to comprehensive, up-to-date market data enables faster decision-making, better-informed negotiations, and identification of opportunities before competitors.

**Practical Applications:**

- **Market Valuation Models**: Build databases of comparable sales to establish accurate business valuation benchmarks
- **Deal Flow Management**: Monitor new listings matching investment criteria and track their status over time
- **Industry Reports**: Generate market intelligence reports with current pricing trends, popular business types, and geographic distribution
- **Investment Pipeline**: Qualify potential acquisitions quickly by comparing financial metrics across multiple opportunities
- **Broker Intelligence**: Track competing broker listings and pricing strategies in your market

**Business Value**: For investment firms, this scraper can identify acquisition opportunities worth millions while reducing research costs by thousands of hours annually. Market researchers gain access to real-time business transaction data previously unavailable at scale.

### Conclusion

The BizBuySell Business Details Scraper transforms how professionals interact with the nation's largest business-for-sale marketplace. By automating data extraction from thousands of listings, it empowers smarter investment decisions, comprehensive market analysis, and efficient opportunity evaluation.

Whether you're seeking your next acquisition, researching market trends, or building valuation models, this tool delivers the structured data you need to act quickly and confidently in the competitive business acquisition marketplace.

## Related Actors

- [**Bizbuysell.com Bussiness Search Scraper**](https://apify.com/ecomscrape/bizbuysell-bussiness-search-scraper): A specialized data extraction tool engineered to harvest detailed bussiness information from bizbuysell's bussiness marketplace.

## Your feedback

We are always working to improve Actors' performance. So, if you have any technical feedback about Bizbuysell.com Bussiness Details Scraper or simply found a bug, please create an issue on the Actor's Issues tab in Apify Console.

# Actor input Schema

## `urls` (type: `array`):

Add the URLs of the Specific bussiness urls you want to scrape. You can paste URLs one by one, or use the Bulk edit section to add a prepared list.

## `max_retries_per_url` (type: `integer`):

Limit the number of retries for each URL if the scrape is detected as a bot or the page fails to load

## `ignore_url_failures` (type: `boolean`):

If true, the scraper will continue running even if some URLs fail to load after the maximum number of retries is reached.

## `proxy` (type: `object`):

Select proxies to be used by your scraper.

## Actor input object example

```json
{
  "urls": [
    "https://www.bizbuysell.com/business-real-estate-for-sale/well-established-marin-county-market-deli-and-coffee-bar/2338563/"
  ],
  "max_retries_per_url": 2,
  "ignore_url_failures": true,
  "proxy": {
    "useApifyProxy": false
  }
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        "https://www.bizbuysell.com/business-real-estate-for-sale/well-established-marin-county-market-deli-and-coffee-bar/2338563/"
    ],
    "max_retries_per_url": 2,
    "ignore_url_failures": true,
    "proxy": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("ecomscrape/bizbuysell-business-details-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "urls": ["https://www.bizbuysell.com/business-real-estate-for-sale/well-established-marin-county-market-deli-and-coffee-bar/2338563/"],
    "max_retries_per_url": 2,
    "ignore_url_failures": True,
    "proxy": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("ecomscrape/bizbuysell-business-details-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.bizbuysell.com/business-real-estate-for-sale/well-established-marin-county-market-deli-and-coffee-bar/2338563/"
  ],
  "max_retries_per_url": 2,
  "ignore_url_failures": true,
  "proxy": {
    "useApifyProxy": false
  }
}' |
apify call ecomscrape/bizbuysell-business-details-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ecomscrape/bizbuysell-business-details-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/lwwOz8knZUtdU3nGe/builds/5kOwfYRwiVhU8Kchz/openapi.json
