# Realtor Listings API

Realtor.com property listings with status, property type and price. Search by location or property type.

**Pricing:** $0.003 per listing

**Endpoint:** `POST /v1/data/realtor/listings/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `location` | string | Yes | Location. |
| `listingType` | string | No | Listing Type to use. Search for buy by default. |
| `priceMin` | integer | No | Price Min as a whole number. |
| `priceMax` | integer | No | Price Max as a whole number. |
| `minBedrooms` | integer | No | Min Bedrooms as a whole number. |
| `propertyTypes` | array | No | Only these property types. Leave empty for all types. |
| `maxResults` | integer | No | How many listings to return in total. Defaults to 100; use 0 for all. |

## Example

`?wait=true` holds the request open until the run finishes (up to 60s) and returns the rows inline: one request, no polling.

```bash
curl -X POST "https://api.mindcase.co/v1/data/realtor/listings/run?wait=true" \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{"location":"..."}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/v1/data/realtor/listings/run",
    params={"wait": "true"},
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "location": "..."
}},
)
rows = resp.json()["data"]
```

## Longer runs

If the run is still going at the 60s ceiling you get back `{ job_id, status: "running" }` instead of rows (same if the result is over 100 rows; those come back `truncated`). Poll with that `job_id`:

```bash
# 1) check status
curl https://api.mindcase.co/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, SDKs, MCP): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `listingUrl` | Listing URL | url |
| `propertyId` | Property ID | text |
| `listingId` | Listing ID | text |
| `status` | Status | text |
| `propertyType` | Property Type | text |
| `propertySubType` | Property Sub Type | text |
| `price` | Price | number |
| `priceMin` | Price Min | number |
| `priceMax` | Price Max | number |
| `priceReducedAmount` | Price Reduced Amount | number |
| `beds` | Beds | number |
| `bedsMin` | Beds Min | number |
| `bedsMax` | Beds Max | number |
| `baths` | Baths | number |
| `bathsConsolidated` | Baths Consolidated | text |
| `bathsMin` | Baths Min | number |
| `bathsMax` | Baths Max | number |
| `sqft` | Sqft | number |
| `sqftMin` | Sqft Min | number |
| `sqftMax` | Sqft Max | number |
| `lotSqft` | Lot Sqft | number |
| `garage` | Garage | number |
| `yearBuilt` | Year Built | number |
| `listDate` | List Date | datetime |
| `lastSoldDate` | Last Sold Date | date |
| `lastSoldPrice` | Last Sold Price | number |
| `location` | Location | object |
| `latitude` | Latitude | number |
| `longitude` | Longitude | number |
| `flags` | Flags | object |
| `branding` | Branding | object_array |
| `photoCount` | Photo Count | number |
| `photos` | Photos | object_array |
