# LoopNet Scraper (`one-api/loopnet-scraper`) Actor

Scrape LoopNet.com (CoStar) commercial real estate. Search For Lease / For Sale / Auction listings by location, ZIP, coordinates, polygon or URL with full commercial filters; enriched property details with spaces, brokers, facts and photos; plus autocomplete and property types.

- **URL**: https://apify.com/one-api/loopnet-scraper.md
- **Developed by:** [ONE API](https://apify.com/one-api) (community)
- **Categories:** Lead generation, Real estate
- **Stats:** 16 total users, 11 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

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/platform/actors/running/actors-in-store#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

Scrape **LoopNet.com** (the **CoStar** commercial real-estate marketplace — the #1 US platform for commercial property). Search listings **For Lease / For Sale / Auctions** by location, ZIP code, coordinates + radius, custom polygon, or a LoopNet search URL with the full set of commercial filters, pull fully **enriched property details** by listing id or URL, resolve geographies via autocomplete, and list LoopNet's official property-type taxonomy.

### What it does

- **🏢 Property Details** — auto-detects each input as a numeric LoopNet listing id (`/details/byid`) or a `loopnet.com/Listing/...` URL (`/details/byurl`); returns the full **enriched** record: address + coordinates, price / lease rate, building class, **every available space** (floor/suite, size, term, rental rate, space use, build-out, availability), property facts (building size, typical floor size, ceiling height, parking, zoning...), highlights, description, **brokers with phone numbers**, owner, walk/transit/bike/drive scores, nearby transit/bus/rail/airport and the complete photo gallery (up to ~40 photos).
- **🔎 Search Listings** — auto-detects a LoopNet search URL (`/search/byurl`), a 5-digit ZIP code (`/search/byzip`), or a free-text location (`/search/bylocation`). Deal mode, property types, and all range filters apply.
- **📍 Search by Coordinates** — radius search around a `latitude,longitude` point with an optional radius in **miles** (`/search/bycoordinates`).
- **🗺️ Search by Polygon** — search inside a custom area given as `lon lat,lon lat,...` pairs (`/search/bypolygon`).
- **🔍 Location Autocomplete** — resolve free text (city / county / ZIP / market) to LoopNet geography suggestions (`/autocomplete`).
- **🏷️ Property Types Reference** — LoopNet's official commercial property-type / subtype taxonomy per country (`/propertytypes`) — every valid `propertyType` / `propertySubType` filter value.

### Filters

- **Deal type**: For Lease, For Sale, or Auctions (Ten-X).
- **Property types**: office, industrial, retail, flex, land, multifamily, hospitality, specialty, health care, shopping center, restaurant, sports & entertainment, residential income, lab — comma-combinable, plus dozens of subtypes (warehouse, data center, medical office, self-storage, strip center...).
- **Ranges** (`min:X,max:Y`, either half optional): price, lease rate ($/SF/YR), building size (SF), available space (SF), lot size (acres), cap rate (%), year built, unit count.
- **Commercial toggles**: sublease, net leased (NNN), distressed, Opportunity Zone, in-contract, Buy Now (auctions), vacant/owner-user, business for sale, investment, exclude leasehold.
- **Sort**: recommended, newest/oldest, price, cap rate, building size, available space.
- **Keywords**: free-text, e.g. `drive-thru`, `high ceilings`.

### Output

- **One flat dataset row per listing, geography suggestion, or property type** — sortable, filterable, CSV / Excel / JSON exportable.
- Columns: `Mode`, `Input Given`, `ID`, `Title` (street address / name), `Deal`, `Status`, `Property Type`, `Building Class`, `Price / Rate`, `Available Space`, `Size`, `Spaces`, `Building Info`, `City`, `State`, `ZIP`, `County`, `Latitude`, `Longitude`, `Description`, `Broker`, `Broker Phone`, `Broker Company`, `Walk Score`, `Photos`, `Cover Photo`, `Listing URL`.
- The complete upstream JSON for each row is kept in the `Raw` column for power users — for details rows it includes all available spaces, facts, highlights, every photo URL, all brokers, scores, transportation and owner data.

### Inputs

- Each section is independent — fill only the ones you need; multiple inputs per section, one per line.
- The Search Filters apply to every location, ZIP, coordinate and polygon query (LoopNet search URLs carry their own filters).
- **Coordinates** entries use `latitude,longitude` or `latitude,longitude,radiusMiles`, e.g. `34.0522,-118.2437,3` (3 miles around downtown LA).
- **Polygon** entries use `lon lat,lon lat,...`, e.g. `-118.5 34.2,-118.5 33.9,-118.1 33.9,-118.1 34.2`.
- Range filters use `min:X,max:Y`, e.g. price `min:1000000,max:10000000`, cap rate `min:4,max:12`.

### Pricing

- Pay per result: **$3 per 1,000 dataset items** — the same rate on every Apify plan tier.
- Apify start fee: $0.00005 per run.

### Notes

- LoopNet serves **25 listings per server page** — the API merges pages internally, so *Results per page* goes up to **100**; raise *Pages per search* to fetch more.
- Prices come as LoopNet displays them — sale prices (`$2,650,000`), lease rates (`$3.45 /SF/MO`), or auction terms — so the `Price / Rate` column is text.
- Areas are in square feet, lot sizes in acres, prices in USD ($).
- Property details are **enriched** — spaces, facts, highlights, broker phones, scores, transportation, owner and the photo gallery are merged from multiple LoopNet sources in one call.

### Errors

- Failures land in the dataset as rows with `Mode = "ERROR"` and the upstream message in `Title` — nothing is silently dropped.

# Actor input Schema

## `property_inputs` (type: `array`):

Auto-detects each entry and calls the right endpoint:
• A numeric LoopNet listing id (e.g. `29122043`) → `/details/byid`
• A `https://www.loopnet.com/Listing/...` URL → `/details/byurl`

Each row = one fully enriched commercial property record: address + coordinates, price / lease rate, building class, all available spaces (size, term, rate, use, build-out, availability), property facts (building size, typical floor size, ceiling height, parking, zoning...), highlights, description, brokers with phone numbers, owner, walk/transit/bike/drive scores, nearby transportation and the full photo gallery. Pull an id from any Search result row.

## `search_inputs` (type: `array`):

Auto-detects each entry and routes to the right `/search/*` endpoint:
• A LoopNet search URL, e.g. `https://www.loopnet.com/search/office-space/los-angeles-ca/for-lease/` → `/search/byurl`
• A 5-digit ZIP code, e.g. `90064` → `/search/byzip`
• Anything else (city / county / market, e.g. `Austin, TX`) → `/search/bylocation`

The filters below apply to every location, ZIP, coordinate and polygon query (search URLs carry their own filters). Each hit returns one row per listing.

## `coordinate_inputs` (type: `array`):

Radius search around a point via `/search/bycoordinates`. One point per line as `latitude,longitude` or `latitude,longitude,radiusMiles` (radius in MILES, default 5). Example: `34.0522,-118.2437,3` searches 3 miles around downtown Los Angeles. The filters below also apply. One row per listing.

## `polygon_inputs` (type: `array`):

Search inside a custom area via `/search/bypolygon`. One polygon per line as space-separated `longitude latitude` pairs joined by commas, e.g. `-118.5 34.2,-118.5 33.9,-118.1 33.9,-118.1 34.2`. The search is bounded by the polygon's extent. The filters below also apply. One row per listing.

## `searchType` (type: `string`):

Listing mode to search for: commercial space For Lease, properties For Sale, or Ten-X Auctions. Applies to every location / ZIP / coordinate / polygon query.

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

Commercial property type; comma-combine for multiple, e.g. `office,industrial`. Valid values: `office`, `industrial`, `retail`, `flex`, `land`, `multifamily`, `hospitality`, `specialty`, `health_care`, `shopping_center`, `restaurant`, `sports_entertainment`, `residential_income`, `lab`. Leave empty for all types.

## `propertySubType` (type: `string`):

Narrow to a subtype (comma-combine allowed), e.g. `warehouse`, `distribution`, `data_center`, `manufacturing`, `cold_storage`, `loft`, `creative_space`, `medical_office`, `bank`, `freestanding`, `grocery`, `gas_station`, `storefront`, `strip_center`, `regional_mall`, `garden`, `mid_rise`, `high_rise`, `self_storage`, `car_wash`, `religious`, `school`, `parking`, `assisted_living`, `hospital`, `casino`, `golf`, `theater`, `residential_land`, `commercial_land`, `industrial_land`, `agricultural`. Use the Property Types section below to list every valid value. Leave empty for all.

## `priceRange` (type: `string`):

Sale price as `min:X,max:Y` (either half optional), e.g. `min:1000000,max:10000000`. In For Lease mode (when no explicit lease rate is set) this filters the lease rate instead.

## `leaseRateRange` (type: `string`):

Annual lease rate per square foot as `min:X,max:Y`, e.g. `min:10,max:50`. For Lease mode only.

## `buildingSizeRange` (type: `string`):

Total building size in square feet as `min:X,max:Y`, e.g. `min:5000,max:200000`.

## `spaceSizeRange` (type: `string`):

Available space in square feet as `min:X,max:Y`, e.g. `min:2000,max:20000`. For Lease mode.

## `lotSizeRange` (type: `string`):

Lot size in acres as `min:X,max:Y`, e.g. `min:0.5,max:10`.

## `capRateRange` (type: `string`):

Capitalization rate percentage as `min:X,max:Y`, e.g. `min:4,max:12`. For Sale mode.

## `yearBuiltRange` (type: `string`):

Construction year as `min:X,max:Y`, e.g. `min:1990` or `min:1980,max:2010`.

## `unitCountRange` (type: `string`):

Number of units as `min:X,max:Y`, e.g. `min:10,max:100`. Multifamily properties.

## `keywords` (type: `string`):

Free-text keyword filter, e.g. `corner lot`, `drive-thru`, `high ceilings`.

## `sortOrder` (type: `string`):

Result ordering for every location / ZIP / coordinate / polygon search.

## `pages` (type: `integer`):

How many result pages to fetch for each search input (each page holds *Results per page* listings).

## `resultCount` (type: `integer`):

Listings to return per page for every search (1–100; the API internally merges LoopNet's 25-listing server pages).

## `subLease` (type: `boolean`):

Only sublease space (For Lease mode).

## `netLeased` (type: `boolean`):

Only net-leased / triple-net investment properties.

## `distressed` (type: `boolean`):

Only distressed assets.

## `opportunityZone` (type: `boolean`):

Only properties inside a federal Opportunity Zone.

## `inContract` (type: `boolean`):

Include listings already in contract or pending.

## `buyNowAvailable` (type: `boolean`):

Only auction listings with a Buy Now price.

## `vacantOwnerUser` (type: `boolean`):

Only vacant properties suited to owner-users (For Sale mode).

## `businessForSale` (type: `boolean`):

Only listings where the operating business is included in the sale.

## `investment` (type: `boolean`):

Only income-producing investment properties (For Sale mode).

## `excludeLeaseHold` (type: `boolean`):

Exclude leasehold-interest sales (For Sale mode).

## `autocomplete_inputs` (type: `array`):

Resolve free text (city / county / ZIP / market, e.g. `Austin`) to LoopNet geography suggestions via `/autocomplete`. Each suggestion = one row (name, geography id and type, city/state/country, coordinates).

## `propertytypes_inputs` (type: `array`):

List LoopNet's official commercial property-type / subtype taxonomy per country via `/propertytypes` — every valid `propertyType` and `propertySubType` filter value. One row per property type per deal axis (For Sale / For Lease). Codes: `USA`, `CAN`, `GBR`, `FRA`, `ESP`, `AUS`.

## Actor input object example

```json
{
  "property_inputs": [
    "29122043",
    "https://www.loopnet.com/Listing/11340-W-Olympic-Blvd-Los-Angeles-CA/29122043/"
  ],
  "search_inputs": [
    "Los Angeles, CA"
  ],
  "coordinate_inputs": [],
  "polygon_inputs": [],
  "searchType": "For_Lease",
  "propertyType": "",
  "propertySubType": "",
  "priceRange": "",
  "leaseRateRange": "",
  "buildingSizeRange": "",
  "spaceSizeRange": "",
  "lotSizeRange": "",
  "capRateRange": "",
  "yearBuiltRange": "",
  "unitCountRange": "",
  "keywords": "",
  "sortOrder": "Recommended",
  "pages": 1,
  "resultCount": 25,
  "subLease": false,
  "netLeased": false,
  "distressed": false,
  "opportunityZone": false,
  "inContract": false,
  "buyNowAvailable": false,
  "vacantOwnerUser": false,
  "businessForSale": false,
  "investment": false,
  "excludeLeaseHold": false,
  "autocomplete_inputs": [],
  "propertytypes_inputs": []
}
```

# 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 = {
    "property_inputs": [
        "29122043",
        "https://www.loopnet.com/Listing/11340-W-Olympic-Blvd-Los-Angeles-CA/29122043/"
    ],
    "search_inputs": [
        "Los Angeles, CA"
    ],
    "coordinate_inputs": [],
    "polygon_inputs": [],
    "autocomplete_inputs": [],
    "propertytypes_inputs": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("one-api/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 = {
    "property_inputs": [
        "29122043",
        "https://www.loopnet.com/Listing/11340-W-Olympic-Blvd-Los-Angeles-CA/29122043/",
    ],
    "search_inputs": ["Los Angeles, CA"],
    "coordinate_inputs": [],
    "polygon_inputs": [],
    "autocomplete_inputs": [],
    "propertytypes_inputs": [],
}

# Run the Actor and wait for it to finish
run = client.actor("one-api/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 '{
  "property_inputs": [
    "29122043",
    "https://www.loopnet.com/Listing/11340-W-Olympic-Blvd-Los-Angeles-CA/29122043/"
  ],
  "search_inputs": [
    "Los Angeles, CA"
  ],
  "coordinate_inputs": [],
  "polygon_inputs": [],
  "autocomplete_inputs": [],
  "propertytypes_inputs": []
}' |
apify call one-api/loopnet-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/39J8I9viK29cJjIg1/builds/gDiHjQdvHrgtbxtFg/openapi.json
