> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Redfin Listings API

> Redfin homes for sale and recently sold, with MLS ID, price, beds, baths, square footage, year built and address. Search by city or ZIP code.

`POST /v1/data/redfin/listings/run`

**Pricing:** $0.002 per listing ($2.00 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**location** `string` *required*

City, ZIP code or neighborhood to search, e.g. Austin, TX or 78704.

**listingType** `string` (default: forSale)

Which listings to return: homes for sale, or homes sold in the last 3 months. Defaults to for sale. For rentals use the Redfin Rentals API.

Allowed values: `forSale` (For sale), `sold` (Sold (last 3 months)).

**priceMin** `integer`

Lowest price in dollars, e.g. 300000.

Min `0`.

**priceMax** `integer`

Highest price in dollars, e.g. 750000.

Min `0`.

**minBedrooms** `integer`

Minimum number of bedrooms, e.g. 3.

Min `0`; max `10`.

**homeTypes** `string[]`

Only these home types. Leave empty for all types.

Allowed values: `house` (House), `condo` (Condo), `townhouse` (Townhouse), `multifamily` (Multi-family), `land` (Land), `manufactured` (Manufactured), `co-op` (Co-op), `other` (Other).

**maxResults** `integer` (default: 100)

How many listings to return in total. Defaults to 100; use 0 for all.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/redfin/listings/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "location": "Austin, TX",
    "maxResults": 10
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/redfin/listings/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "location": "Austin, TX",
    "maxResults": 10
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/redfin/listings/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "location": "Austin, TX",
  "maxResults": 10
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one listing, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `listingUrl` | Listing URL | url |
| `propertyId` | Property ID | text |
| `mlsId` | Mls ID | text |
| `address` | Address | text |
| `city` | City | text |
| `state` | State | text |
| `zipCode` | Zip Code | text |
| `latitude` | Latitude | number |
| `longitude` | Longitude | number |
| `listingType` | Listing Type | text |
| `status` | Status | text |
| `propertyType` | Property Type | text |
| `price` | Price | number |
| `beds` | Beds | number |
| `baths` | Baths | number |
| `bathsFull` | Baths Full | number |
| `bathsPartial` | Baths Partial | number |
| `sqft` | Sqft | number |
| `lotSizeSqft` | Lot Size Sqft | number |
| `yearBuilt` | Year Built | number |
| `hoaDues` | Hoa Dues | number |
| `daysOnMarket` | Days On Market | number |
| `listedAt` | Listed At | text |
| `lastSoldDate` | Last Sold Date | text |
| `isNewConstruction` | Is New Construction | boolean |
| `hasVirtualTour` | Has Virtual Tour | boolean |
| `isRedfinListing` | Is Redfin Listing | boolean |
| `badges` | Badges | object\_array |
| `imageUrl` | Image URL | url |
| `photos` | Photos | array |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "redfin/listings",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "lastSoldDate": "2018-04-25T07:00:00+00:00",
      "daysOnMarket": 0,
      "propertyId": "31730606",
      "city": "Austin",
      "photos": [
        "https://ssl.cdn-redfin.com/photo/641/bigphoto/537/2228516707741437537_0.jpg",
        "https://ssl.cdn-redfin.com/photo/641/bigphoto/537/2228516707741437537_1_0.jpg"
      ],
      "listedAt": null,
      "badges": [
        {
          "name": "EARLY ACCESS",
          "openHouseText": "",
          "timeOnRedfin": 0
        },
        {
          "name": "COMPASS COMING SOON",
          "openHouseText": "",
          "timeOnRedfin": 0
        }
      ],
      "baths": 2,
      "hoaDues": 0,
      "isRedfinListing": false,
      "mlsId": "2228516707741437537",
      "beds": 3,
      "zipCode": "78745",
      "bathsFull": 0,
      "sqft": 1092,
      "lotSizeSqft": 6860,
      "longitude": -97.7662454,
      "yearBuilt": 1968,
      "status": "pre_on_market",
      "propertyType": "single_family_residential",
      "state": "TX",
      "hasVirtualTour": false,
      "imageUrl": "https://ssl.cdn-redfin.com/photo/641/bigphoto/537/2228516707741437537_0.jpg",
      "latitude": 30.2096018,
      "listingUrl": "https://www.redfin.com/TX/Austin/405-Tilbury-Ln-78745/home/31730606"
    }
  ]
}
```

## Related APIs

For rentals use [`redfin/rentals`](https://docs.mindcase.co/apis/redfin/rentals); for Zillow listings use [`zillow/listings`](https://docs.mindcase.co/apis/zillow/listings); for Realtor.com use [`realtor/listings`](https://docs.mindcase.co/apis/realtor/listings).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.