Use Crexi Commercial Property Listings & Pricing Extractor with Python
Collects active commercial real estate listings from Crexi across any US state and 14 property types, with asking price, square footage, location, and brokerage details.
1. Choose the data you need
Review the published README for supported collection modes, examples, and limits. The recipe below uses the current published input definition.
2. Prepare a source-based input
This JSON contains published prefills and required-field defaults. Review every value for your task before running it; it is not a promise of successful collection.
{
"cities": [],
"counties": [],
"includeSimilarProperties": false,
"includeUnpriced": true,
"maxProperties": 5,
"opportunityZoneOnly": false,
"propertyUrls": [],
"scrapeDetails": false,
"searchTerms": [],
"sortBy": "Rank",
"sortDirection": "Descending",
"zipCodes": []
}
Download input.example.json and save your reviewed copy as input.json.
| Field | Type | Required | Description |
|---|---|---|---|
propertyUrls | array | optional | Paste Crexi property links or IDs (e.g. https://www.crexi.com/properties/123456/name, /lease/properties/987/name, a bare ID, or a property-record link) to fetch those exact listings. A Crexi search URL (https://www.crexi.com/search/...) is also accepted and its filters are reused. Leave empty to search by the filters below. |
transactionTypes | array | optional | Which Crexi marketplaces to search. Empty = for-sale listings only. |
searchTerms | array | optional | Free-text keywords matched against listing names, descriptions and addresses (e.g. warehouse, medical office). |
propertyTypes | array | optional | One or more commercial property categories. Empty searches every type. |
subtypes | array | optional | Narrow to specific subtypes (e.g. Shopping Center, Medical Office, Warehouse). Note: some subtypes exist only for sale or only for lease listings. |
locations | array | optional | US states to search, by two-letter code or full name. Each state is searched and combined. Empty searches nationwide. |
cities | array | optional | City names to filter by (e.g. Austin). Works alongside or instead of states. |
counties | array | optional | County names to filter by, including the word County where Crexi uses it (e.g. Travis County). |
zipCodes | array | optional | US ZIP codes to filter by (e.g. 78701). |
minPrice | integer | optional | Only return listings asking at least this much. Sale and auction listings only. |
maxPrice | integer | optional | Only return listings asking at most this much. Sale and auction listings only. |
minPricePerSqft | number | optional | Only return sale listings priced at or above this per square foot. |
maxPricePerSqft | number | optional | Only return sale listings priced at or below this per square foot. |
minCapRate | number | optional | Only return sale listings with a published cap rate at or above this percentage. |
maxCapRate | number | optional | Only return sale listings with a published cap rate at or below this percentage. |
minSquareFootage | integer | optional | Only return listings whose building is at least this large. |
maxSquareFootage | integer | optional | Only return listings whose building is at most this large. |
minRatePerSqftAnnual | number | optional | For-lease listings only: minimum annual rate per square foot. |
maxRatePerSqftAnnual | number | optional | For-lease listings only: maximum annual rate per square foot. |
buildingClasses | array | optional | Filter by commercial building class. Empty includes all classes. |
opportunityZoneOnly | boolean | optional | Only return sale listings located in a designated Opportunity Zone. |
includeUnpriced | boolean | optional | Include sale and auction listings Crexi shows without a public asking price (auctions, call for offers). |
sortBy | string | optional | Order of results within each search. |
sortDirection | string | optional | Ascending or descending order for the sort chosen above. |
scrapeDetails | boolean | optional | Fetch each listing's detail data: broker contacts (phone and email), the broker of record when published, the full photo gallery in high resolution, investment highlights, the marketing description, published fact-sheet values, and full auction details for auction listings. Adds a few requests per listing. |
includeSimilarProperties | boolean | optional | Add up to 6 similar nearby listings (comps) to each record. |
maxProperties | integer | optional | Stop once this many listings have been collected. Crexi returns at most 1,500 rows per filter combination; larger requests are automatically split into price-range partitions. |
3. Start an Actor run
Set APIFY_TOKEN in your environment. Python 3.10 or newer is sufficient; this recipe uses no third-party packages.
Execution may incur charges. Review current pricing on Apify. The request asks for a 120-second timeout and a charge limit; these settings are subject to Apify’s pricing and do not guarantee an all-inclusive spending cap.
import json
import os
import urllib.request
# Save the schema-derived example as input.json; review and edit it first.
with open("input.json", encoding="utf-8") as stream:
actor_input = json.load(stream)
token = os.environ["APIFY_TOKEN"]
request = urllib.request.Request(
"https://api.apify.com/v2/acts/dZkzHEvhJd9SJS0qj/runs?timeout=120&maxTotalChargeUsd=0.50",
data=json.dumps(actor_input).encode("utf-8"),
headers={"Authorization": "Bearer " + token, "Content-Type": "application/json"},
method="POST",
)
# This starts a potentially billable run. Do not automatically retry this POST.
with urllib.request.urlopen(request, timeout=40) as response:
run = json.load(response)["data"]
print("Run ID:", run["id"])
print("Status:", run["status"])
# Inspect and download results in Apify Console once the run succeeds.
4. Inspect the actual results
Open the run in Apify Console and wait for a successful completion. Use the published output schema to locate results and the dataset schema to understand declared views. Missing or optional record fields must not be treated as guaranteed values.
Dataset of Crexi sale, lease and auction commercial property listings with pricing, cap rate, NOI, sizes, brokers, locations, photos and optional detail enrichment.
Questions before you run
Which inputs are required?
No top-level fields are marked required in the published schema. Conditional requirements can still apply; check the README.
What does this guide verify?
The fields, prefills, and schema links are rendered from the published build. This is a usage recipe, not a paid live extraction test. Source availability and collection results can vary.
What if the run request times out?
Check Apify Console before retrying. The first request may already have created a run. Do not automatically repeat a run-creation POST.
Generated from source build SreNgxMszQEyRWGfu and its README and schemas. Source changes regenerate this guide; no third-party editorial claims are inferred.