# Crexi — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and browse commercial real estate listings from Crexi.com with detailed property information including pricing, cap rates, NOI, and broker details. Retrieve comprehensive listing data and property specifics to compare investment opportunities and market trends across a wide range of commercial property types.

**Category:** Real Estate | **Website:** [www.crexi.com/resources/find-a-broker/Fort_Wayne%2C_IN](https://www.crexi.com/resources/find-a-broker/Fort_Wayne%2C_IN) | **Docs:** [parse.bot/marketplace/efed26a2-6f18-419b-b503-8c885978679c/crexi-com-api](https://parse.bot/marketplace/efed26a2-6f18-419b-b503-8c885978679c/crexi-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/crexi/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get all listings

Fetch listings for a property type with automatic internal pagination. Iterates through all available pages collecting every listing until max_results is reached or all listings are fetched. Use max_results to limit the number fetched. Returns the same listing shape as search_properties. Intended for bulk data collection; for page-by-page control use search_properties directly.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `delay` | number | No | Delay in seconds between pagination requests |
| `max_price` | number | No | Maximum asking price filter in USD |
| `max_results` | integer | No | Maximum number of results to fetch (0 fetches all available listings) |
| `min_price` | number | No | Minimum asking price filter in USD |
| `property_type` | string | No | Property type to filter by |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/crexi/get-all-listings \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"delay":"<number>","max_price":"<number>","max_results":"<integer>","min_price":"<number>","property_type":"<string>"}'
```

### Get property detail

Get detailed information for a specific property including full marketing description, broker contact details, occupancy, investment type, loan details, and more. Returns a single Property by its numeric ID. The ID is obtained from search_properties results. Returns upstream_error for inactive or non-existent properties.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `property_id` | string | Yes | Crexi property ID (numeric, from search_properties results[*].id) |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/crexi/get-property-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"property_id":"<string>"}'
```

### Search properties

Search for commercial real estate properties by type with pagination. Returns listing summaries including price, cap rate, NOI, location, and broker info. Supports sorting by relevance, price, cap rate, or listing date. Server-side filtering is limited to property type and price range; finer filters require client-side post-processing. Each PropertySummary exposes a .details() navigation to the full Property.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `max_price` | number | No | Maximum asking price filter in USD |
| `min_price` | number | No | Minimum asking price filter in USD |
| `page` | integer | No | Page number (1-based) |
| `page_size` | integer | No | Results per page (max 60) |
| `property_type` | string | No | Property type to filter by |
| `sort_direction` | string | No | Sort direction |
| `sort_order` | string | No | Sort field |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/crexi/search-properties \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"max_price":"<number>","min_price":"<number>","page":"<integer>","page_size":"<integer>","property_type":"<string>","sort_direction":"<string>","sort_order":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.