# /crexi/properties/search

`POST /api/crexi/properties/search`

Price: 20 credits

Search Crexi commercial properties for sale. Returns listing cards with id, name, status, property type, asking price, price per sqft, NOI, square footage, brokerage, image, latitude/longitude and property_url. Filter by property type and subtype, price, cap rate, square footage, price per sqft, acreage, units, occupancy, remaining lease term, lease structure, tenancy, tenant brand, tenant credit, class, listing status, opportunity zone, broker co-op, broker id and a geographic bounding box.

## How to use it

Search Crexi commercial real estate for sale. Each item has id (use it with the properties details endpoint), name, status, property_types, asking_price, price_per_sqft, net_operating_income, square_footage, brokerage_name, image, location (city, state_code, latitude, longitude) and property_url. Use property_types/subtypes to restrict asset class, min_price/max_price, min_cap_rate/max_cap_rate, tenants for a national brand (e.g. Starbucks), and latitude_min/latitude_max/longitude_min/longitude_max for a map bounding box.

## Parameters

- `access-token` (string, required)

## Request body

- `timeout` (integer) — Max scrapping execution timeout (in seconds) (default: 300; min: 20; max: 1500)
- `property_types` (array, nullable) — Property types to include (one of: "Retail", "Multifamily", "Office", "Industrial", "Hospitality", "Mixed Use", "Land", "Self Storage", "Mobile Home Park", "Senior Living", "Special Purpose", "Note/Loan", "Business for Sale")
- `subtypes` (array, nullable) — Property subtypes to include (e.g. 'Gas Station', 'Warehouse', 'Apartment Building')
- `keywords` (string, nullable) — Free-text keywords to match in the listing
- `min_price` (number, nullable) — Minimum asking price (USD) (min: 0)
- `max_price` (number, nullable) — Maximum asking price (USD) (min: 0)
- `exclude_unpriced` (boolean) — Exclude listings without a published asking price (default: false)
- `min_cap_rate` (number, nullable) — Minimum cap rate (percent, e.g. 8 for 8%) (min: 0)
- `max_cap_rate` (number, nullable) — Maximum cap rate (percent, e.g. 8 for 8%) (min: 0)
- `min_sqft` (integer, nullable) — Minimum building square footage (min: 0)
- `max_sqft` (integer, nullable) — Maximum building square footage (min: 0)
- `min_price_per_sqft` (number, nullable) — Minimum price per square foot (min: 0)
- `max_price_per_sqft` (number, nullable) — Maximum price per square foot (min: 0)
- `min_acres` (number, nullable) — Minimum lot size in acres (min: 0)
- `max_acres` (number, nullable) — Maximum lot size in acres (min: 0)
- `min_units` (integer, nullable) — Minimum number of units (min: 0)
- `max_units` (integer, nullable) — Maximum number of units (min: 0)
- `unit_type` (string, nullable) — What the unit count refers to (used with min_units/max_units) (one of: "Units", "Keys", "Beds", "Pads", "Pumps")
- `min_occupancy` (number, nullable) — Minimum occupancy percentage (min: 0; max: 100)
- `max_occupancy` (number, nullable) — Maximum occupancy percentage (min: 0; max: 100)
- `min_remaining_term_years` (number, nullable) — Minimum remaining lease term in years (min: 0)
- `max_remaining_term_years` (number, nullable) — Maximum remaining lease term in years (min: 0)
- `lease_types` (array, nullable) — Lease structures to include (one of: "Net", "NNN", "Absolute Net", "Gross", "Modified", "Ground")
- `tenancies` (array, nullable) — Tenancy types to include (one of: "Vacant", "Single", "Multi")
- `tenants` (array, nullable) — National tenant brand names to match (e.g. 'Starbucks', 'CVS Pharmacy')
- `tenant_credits` (array, nullable) — Tenant credit profiles to include (one of: "Credit Rated", "Corporate Guarantee", "Franchisee", "No Credit Rating")
- `class_types` (array, nullable) — Building class types to include (one of: "A", "B", "C", "D")
- `statuses` (array, nullable) — Listing statuses to include (one of: "Contract Pending", "Under Contract")
- `broker_ids` (array, nullable) — Restrict to listings from these Crexi broker ids
- `in_opportunity_zone` (boolean, nullable) — Only listings located in an Opportunity Zone
- `broker_co_op` (boolean, nullable) — Only listings offering a broker co-op
- `latitude_min` (number, nullable) — South edge of a bounding box filter (min: -90; max: 90)
- `latitude_max` (number, nullable) — North edge of a bounding box filter (min: -90; max: 90)
- `longitude_min` (number, nullable) — West edge of a bounding box filter (min: -180; max: 180)
- `longitude_max` (number, nullable) — East edge of a bounding box filter (min: -180; max: 180)
- `sort_order` (string) — Field to sort results by (default: "rank"; one of: "rank", "price", "capRate", "sqFt", "units", "activatedOn", "updatedOn", "createdOn")
- `sort_direction` (string) — Sort direction (default: "Descending"; one of: "Ascending", "Descending")
- `count` (integer, required) — Max number of listings to return (min: 1; max: 1500)

