# Homes.com API

> Homes.com returns homes for sale and listing details, available as a workflow and API.

Homes.com searches homes for sale by city and state, neighborhood, or ZIP code, with optional price, bedroom, bathroom, and home type filters. Search homes returns listing prices, addresses, property details, brokerage and agent names, photos, and days on market when shown.

- Page: https://fous.com/workflows/homes-com
- Handle: `@homes-com`
- Category: [Real estate](https://fous.com/workflows/category/real-estate)
- Source website: https://homes.com
- Last verified: Sep 30, 2026
- Fous is not affiliated with Homes.com.

## Methods

### Search homes

Operation `search_homes`, version 1. 1 credit per call.

Search Homes.com homes for sale in a US city, neighborhood, or ZIP code. Returns listings in site order; days on market is null when not shown.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `location` | string | yes | `"Nashville, TN"` | City and state, neighborhood, or ZIP code, such as Nashville, TN. |
| `min_beds` | integer | no | `2` | Minimum bedrooms, such as 3. |
| `home_type` | string | no | `"condo"` | Type of home, such as condo; any includes all types. |
| `max_price` | integer | no | `700000` | Maximum listing price in USD; 0 means no maximum, such as 700000. |
| `min_baths` | integer | no | `2` | Minimum bathrooms, such as 2. |
| `min_price` | integer | no | `300000` | Minimum listing price in USD, such as 300000. |
| `max_results` | integer | no | `20` | Maximum listings to return, such as 20. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "location"
  ],
  "properties": {
    "location": {
      "type": "string",
      "minLength": 1,
      "description": "City and state, neighborhood, or ZIP code, such as Nashville, TN.",
      "examples": [
        "Nashville, TN",
        "Green Hills, Nashville, TN",
        "37203"
      ]
    },
    "min_beds": {
      "type": "integer",
      "default": 0,
      "minimum": 0,
      "description": "Minimum bedrooms, such as 3.",
      "examples": [
        2
      ]
    },
    "home_type": {
      "enum": [
        "any",
        "house",
        "condo",
        "townhouse",
        "multi_family",
        "land"
      ],
      "type": "string",
      "default": "any",
      "description": "Type of home, such as condo; any includes all types.",
      "examples": [
        "condo",
        "house",
        "townhouse"
      ]
    },
    "max_price": {
      "type": "integer",
      "default": 0,
      "maximum": 2147483647,
      "minimum": 0,
      "description": "Maximum listing price in USD; 0 means no maximum, such as 700000.",
      "examples": [
        700000,
        99999999
      ]
    },
    "min_baths": {
      "type": "integer",
      "default": 0,
      "minimum": 0,
      "description": "Minimum bathrooms, such as 2.",
      "examples": [
        2
      ]
    },
    "min_price": {
      "type": "integer",
      "default": 0,
      "maximum": 2147483647,
      "minimum": 0,
      "description": "Minimum listing price in USD, such as 300000.",
      "examples": [
        300000,
        99000000
      ]
    },
    "max_results": {
      "type": "integer",
      "default": 20,
      "maximum": 100,
      "minimum": 1,
      "description": "Maximum listings to return, such as 20.",
      "x-fous-developer": true,
      "examples": [
        20,
        45,
        10
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "location": "Nashville, TN",
      "min_beds": 2,
      "home_type": "condo",
      "max_price": 700000,
      "min_baths": 2,
      "min_price": 300000,
      "max_results": 20
    },
    {
      "location": "Nashville, TN",
      "max_results": 45
    },
    {
      "location": "Nashville, TN",
      "max_price": 99999999,
      "min_price": 99000000
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `homes` | array |  | Homes for sale in site order. |
| `homes[].beds` | number or null | `5` | Number of bedrooms. |
| `homes[].baths` | number or null | `4` | Number of bathrooms. |
| `homes[].price` | number or null | `1549000` | Listing price in USD. |
| `homes[].address` | string | `"31 Erwin Ct, Nashville, TN 37205"` | Full listing address. |
| `homes[].currency` | string | `"USD"` | Currency code, USD. |
| `homes[].brokerage` | string or null | `"Fridrich & Clark Realty"` | Listing brokerage name. |
| `homes[].home_type` | string or null | `"house"` | Property type shown for this home. |
| `homes[].listing_id` | string | `"v489k0gmlrwjn"` | Homes.com listing identifier. |
| `homes[].photo_link` | string or null | `"https://images.homes.com/listings/115/3682633705-078384812/31-erwin-ct-nashville-tn-primaryphoto.jpg"` | Primary listing photo link. |
| `homes[].square_feet` | number or null | `4445` | Interior area in square feet. |
| `homes[].listing_link` | string | `"https://www.homes.com/property/31-erwin-ct-nashville-tn/h2jcnpevqszfd/"` | Homes.com listing page link. |
| `homes[].listing_agent` | string or null | `"Richard Bryan"` | Listing agent name. |
| `homes[].days_on_market` | integer or null |  | Days on market when shown. |

**Example input**

```json
{
  "location": "Nashville, TN",
  "max_price": 99999999,
  "min_price": 99000000
}
```

**Example output**

```json
{
  "homes": []
}
```

## Quick start

Call the API with a Fous API key (`FOUS_API_KEY`). To create one, turn on Developer mode in Fous Studio, then open Keys & connections → API keys (https://app.fous.com/keys).

```bash
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
: "${FOUS_API_KEY:?Set FOUS_API_KEY before running this example}"

curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 120 \
  -H "Authorization: Bearer $FOUS_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@homes-com",
  "visibility": "public",
  "operation": "search_homes",
  "version": 1,
  "input": {
    "location": "Nashville, TN",
    "min_beds": 2,
    "home_type": "condo",
    "max_price": 700000,
    "min_baths": 2,
    "min_price": 300000,
    "max_results": 20
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
# First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
import json
import os
import urllib.error
import urllib.request

api_key = os.environ.get("FOUS_API_KEY")
if not api_key:
    raise RuntimeError("Set FOUS_API_KEY before running this example")

body = json.loads("{\n  \"api\": \"@homes-com\",\n  \"visibility\": \"public\",\n  \"operation\": \"search_homes\",\n  \"version\": 1,\n  \"input\": {\n    \"location\": \"Nashville, TN\",\n    \"min_beds\": 2,\n    \"home_type\": \"condo\",\n    \"max_price\": 700000,\n    \"min_baths\": 2,\n    \"min_price\": 300000,\n    \"max_results\": 20\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=120) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
// First set your key: export FOUS_API_KEY='YOUR_FOUS_API_KEY'
const apiKey = process.env.FOUS_API_KEY;
if (!apiKey) throw new Error("Set FOUS_API_KEY before running this example");

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(120_000),
  body: JSON.stringify({
  "api": "@homes-com",
  "visibility": "public",
  "operation": "search_homes",
  "version": 1,
  "input": {
    "location": "Nashville, TN",
    "min_beds": 2,
    "home_type": "condo",
    "max_price": 700000,
    "min_baths": 2,
    "min_price": 300000,
    "max_results": 20
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

Or describe the data in plain language: send `{"api":"@homes-com","prompt":"Describe the data you need, with every detail"}` to the same URL. Fous fills in the input, runs the method that fits and returns only the fields you asked for; `data.route.calls[].request` is the exact call it made. Routing is free; the run costs the same.

## Use cases

- Compare home listings by location and price.
- Find homes that meet bedroom and bathroom criteria.
- Review listing details and brokerage information.
- Track days on market when shown.

## FAQ

### Is Fous affiliated with Homes.com?

No. Fous is not affiliated with Homes.com. This workflow reads the public homes.com website and returns its data.

### How much does it cost?

Each run costs 1 credit. With pay-as-you-go, a credit costs 1¢; monthly plans cost less per credit.

### Do I need a Homes.com account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from homes.com when you run it; repeating the same request within a day may return the saved result. Fous checks this workflow automatically; it last passed a check on Sep 30, 2026.

### What homes are for sale in a location?

Search homes returns homes for sale in site order for a city and state, neighborhood, or ZIP code.

### What is a home's price, address, and property type?

Search homes returns each listing's price, full address, and home type.

### How long has a home been on the market?

Search homes returns days on market when shown.

## Related

- [Realtor.com API](https://fous.com/workflows/realtor-com.md): Realtor.com returns home listings for sale, rent, or recently sold, property details and estimates, and local agent profiles; some fields or sold prices may be missing.
- [Zillow API](https://fous.com/workflows/zillow.md): Zillow provides homes for sale, rental listings, home details, estimates, and housing market figures; rental details, history, schools, estimates, and market figures may be missing or reflect different reporting dates.
- [Redfin API](https://fous.com/workflows/redfin.md): Redfin provides publicly listed homes, details, estimates, and latest area market figures with up to 12 months of sale prices; some data may be unavailable.
- [Apartments.com API](https://fous.com/workflows/apartments-com.md): Apartments.com returns U.S. apartments and homes matching location and optional filters, plus community details; rent and availability may be missing or change.
- [Domain.com.au API](https://fous.com/workflows/domain-com-au.md): Search Australian homes for sale, rent and recently sold on Domain.
- [Zoopla API](https://fous.com/workflows/zoopla.md): UK homes for sale and to rent.
- [Rightmove API](https://fous.com/workflows/rightmove.md): Rightmove searches UK homes for sale or rent and finds recent sold prices; searches return up to 100 listings, and area averages reflect returned properties only.
- [Cars.com API](https://fous.com/workflows/cars-com.md): Cars.com finds car listings by make, model, and U.S. ZIP code, and provides dealerships’ latest customer reviews when available.
- [All Real estate workflows](https://fous.com/workflows/category/real-estate)
