# LoopNet Property Scraper 🏢 (`shahidirfan/loopnet-property-scraper`) Actor

Scrape commercial real estate listings from LoopNet with property details, pricing, location, broker info, descriptions, photos, and more. Export structured data to JSON, CSV, Excel, XML, RSS, or HTML for market research, lead generation, and real estate analysis.

- **URL**: https://apify.com/shahidirfan/loopnet-property-scraper.md
- **Developed by:** [Shahid Irfan](https://apify.com/shahidirfan) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 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/platform/actors/running/actors-in-store#pay-per-usage

## 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/docs.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.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/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 Commercial Real Estate Scraper

Extract commercial real estate listings from LoopNet search pages in a structured dataset. Collect property details, location data, listing metadata, images, pricing signals, and ranking information for market research, lead discovery, investment analysis, and listing monitoring.

### Features

- **Flexible Search Inputs** - Start from a LoopNet search URL or build one from a location slug and listing type.
- **Sale And Lease Support** - Collect commercial properties listed for sale or for lease.
- **Richer Listing Metadata** - Capture IDs, property types, location fields, coordinates, image URLs, status fields, exposure level, and search ranking details.
- **Duplicate-Free Results** - Skip repeated records across pages and multiple start URLs.
- **Clean Dataset Output** - Remove empty fields so exported JSON, CSV, and Excel files stay readable.
- **Pagination Control** - Limit pages and result count for quick tests or larger collection runs.

---

### Use Cases

#### Investment Research

Build a list of available commercial properties in a target market. Compare asset type, size, price signals, location, and listing rank to identify opportunities worth deeper review.

#### Brokerage Lead Discovery

Collect structured listing data for broker research, outreach planning, and CRM enrichment. Listing URLs, property IDs, addresses, and market fields make it easier to match records with internal workflows.

#### Market Monitoring

Schedule recurring runs for the same LoopNet search and compare new results over time. This is useful for watching supply changes in a city, asset class, or transaction type.

#### Portfolio And Location Analysis

Use latitude, longitude, city, state, postal code, and property type fields to analyze where listings cluster. Export the dataset into BI tools or spreadsheets for mapping and filtering.

---

### Input Parameters

| Parameter | Type | Required | Default | Description |
|---|---|---:|---|---|
| `startUrl` | String | No | LoopNet New York sale search | LoopNet search page URL to collect from. |
| `location` | String | No | `new-york-ny` | Location slug used when `startUrl` is not provided. |
| `propertySegment` | String | No | `commercial-real-estate` | Search category path segment. |
| `listingType` | String | No | `for-sale` | Listing type: `for-sale` or `for-lease`. |
| `results_wanted` | Integer | No | `20` | Maximum number of records to save. |
| `max_pages` | Integer | No | `3` | Maximum search result pages to process. |
| `proxyConfiguration` | Object | No | Disabled | Proxy settings for more reliable collection. |

---

### Output Data

Each dataset item can include:

| Field | Type | Description |
|---|---|---|
| `listingId` | String | LoopNet listing identifier. |
| `title` | String | Listing headline. |
| `url` | String | Listing detail page URL. |
| `addressLine` | String | Street address or displayed address. |
| `city` | String | City name. |
| `state` | String | State abbreviation. |
| `postalCode` | String | ZIP or postal code. |
| `country` | String | Country code. |
| `county` | String | County when available. |
| `latitude` | Number | Listing latitude. |
| `longitude` | Number | Listing longitude. |
| `propertyType` | String | Property category such as Retail, Office, or Industrial. |
| `propertyTypeId` | String | Property category identifier. |
| `propertyId` | String | LoopNet property identifier. |
| `listingType` | String | Sale or lease listing type. |
| `listingTypeName` | String | Source listing type label. |
| `listingTypeId` | String | Source listing type identifier. |
| `exposureLevel` | String | Listing exposure level. |
| `listingStatus` | String | Listing status text when available. |
| `listingStatusId` | String | Listing status identifier. |
| `searchMarketId` | String | Market identifier from the search result. |
| `resultPageRank` | Number | Rank within the current result page. |
| `resultPositionRank` | Number | Position rank within the search result. |
| `squareFeet` | String | Square footage when available. |
| `sizeText` | String | Displayed size summary. |
| `offeringPrice` | String | Displayed price when available. |
| `capRate` | Number | Capitalization rate when available. |
| `yearBuilt` | Number | Year built when available. |
| `buildingClass` | String | Building class when available. |
| `brokerName` | String | Broker name when available. |
| `imageUrl` | String | Primary listing image URL. |
| `galleryUrls` | Array | Listing gallery image URLs found in the search result payload. |
| `buyNowEnabled` | String | Buy-now availability flag when present. |
| `sourceSearchUrl` | String | Search URL used for the record. |
| `searchPage` | Number | Search result page number. |
| `collectedAt` | String | Collection timestamp in ISO format. |

---

### Usage Examples

#### Basic Search URL

Collect 20 sale listings from a New York search:

```json
{
    "startUrl": "https://www.loopnet.com/search/commercial-real-estate/new-york-ny/for-sale/",
    "results_wanted": 20,
    "max_pages": 3
}
````

#### Lease Listings By Location

Build the search from a city slug:

```json
{
    "location": "chicago-il",
    "listingType": "for-lease",
    "results_wanted": 30,
    "max_pages": 4
}
```

#### Larger Market Run

Collect more records with proxy support:

```json
{
    "startUrl": "https://www.loopnet.com/search/commercial-real-estate/los-angeles-ca/for-sale/",
    "results_wanted": 100,
    "max_pages": 8,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": ["RESIDENTIAL"]
    }
}
```

***

### Sample Output

```json
{
    "listingId": "40529829",
    "title": "Turnkey Retail on Major Brooklyn Thoroughfare",
    "url": "https://www.loopnet.com/Listing/1801-1803-Flatbush-Ave-Brooklyn-NY/40529829/",
    "addressLine": "1801-1803 Flatbush Ave",
    "city": "Brooklyn",
    "state": "NY",
    "postalCode": "11210",
    "country": "US",
    "latitude": 40.626239,
    "longitude": -73.940373,
    "propertyType": "Retail",
    "propertyTypeId": "6",
    "propertyId": "9283298",
    "listingType": "for-sale",
    "listingTypeName": "PropertyForAuction",
    "listingTypeId": "22",
    "exposureLevel": "Tier1",
    "resultPageRank": 1,
    "resultPositionRank": 1,
    "sizeText": "6,195 SF Retail",
    "imageUrl": "https://images1.loopnet.com/i2/example/117/image.jpg",
    "galleryUrls": [
        "https://images1.loopnet.com/i2/example/117/image.jpg",
        "https://images1.loopnet.com/i2/example/117/interior.jpg"
    ],
    "sourceSearchUrl": "https://www.loopnet.com/search/commercial-real-estate/new-york-ny/for-sale/",
    "searchPage": 1,
    "collectedAt": "2026-07-26T09:30:00.000Z"
}
```

***

### Tips For Best Results

#### Start With A Working Search URL

- Open the LoopNet search in your browser first.
- Use city and transaction pages that return visible listings.
- Keep query strings out of the URL unless you need a specific filter.

#### Keep Test Runs Small

- Use `results_wanted: 20` while checking a new market.
- Increase `max_pages` after confirming the output looks right.
- Match `results_wanted` to realistic listing availability.

#### Use Proxies For Reliability

- Enable residential proxies for repeated or scheduled runs.
- Keep proxy settings consistent across monitoring jobs.
- Retry later if a market page temporarily blocks access.

***

### Integrations

Connect your data with:

- **Google Sheets** - Review and filter listings with a team.
- **Airtable** - Build a searchable property database.
- **Make** - Trigger follow-up workflows after each run.
- **Zapier** - Send new listings to other apps.
- **Webhooks** - Deliver results to internal systems.

#### Export Formats

- **JSON** - For developers and data pipelines.
- **CSV** - For spreadsheet analysis.
- **Excel** - For reports and sharing.
- **XML** - For legacy integrations.

***

### Frequently Asked Questions

#### Can I collect both sale and lease listings?

Yes. Use `listingType` with `for-sale` or `for-lease`, or provide a LoopNet URL that already contains the desired listing type.

#### How many listings can I collect?

You can collect up to your configured `results_wanted` value, limited by available results and `max_pages`.

#### Why are some fields missing?

Some listings do not include every field. Empty values are removed from each record so the dataset stays clean.

#### Can I monitor the same market over time?

Yes. Schedule the actor with the same input and compare datasets by `listingId`, `url`, and `collectedAt`.

#### Does the actor remove duplicates?

Yes. Records are deduplicated by listing ID or URL before being saved.

***

### Support

For issues or feature requests, contact support through the Apify Console.

#### Resources

- [Apify Documentation](https://docs.apify.com/)
- [Apify API Reference](https://docs.apify.com/api/v2)
- [Scheduling Runs](https://docs.apify.com/platform/schedules)

***

### Legal Notice

This actor is designed for legitimate data collection purposes. Users are responsible for ensuring compliance with website terms of service and applicable laws. Use collected data responsibly.

# Actor input Schema

## `startUrl` (type: `string`):

Search page URL to start from. Query/hash parts like ?view=map are ignored automatically. If URL already contains /for-sale/ or /for-lease/, that transaction type is used.

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

Fallback transaction type used only when Start URL does not already include it.

## `results_wanted` (type: `integer`):

Maximum number of records to save.

## `max_pages` (type: `integer`):

Safety cap for paginated search pages.

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

Use Apify Proxy to improve reliability.

## Actor input object example

```json
{
  "startUrl": "https://www.loopnet.com/search/commercial-real-estate/new-york-ny/for-sale/",
  "listingType": "for-sale",
  "results_wanted": 20,
  "max_pages": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "startUrl": "https://www.loopnet.com/search/commercial-real-estate/new-york-ny/for-sale/",
    "listingType": "for-sale",
    "results_wanted": 20,
    "max_pages": 3
};

