# 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:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN 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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=hotels-scrapers/loopnet-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "LoopNet Scraper",
        "description": "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.",
        "version": "0.1",
        "x-build-id": "o5CoBdKGaDQJhyBM3"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/hotels-scrapers~loopnet-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-hotels-scrapers-loopnet-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/hotels-scrapers~loopnet-scraper/runs": {
            "post": {
                "operationId": "runs-sync-hotels-scrapers-loopnet-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/hotels-scrapers~loopnet-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-hotels-scrapers-loopnet-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchUrls": {
                        "title": "🔗 Search URLs",
                        "type": "array",
                        "description": "LoopNet search URLs (e.g., https://www.loopnet.com/search/office/dallas-tx/for-sale/). Takes precedence over locations/propertyType.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "locations": {
                        "title": "📍 Locations",
                        "type": "array",
                        "description": "Location slugs like 'dallas-tx', 'austin-tx'. Used with propertyType when searchUrls is empty.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "propertyType": {
                        "title": "🏢 Property Type",
                        "enum": [
                            "office",
                            "retail",
                            "industrial",
                            "multifamily",
                            "land",
                            "hospitality",
                            "specialty"
                        ],
                        "type": "string",
                        "description": "LoopNet property type for locations-based search.",
                        "default": "office"
                    },
                    "costarCookies": {
                        "title": "🍪 BYOC Cookies (optional)",
                        "type": "array",
                        "description": "Array of cookie objects {name, value, domain, path, secure, httpOnly, sameSite}. Export from browser devtools. Values are never logged.",
                        "items": {
                            "type": "object"
                        },
                        "default": []
                    },
                    "maxListings": {
                        "title": "🔢 Max Listings",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Upper bound on listings collected per run.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "🌐 Proxy Configuration",
                        "type": "object",
                        "description": "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.",
                        "default": {
                            "useApifyProxy": true,
                            "apifyProxyGroups": [
                                "RESIDENTIAL"
                            ],
                            "apifyProxyCountry": "US"
                        }
                    },
                    "scrapflyApiKey": {
                        "title": "🛡️ ScrapFly API Key (Akamai fallback)",
                        "type": "string",
                        "description": "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."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
