# Crexi Listing Scraper (`codingfrontend/crexi-listing-scraper`) Actor

Scrape public commercial real-estate listings from Crexi.com with bounded pagination.

- **URL**: https://apify.com/codingfrontend/crexi-listing-scraper.md
- **Developed by:** [Coding Frontned](https://apify.com/codingfrontend) (community)
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 96.6% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

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

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

## What's an Apify Actor?

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

### What does Crexi Listing Scraper do?

This Actor collects commercial property listings from public [Crexi pages](https://www.crexi.com/properties). Enter public listing or search URLs, or create searches from phrases, locations, and property types. The Actor follows a limited number of public pages and saves listing details it can identify. It does not sign in to private broker tools or bypass Crexi access controls.

### Why use Crexi Listing Scraper?

Use the results to review commercial property inventory, compare asking prices and property sizes, or build a market research dataset. You can run searches on demand or use Apify scheduling, API access, integrations, monitoring, and dataset exports to fit the results into a wider workflow.

The Actor removes duplicate listings within a run. Search URLs and generated searches are combined. Search phrases and location/property type combinations are sent to Crexi as search terms; they are not applied as extra post-processing filters to the returned listings.

When a search exposes a valid listing, the Actor requests its public detail page if the page budget allows. Available detail fields are combined with the search record before saving one final row. Detail requests share the `maxPages` limit and take priority over further search pages. If a detail request fails, the available search record is kept and the run is marked partial. Reaching the page budget leaves remaining detail fields unavailable without making the run partial.

### How to start a run

1. Open the Actor's **Input** tab.
2. Add public Crexi URLs, or enter search phrases, locations, and property types. You can use URLs and search criteria together.
3. Choose page and listing limits. The defaults are suitable for a small first run.
4. Click **Start**. When the run finishes, open **Results** for listing records or **Output summary** for the run count and status.

All top-level inputs are optional. If you leave out URLs and search criteria, the Actor starts from Crexi's public properties page. URL entries are objects with a `url` field. Search lists accept non-empty text entries.

#### Search settings

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `startUrls` | Array of objects with a `url` text field | Optional | `[]`; uses the public properties page if no other source is provided | Adds up to 50 public HTTPS Crexi search or listing pages. URLs must use `crexi.com` and a `/properties`, `/property`, or `/listing` path. Exact duplicate URLs are removed. |
| `searchQueries` | Array of text | Optional | `[]` | Adds up to 20 non-empty search phrases. Each phrase creates a Crexi search URL. |
| `locations` | Array of text | Optional | `[]` | Adds up to 20 non-empty locations. Each location is combined with every supplied property type. If no property type is supplied, it is combined with “commercial real estate.” |
| `propertyTypes` | Array of text | Optional | `[]` | Adds up to 20 non-empty property types. With locations, each type is paired with each location. Without locations or phrases, each type creates a “commercial \[type]” search. |

Phrases and generated location/type searches are added together with `startUrls`. If you supply both a phrase and a location, the Actor searches for both. Results are de-duplicated by listing identifier, with the listing URL used as a fallback identity. Crexi controls the order of results; this Actor does not sort them.

#### Result limits

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `maxPages` | Integer | Optional | `5` | Maximum number of public pages requested across all starting URLs and generated searches. Range: `1`–`25`. This limit is global, not per URL. |
| `maxItems` | Integer | Optional | `100` | Maximum number of unique business listings saved across the run. Range: `1`–`500`. Reaching this limit is normal completion. |

#### Advanced settings (Developer Options)

| Field | Type | Required? | Default | What it does |
| --- | --- | --- | --- | --- |
| `timeoutSecs` | Integer | Optional | `25` | Maximum wait for each public request, in seconds. Range: `5`–`120`. |
| `maxResponseBytes` | Integer | Optional | `5000000` | Maximum response size accepted for each page, in bytes. Range: `100000`–`10000000`. |
| `proxyConfiguration` | Object | Optional | Not configured | Optional standard Apify Proxy settings. If enabled, the Actor uses one stable session. Proxy access does not bypass site controls and may have separate costs under your Apify account. Use the input form's proxy editor; this README does not contain proxy credentials. |

There are no required inputs, aliases, fixture controls, or diagnostic-output switches. Unknown input fields are rejected.

#### Copyable input examples

Search for a phrase with a small result limit:

```json
{
  "searchQueries": ["industrial warehouse"],
  "maxItems": 10
}
```

Search property types in a location. Each location is paired with each type:

```json
{
  "locations": ["Dallas, TX"],
  "propertyTypes": ["Industrial", "Office"],
  "maxPages": 4,
  "maxItems": 40
}
```

Combine multiple public Crexi URLs. Duplicate listings found on both pages are saved once:

```json
{
  "startUrls": [
    { "url": "https://www.crexi.com/properties?query=industrial" },
    { "url": "https://www.crexi.com/properties?query=office" }
  ],
  "maxPages": 5,
  "maxItems": 50
}
```

Allow more pages for a search while keeping a global result cap:

```json
{
  "startUrls": [
    { "url": "https://www.crexi.com/properties?query=office" }
  ],
  "maxPages": 10,
  "maxItems": 100
}
```

Request and response-size controls are optional. Leave them out to use their defaults. The Actor does not provide a field-selection switch; available listing fields are returned when Crexi exposes them.

### What data does the Actor return?

The following example is **illustrative**, with made-up values and links. It describes the complete business-record shape; real records may omit fields that are not available on a listing.

```json
{
  "listingId": "illustrative-property-123",
  "listingUrl": "https://www.crexi.com/properties/illustrative-property-123",
  "title": "Downtown Flex Building",
  "propertyType": "Industrial",
  "listingStatus": "For Sale",
  "price": 3250000,
  "currency": "USD",
  "priceText": "$3,250,000",
  "address": "100 Example Avenue",
  "city": "Dallas",
  "state": "Texas",
  "postalCode": "75001",
  "country": "United States",
  "latitude": 32.7767,
  "longitude": -96.797,
  "buildingSizeSqFt": 18500,
  "lotSizeSqFt": 26000,
  "capRate": 6.25,
  "yearBuilt": 2018,
  "brokerName": "Taylor Broker",
  "brokerCompany": "Example Commercial Realty",
  "brokerPhone": "+1-555-010-0100",
  "brokerEmail": "taylor@example.invalid",
  "images": [
    "https://images.crexi.com/illustrative/property-1.jpg",
    "https://images.crexi.com/illustrative/property-2.jpg"
  ],
  "description": "Illustrative warehouse space near major transport routes."
}
```

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `listingId` | Text | Required | Listing identifier, taken from the listing or its public URL. |
| `listingUrl` | URL text | Required | Public Crexi page for the listing. |
| `title` | Text | Optional | Listing title. |
| `propertyType` | Text | Optional | Property type shown by the listing. |
| `listingStatus` | Text | Optional | Availability or listing status shown by Crexi. |
| `price` | Number | Optional | Numeric asking price when available. |
| `currency` | Text | Optional | Currency code when provided. |
| `priceText` | Text | Optional | Price text shown on the page. |
| `address` | Text | Optional | Street or formatted property address. |
| `city` | Text | Optional | Property city. |
| `state` | Text | Optional | Property state or region. |
| `postalCode` | Text | Optional | Property postal code. |
| `country` | Text | Optional | Property country. |
| `latitude` | Number | Optional | Latitude when published. |
| `longitude` | Number | Optional | Longitude when published. |
| `buildingSizeSqFt` | Number | Optional | Building area in square feet when published. |
| `lotSizeSqFt` | Number | Optional | Lot area in square feet when published. |
| `capRate` | Number | Optional | Capitalization rate value in the source data's numeric form. |
| `yearBuilt` | Integer | Optional | Construction year when published. |
| `brokerName` | Text | Optional | Public listing broker name when available. |
| `brokerCompany` | Text | Optional | Brokerage company shown by the listing. |
| `brokerPhone` | Text | Optional | Public broker phone number when available. |
| `brokerEmail` | Text | Optional | Public broker email address when available. |
| `images` | Array of URL text | Optional | Public Crexi property image URLs. |
| `description` | Text | Optional | Public listing description. |

Values that are missing or blank are left out. Numeric fields remain numbers, and image entries are public image URLs. The dataset contains business listings only; it does not contain diagnostic rows, request details, page positions, extraction timestamps, or run counters.

Descriptions, property sizes, coordinates, construction years, and public broker details can be filled from public detail-page data when provided. There is no separate enrichment switch. Fields absent from both the search and detail data are omitted; login-only information is not collected.

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel.

### Run status and output summary

A run is **SUCCEEDED** after at least one valid business listing has been saved. If collection, a detail request, or a dataset write fails and listings were saved, the run stays successful and the summary marks the output as partial. A run with no saved business records is **FAILED**, including a blocked, empty, or diagnostic-only run. The Actor does not add placeholder rows to make an empty run look successful. Reaching `maxItems` or `maxPages` is normal completion.

The separate **Output summary** link opens the `OUTPUT_SUMMARY` record in the run's default **Key-value store**. It contains exactly these fields:

| Field | Type | Required? | Meaning |
| --- | --- | --- | --- |
| `status` | Text | Required | `SUCCEEDED` when at least one real listing was saved; otherwise `FAILED`. |
| `itemsStored` | Nonnegative integer | Required | Number of valid business records whose dataset writes completed. |
| `isPartial` | Boolean | Required | `true` when collection stopped partway after saving one or more records. |

Illustrative completed-run summary:

```json
{
  "status": "SUCCEEDED",
  "itemsStored": 25,
  "isPartial": false
}
```

Illustrative limited-results summary:

```json
{
  "status": "SUCCEEDED",
  "itemsStored": 12,
  "isPartial": true
}
```

Illustrative failed-run summary:

```json
{
  "status": "FAILED",
  "itemsStored": 0,
  "isPartial": false
}
```

### Tips, access limits, and support

- Start with a small `maxPages` and `maxItems` value to see whether the public pages provide the fields you need.
- Search terms are passed to Crexi; they are not exact filters applied after collection. Crexi controls result relevance and ordering.
- Results depend on what is publicly available at run time. Crexi may return an empty page or restrict access; the Actor does not use a login, CAPTCHA solver, proxy rotation, stealth behavior, or access-control bypass.
- A redirect to Crexi's maintenance site stops that request. Try again when public listing access is available; the Actor does not treat a maintenance page as a listing.
- Use public broker contact information only when you have a legitimate purpose, and follow applicable privacy and data-protection laws.
- For questions or feedback, use the Actor's **Issues** tab. The **API** tab explains programmatic access.

Apify account charges depend on the resources and run time used under your plan. Optional proxy usage may add separate account charges; check your Apify account for current pricing.

# Actor input Schema

## `startUrls` (type: `array`):

Optional public HTTPS Crexi properties search or listing pages. URL inputs and generated searches are combined, with exact duplicate URLs removed. If no URL or search criteria are supplied, the Actor starts at the public Crexi properties page.

## `searchQueries` (type: `array`):

Phrases used to create public Crexi property searches. Up to 20 non-empty phrases.

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

Locations used to create public searches. Each location is combined with every supplied property type, or with 'commercial real estate' if no property type is supplied. Up to 20 non-empty locations.

## `propertyTypes` (type: `array`):

Property types used with each location, or as 'commercial \[type]' searches when no location or phrase is supplied. Up to 20 non-empty types.

## `maxPages` (type: `integer`):

Maximum public pages requested across all supplied URLs and generated searches.

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

Maximum valid, unique business listings saved across the run. Reaching this limit is normal completion.

## `timeoutSecs` (type: `integer`):

Timeout applied to each public Crexi request.

## `maxResponseBytes` (type: `integer`):

Maximum HTML or JSON response size accepted for each page.

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

Optional standard Apify Proxy settings. When configured, the Actor uses one stable session and does not bypass public access controls.

## Actor input object example

```json
{
  "startUrls": [],
  "searchQueries": [],
  "locations": [],
  "propertyTypes": [],
  "maxPages": 5,
  "maxItems": 100,
  "timeoutSecs": 25,
  "maxResponseBytes": 5000000
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing the saved Crexi business listings.

## `runSummary` (type: `string`):

The OUTPUT_SUMMARY record in the run's default key-value store.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("codingfrontend/crexi-listing-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("codingfrontend/crexi-listing-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 '{}' |
apify call codingfrontend/crexi-listing-scraper --silent --output-dataset

```

## MCP server setup

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