// Run the Actor and wait for it to finish
const run = await client.actor("shahidirfan/loopnet-property-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 = {
    "startUrl": "https://www.loopnet.com/search/commercial-real-estate/new-york-ny/for-sale/",
    "listingType": "for-sale",
    "results_wanted": 20,
    "max_pages": 3,
}

# Run the Actor and wait for it to finish
run = client.actor("shahidirfan/loopnet-property-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 '{
  "startUrl": "https://www.loopnet.com/search/commercial-real-estate/new-york-ny/for-sale/",
  "listingType": "for-sale",
  "results_wanted": 20,
  "max_pages": 3
}' |
apify call shahidirfan/loopnet-property-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=shahidirfan/loopnet-property-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "LoopNet Property Scraper 🏢",
        "description": "Scrape commercial real estate listings from LoopNet with property details, pricing, location, broker info, descriptions, photos, and more. Export structured data to JSON, CSV, Excel, XML, RSS, or HTML for market research, lead generation, and real estate analysis.",
        "version": "0.0",
        "x-build-id": "S6lOPqQQKlBFir5TD"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/shahidirfan~loopnet-property-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-shahidirfan-loopnet-property-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/shahidirfan~loopnet-property-scraper/runs": {
            "post": {
                "operationId": "runs-sync-shahidirfan-loopnet-property-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/shahidirfan~loopnet-property-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-shahidirfan-loopnet-property-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": {
                    "startUrl": {
                        "title": "Start URL",
                        "type": "string",
                        "description": "Search page URL to start from. Query/hash parts like ?view=map are ignored automatically. If URL already contains /for-sale/ or /for-lease/, that transaction type is used."
                    },
                    "listingType": {
                        "title": "Listing Type",
                        "enum": [
                            "for-sale",
                            "for-lease"
                        ],
                        "type": "string",
                        "description": "Fallback transaction type used only when Start URL does not already include it.",
                        "default": "for-sale"
                    },
                    "results_wanted": {
                        "title": "Maximum Listings",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of records to save.",
                        "default": 20
                    },
                    "max_pages": {
                        "title": "Maximum Pages",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Safety cap for paginated search pages.",
                        "default": 10
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Use Apify Proxy to improve reliability.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
