# LoopNet Scraper (`hotels-scrapers/loopnet-scraper`) Actor

Scrape LoopNet commercial real estate listings at scale. Extracts asking price, cap rate, NOI, square footage, property type, broker name and contact, full address and geocoordinates, listing description, and all photos. Accepts search URLs or individual listing URLs. Exports to JSON, CSV, Excel.

- **URL**: https://apify.com/hotels-scrapers/loopnet-scraper.md
- **Developed by:** [Hotels Scraper](https://apify.com/hotels-scrapers) (community)
- **Categories:** Real estate, Lead generation
- **Stats:** 30 total users, 3 monthly users, 97.8% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $4.00 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## LoopNet Scraper – Commercial Real Estate Listings Extractor

Extract commercial real estate listings from LoopNet — the largest CRE marketplace in the US — for deal sourcing, competitive analysis, broker intelligence, and market research. Paste any LoopNet search URL and get structured property data delivered to your Apify dataset in real time.

### 🎯 What This Scraper Does

This actor navigates LoopNet search results pages with a real Chrome browser, bypasses Akamai BotManager via residential proxies, and extracts structured CRE listing data. An optional ScrapFly API key (`scrapflyApiKey`) enables a second-tier bypass for pages that resist residential proxy alone. See `SELECTORS.md` for the CSS selector map and `data/pricing-comparison.md` for tier benchmarks.

**Quick test:** run `apify run -i '{"searchUrls":["https://www.loopnet.com/search/office/dallas-tx/for-sale/"]}' ` or execute `scripts/selftest.sh` to validate a live run locally.

### 🚀 Quick Start

1. Go to [loopnet.com](https://www.loopnet.com) and run any search
2. Copy the full URL from the address bar
3. Open this actor on Apify Store → **Try for free**
4. Paste the URL into `searchUrls` and hit **Start**

### What data does this LoopNet scraper extract?

Each record includes:

- **Property details** — address, asking price, property type, square footage, year built, building class, lot size
- **Location** — city, state, ZIP code, GPS-ready coordinates
- **Broker info** — broker name and phone number from public detail pages
- **Auction metadata** — starting bid, auction end date, reserve status (where applicable)
- **Listing identity** — LoopNet listing ID, direct listing URL, source search URL
- **Multi-property-type coverage** — Office, Industrial, Retail, Flex, Multifamily, Land, Hospitality, and more

### How to use the LoopNet Scraper

1. Go to [loopnet.com](https://www.loopnet.com) and run any search — by city, property type, price range, or size
2. Copy the full search URL from your browser address bar
3. Open the actor on Apify Store and click **Try for free**
4. Paste the URL into the `searchUrls` field
5. Click **Start** — property records stream into your dataset in real time

### ⚙️ Configuration Options

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `searchUrls` | array | Yes\* | One or more LoopNet search page URLs |
| `locations` | array | Yes\* | City/state names as alternative to `searchUrls` |
| `propertyType` | string | No | Required when using `locations` — e.g. `office`, `retail`, `industrial`, `land` |
| `maxListings` | number | No | Cap on records per run (default: 100) |
| `costarCookies` | array | No | Your CoStar session cookies to unlock gated financial fields |
| `proxyConfiguration` | object | No | Apify Proxy config (residential recommended) |

\*Provide either `searchUrls` OR `locations` + `propertyType`.

### 📊 Data Output Example

```json
{
  "url": "https://www.loopnet.com/Listing/8700-N-Stemmons-Fwy-Dallas-TX/39195585/",
  "address": "8700 N Stemmons Fwy, Dallas, TX 75247",
  "askingPrice": "Starting bid $1,600,000",
  "propertyType": "Office",
  "brokerName": "John Smith",
  "brokerPhone": "+1 214-555-0100",
  "dataId": "39195585",
  "city": "Dallas",
  "state": "TX",
  "zip": "75247",
  "source_url": "https://www.loopnet.com/search/office-buildings/dallas-tx/for-sale/"
}
```

### Coverage

- **All US markets** — LoopNet's full national footprint (50 states + DC + Puerto Rico)
- **All CRE property types** — Office, Industrial, Retail, Multifamily, Flex, Land, Hospitality, Specialty, Healthcare
- **For-sale and auction listings** — handles both standard listings and LoopNet Auction placards
- **Multiple search URLs** — pass several URLs in `searchUrls[]` to run searches in sequence

### 💼 Use Cases

**CRE Investors & Acquisitions**
Build deal sourcing pipelines, monitor new listings daily across target markets and property types, track auction calendars, and surface distressed opportunities.

**Brokers & Agencies**
Monitor competing listings, build broker directories by market, generate leads from comparable property owners, and automate Comparable Market Analysis (CMA) workflows.

**Market Researchers & Data Teams**
Analyze price-per-SF trends, track listing velocity by ZIP code, validate investment theses, and feed CRE data into dashboards, CRMs, or analytics platforms.

**PropTech Builders**
Bootstrap a CRE comp database without enterprise CoStar fees, create GPS-ready market heatmaps, or build training datasets for property-valuation models.

### 💰 Pricing

| Tier | Price | Best For |
|------|-------|----------|
| Free trial | 100 listings free | Evaluate before paying |
| Pay-per-result | $1.25 / 1,000 listings | Occasional deal sourcing |
| Subscription | $29/month + $0.80/1K (10K included) | Daily brokerage pipelines |

Break-even between pay-per-use and subscription: ~47,000 listings/month.

### ❓ FAQ

**Will I get blocked?**
No — the scraper uses a real browser via residential proxies to clear LoopNet's bot protection. If a single block appears in the logs, the run retries automatically on a fresh session.

**Can I get broker emails?**
Broker phone is extracted from public detail pages. Broker email is intentionally not collected — LoopNet hides it behind a click-to-reveal gate. Supply `costarCookies` from your own CoStar account to unlock gated financial fields (cap rate, NOI, tenant rosters).

**How fresh is the data?**
All listings are fetched live from loopnet.com at run time. Run hourly, daily, or weekly for monitoring workflows.

**Can I run multiple markets at once?**
Yes — pass multiple LoopNet search URLs in `searchUrls[]` and the scraper pages through each in sequence.

**What if I want data from a custom filter?**
Any LoopNet search URL works — price range, size, submarket, auction-only, or any other filter you can apply on the website.

***

*LoopNet is a trademark of CoStar Group, Inc. This actor is not affiliated with or endorsed by LoopNet or CoStar. All data extracted is publicly available on the LoopNet website.*

### Technical Notes

Selector map: `SELECTORS.md`. Pricing benchmarks: `data/pricing-comparison.md`. Local validation: `scripts/selftest.sh`. Run `apify run` with the default input to smoke-test before pushing.

# Actor input Schema

## `searchUrls` (type: `array`):

LoopNet search URLs (e.g., https://www.loopnet.com/search/office/dallas-tx/for-sale/). Takes precedence over locations/propertyType.

## `locations` (type: `array`):

Location slugs like 'dallas-tx', 'austin-tx'. Used with propertyType when searchUrls is empty.

## `propertyType` (type: `string`):

LoopNet property type for locations-based search.

## `costarCookies` (type: `array`):

Array of cookie objects {name, value, domain, path, secure, httpOnly, sameSite}. Export from browser devtools. Values are never logged.

## `maxListings` (type: `integer`):

Upper bound on listings collected per run.

## `proxyConfiguration` (type: `object`):

Apify Proxy. RESIDENTIAL + US is REQUIRED — LoopNet blocks 100% of datacenter IPs and most non-US residential IPs. Disabling Apify Proxy on the platform will fail the run unless `scrapflyApiKey` is provided.

## `scrapflyApiKey` (type: `string`):

Optional. If set, blocked LoopNet pages are automatically retried through ScrapFly's anti-bot bypass (ASP + JS render + US residential). Sign up: https://scrapfly.io. Leave empty to use Apify Proxy only.

## Actor input object example

```json
{
  "searchUrls": [
    "https://www.loopnet.com/search/office/dallas-tx/for-sale/"
  ],
  "locations": [],
  "propertyType": "office",
  "costarCookies": [],
  "maxListings": 100,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Scraped LoopNet listings. Each item contains url, address, askingPrice, propertyType, city, state, zip, and brokerContact.

# 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 = {
    "searchUrls": [
        "https://www.loopnet.com/search/office/dallas-tx/for-sale/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("hotels-scrapers/loopnet-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 = {
    "searchUrls": ["https://www.loopnet.com/search/office/dallas-tx/for-sale/"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("hotels-scrapers/loopnet-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 '{
  "searchUrls": [
    "https://www.loopnet.com/search/office/dallas-tx/for-sale/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call hotels-scrapers/loopnet-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hotels-scrapers/loopnet-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/vqPhabvlhsheNvkqq/builds/o5CoBdKGaDQJhyBM3/openapi.json