## Response

### 200 — Successful Response

- `@type` (string) (default: "CrexiPropertyCard")
- `id` (integer, required)
- `name` (string, nullable)
- `description` (string, nullable)
- `status` (string, nullable)
- `platform` (string, nullable)
- `property_types` (array) (default: [])
- `asking_price` (number, nullable)
- `price_per_sqft` (number, nullable)
- `square_footage` (integer, nullable)
- `net_operating_income` (number, nullable)
- `lease_term_years` (number, nullable)
- `remaining_term_years` (number, nullable)
- `investment_type` (string, nullable)
- `lot_size_acres` (number, nullable)
- `price_per_acre` (number, nullable)
- `brokerage_name` (string, nullable)
- `broker_logo` (string, nullable)
- `is_in_opportunity_zone` (boolean, nullable)
- `is_new` (boolean, nullable)
- `has_video` (boolean, nullable)
- `has_virtual_tour` (boolean, nullable)
- `has_om` (boolean, nullable)
- `has_flyer` (boolean, nullable)
- `image_count` (integer, nullable)
- `gallery_item_count` (integer, nullable)
- `offers_due_at` (integer, nullable)
- `activated_at` (integer, nullable)
- `updated_at` (integer, nullable)
- `image` (string, nullable)
- `alias` (string, nullable)
- `property_url` (string, nullable)
- `location` (object, nullable)
  - `@type` (string) (default: "CrexiLocation")
  - `address` (string, nullable)
  - `city` (string, nullable)
  - `county` (string, nullable)
  - `state_code` (string, nullable)
  - `state_name` (string, nullable)
  - `zip` (string, nullable)
  - `latitude` (number, nullable)
  - `longitude` (number, nullable)
  - `full_address` (string, nullable)

## Errors

### 422 — Validation Error

The request body did not validate

What to do: Check the fields against this schema. A URN with the wrong prefix is the most common cause.

- `detail` (array)
  - `loc` (array, required)
  - `msg` (string, required)
  - `type` (string, required)
  - `input` (any)
  - `ctx` (object)

### 408

The request ran past its time limit

What to do: Raise `timeout` in the request body, up to the maximum this endpoint documents. Lowering `count` or turning off the `with_*` flags also helps, because less work finishes sooner.

### 412

The entity was not found, or a precondition failed

What to do: Retrying will not help: either the entity does not exist, or the input points at a different one.

### 429

Too many requests: a rate limit or a usage window is exhausted

What to do: When the response carries an X-Retry-After header, wait that many seconds and retry: the same number is in the body as `detail.retry_after`, and the limit clears once that window passes. The message in the body names the limit that was hit.

### 500

Something broke on our side

What to do: Retrying will not help. If it keeps happening, send us the X-Request-ID from the response headers.

### 529

Rate limit reached, or the endpoint is overloaded

What to do: Wait at least 30 seconds, then retry.

## Response envelope

Success: Array of objects (may be empty if no results)

Error: Error may coexist with partial results if it occurs mid-execution. Check X-Error header and status code.

Every response carries these headers:

- `X-Error` — Error message text (present only on error)
- `X-Request-ID` — Unique request identifier
- `X-Execution-Time` — Execution time in seconds
- `X-Result-Count` — How many records the body carries. 0 means an empty result, which is a normal answer and not by itself an error. A non-zero count can come back together with X-Error when the failure happened partway through — read this header and X-Error independently.
- `X-Total-Available-Results` — How many records exist for this query, when the endpoint can say. On a `dry_run` request this is the answer and the body is empty. It saturates: the endpoint's documented maximum means 'at least that many', any smaller number is exact.
- `X-Warning` — Present when the request body carried keys this endpoint does not document. They were ignored, so any filter you meant to apply through them did not apply. Check the spelling against this schema and retry.
- `X-Retry-After` — Seconds to wait before retrying. Present only on 429.

