# LoopNet Commercial Real Estate & Broker Scraper (Pay-Per-Event) (`kullet_nunu/loopnet-scraper`) Actor

Scrape LoopNet commercial real estate listings for sale or lease. Extract property title, address, city, state, ZIP, asking price, cap rate, building size, lot size, property type, subtype, year built, broker name, brokerage company, and broker phone.

- **URL**: https://apify.com/kullet_nunu/loopnet-scraper.md
- **Developed by:** [Vinkand](https://apify.com/kullet_nunu) (community)
- **Categories:** Lead generation, Real estate
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$4.50 / 1,000 listing scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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

## LoopNet Commercial Real Estate Scraper

Collect public LoopNet commercial property listings for sale or lease. The Actor tries live pages first, then Wayback Machine captures, then a bundled snapshot to fill remaining slots. Each result identifies its source. Archived and snapshot listings may have changed or gone off market.

### Usage

Run with `{}` to request up to 10 Texas retail properties for sale with detail enrichment enabled. This search ranks available records by how many core facts they contain and uses source order to break ties. To search for Dallas office space for lease, use:

```json
{
  "location": "dallas-tx",
  "propertyType": "office",
  "listingType": "for-lease",
  "includeDetails": true,
  "maxItems": 20
}
```

| Input | Default | Purpose |
| --- | --- | --- |
| `location` | `Texas` | US state name or abbreviation, city-state slug such as `dallas-tx`, or `usa`. |
| `propertyType` | `retail` | One of `all`, `retail`, `office`, `industrial`, `multifamily`, `land`, `hospitality`, `healthcare`, or `specialty`. |
| `listingType` | `for-sale` | `for-sale` or `for-lease`. |
| `keyword` | Empty | All supplied words must appear in the combined listing and broker text, ignoring case. |
| `listingUrls` | Empty array | LoopNet search or detail URLs. These replace the generated search URL. |
| `includeDetails` | `true` | Follow search results to detail pages. Direct listing URLs and bundled snapshot records can include detail fields independently of this setting. |
| `maxItems` | `10` | Maximum number of unique listings, from 1 to 1,000. |
| `proxyConfiguration` | Omitted | Optional Apify proxy configuration for live requests. |

### Output

The default dataset contains one record per unique listing ID. Core fields appear on every emitted record. A core field is `null` when the source lacks that fact. Matching results and field coverage vary by source.

| Group | Fields |
| --- | --- |
| Core identity and location | `propertyTitle`, `address`, `city`, `state`, `zipCode`, `listingUrl` |
| Core property facts | `price`, `capRate`, `buildingSize`, `lotSize`, `propertyType`, `propertySubtype`, `yearBuilt` |
| Core broker contact | `brokerName`, `brokerCompany`, `brokerPhone` |
| Normalized measurements | `priceNumeric`, `capRatePercent`, `buildingSizeSqFt`, `lotSizeAcres` |
| Additional property facts | `listingType`, `subtitle`, `description`, `imageUrl`, `pricePerSf`, `occupancy`, `zoning`, `tenancy`, `buildingClass`, `stories`, `parkingRatio` |
| Broker contacts | `brokers`, an array of contacts with `name`, `company`, and `phone` |
| Record provenance | `listingId`, `searchUrl`, `dataSource` (`live`, `wayback`, or `snapshot`), `scrapedAt` (UTC extraction timestamp) |

The advertised values preserve units and ranges where available. For example, `capRatePercent` uses percentage points, so `6.5%` becomes `6.5`. A lease's numeric price retains the basis shown in the advertised price.

The default key-value store contains `SUMMARY` and `OUTPUT` records with the input filters, listing count, counts by source, and charge-limit status.

### Pay-per-event pricing

The configured price is **$0.0045 USD per saved listing ($4.50 per 1,000 listings)** through the `listing` event. Local runs do not charge this event. To enable billing for the deployed Actor, configure the event and its price in Apify Console. Check the Actor's Pricing tab for its active pricing and set a maximum charge when starting a run. [Apify pricing documentation](https://docs.apify.com/actors/running/actors-in-store)

### Local development

Install dependencies with `python -m pip install -r requirements-dev.txt` and run `python -m pytest -v`. Run the Actor with `python -m src`. For local input, place JSON in `storage/key_value_stores/default/INPUT.json`.

# Actor input Schema

## `location` (type: `string`):

US state name or abbreviation, city-state slug such as dallas-tx, or usa.

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

Commercial property category.

## `listingType` (type: `string`):

Properties for sale or lease.

## `keyword` (type: `string`):

Optional words to match against listing and broker text.

## `listingUrls` (type: `array`):

Optional search or listing URLs to use in place of the generated search URL.

## `includeDetails` (type: `boolean`):

Fetch detail pages to enrich search results.

## `maxItems` (type: `integer`):

Maximum number of unique listings to return.

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

Optional Apify proxy settings for live requests.

## Actor input object example

```json
{
  "location": "Texas",
  "propertyType": "retail",
  "listingType": "for-sale",
  "keyword": "",
  "listingUrls": [],
  "includeDetails": true,
  "maxItems": 10
}
```

# Actor output Schema

## `listings` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "location": "Texas",
    "propertyType": "retail",
    "listingType": "for-sale",
    "includeDetails": true,
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("kullet_nunu/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 = {
    "location": "Texas",
    "propertyType": "retail",
    "listingType": "for-sale",
    "includeDetails": True,
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("kullet_nunu/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 '{
  "location": "Texas",
  "propertyType": "retail",
  "listingType": "for-sale",
  "includeDetails": true,
  "maxItems": 10
}' |
apify call kullet_nunu/loopnet-scraper --silent --output-dataset

```

## MCP server setup

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