# HUD API

> HUD returns fair market rent data by location and fiscal year, available as a workflow and API.

HUD, also called HUD USER, returns fair market rents by county, HUD metro area, or ZIP code. Get fair market rent returns monthly rents by bedroom count and applicable ZIP-level rents; provide a location and optionally a fiscal year.

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

## Methods

### Get fair market rent

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

Get HUD Fair Market Rents for a county, metro area, or ZIP code and fiscal year. ZIP rents are included only where HUD says Small Area FMRs apply.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `year` | integer | no | `2026` | Fiscal year, such as 2026. Defaults to the current fiscal year. |
| `location` | string | yes | `"Travis County, TX"` | County and state, HUD metro area, or five-digit ZIP code, such as Travis County, TX or 78701. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "location"
  ],
  "properties": {
    "year": {
      "type": "integer",
      "description": "Fiscal year, such as 2026. Defaults to the current fiscal year.",
      "examples": [
        2026,
        2027
      ]
    },
    "location": {
      "type": "string",
      "description": "County and state, HUD metro area, or five-digit ZIP code, such as Travis County, TX or 78701.",
      "examples": [
        "Travis County, TX",
        "78701",
        "30303"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "location": "Travis County, TX"
    },
    {
      "location": "78701"
    },
    {
      "year": 2026,
      "location": "30303"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `state` | string or null | `"TX"` | State abbreviation or abbreviations for the HUD rent area. |
| `currency` | string | `"USD"` | USD |
| `fiscal_year` | integer | `2026` |  |
| `studio_rent` | integer | `1474` | Monthly rent in USD. |
| `hud_area_name` | string | `"Austin-Round Rock-San Marcos, TX MSA"` | HUD rent area name. |
| `zip_studio_rent` | integer or null | `1760` | Monthly ZIP-level rent in USD when Small Area FMRs apply to the given ZIP. |
| `one_bedroom_rent` | integer | `1562` | Monthly rent in USD. |
| `two_bedroom_rent` | integer | `1852` | Monthly rent in USD. |
| `four_bedroom_rent` | integer | `2760` | Monthly rent in USD. |
| `three_bedroom_rent` | integer | `2347` | Monthly rent in USD. |
| `zip_one_bedroom_rent` | integer or null | `1840` | Monthly ZIP-level rent in USD when Small Area FMRs apply to the given ZIP. |
| `zip_two_bedroom_rent` | integer or null | `2020` | Monthly ZIP-level rent in USD when Small Area FMRs apply to the given ZIP. |
| `small_area_fmrs_apply` | boolean | `false` | Whether HUD says this rent area uses Small Area FMRs for housing vouchers. |
| `zip_four_bedroom_rent` | integer or null | `2890` | Monthly ZIP-level rent in USD when Small Area FMRs apply to the given ZIP. |
| `zip_three_bedroom_rent` | integer or null | `2420` | Monthly ZIP-level rent in USD when Small Area FMRs apply to the given ZIP. |
| `documentation_page_link` | string | `"https://www.huduser.gov/portal/datasets/fmr/fmrs/FY2026_code/2026summary.odn?year=2026&fmrtype=Final&selection_type=cou` | HUD documentation for the rent area. |

**Example input**

```json
{
  "location": "Travis County, TX"
}
```

**Example output**

```json
{
  "state": "TX",
  "currency": "USD",
  "fiscal_year": 2026,
  "studio_rent": 1474,
  "hud_area_name": "Austin-Round Rock-San Marcos, TX MSA",
  "zip_studio_rent": null,
  "one_bedroom_rent": 1562,
  "two_bedroom_rent": 1852,
  "four_bedroom_rent": 2760,
  "three_bedroom_rent": 2347,
  "zip_one_bedroom_rent": null,
  "zip_two_bedroom_rent": null,
  "small_area_fmrs_apply": false,
  "zip_four_bedroom_rent": null,
  "zip_three_bedroom_rent": null,
  "documentation_page_link": "https://www.huduser.gov/portal/datasets/fmr/fmrs/FY2026_code/2026summary.odn?year=2026&fmrtype=Final&selection_type=county&fips=4845399999"
}
```

## 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": "@hud",
  "visibility": "public",
  "operation": "get_fair_market_rent",
  "version": 1,
  "input": {
    "location": "Travis County, TX"
  },
  "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\": \"@hud\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_fair_market_rent\",\n  \"version\": 1,\n  \"input\": {\n    \"location\": \"Travis County, TX\"\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": "@hud",
  "visibility": "public",
  "operation": "get_fair_market_rent",
  "version": 1,
  "input": {
    "location": "Travis County, TX"
  },
  "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":"@hud","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 fair market rents across locations
- Review monthly rents by bedroom count
- Check ZIP-level rents where Small Area FMRs apply
- Support housing voucher rent research

## FAQ

### Is Fous affiliated with HUD?

No. Fous is not affiliated with HUD. This workflow reads the public huduser.gov 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 HUD account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from huduser.gov 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 29, 2026.

### What are the fair market rents for a location?

Get fair market rent returns monthly rents by bedroom count for a county, metro area, or ZIP code and fiscal year.

### Does a ZIP code use Small Area FMRs?

Get fair market rent indicates whether Small Area FMRs apply and returns ZIP-level rents where applicable.

## Related

- [Zumper API](https://fous.com/workflows/zumper.md): Zumper searches rental homes and apartments with filters and reports rolling 30-day city median rents, changes, and rankings where available.
- [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.
- [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.
- [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.
- [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.
- [Homes.com API](https://fous.com/workflows/homes-com.md): Search homes for sale in the United States.
- [FEMA API](https://fous.com/workflows/fema.md): FEMA provides public U.S. flood maps and disaster information, including approximate address-based flood risk details and federal disaster declarations by state or county.
- [US Census Bureau API](https://fous.com/workflows/us-census-bureau.md): US Census Bureau returns statistics from varying Census years, population estimates through July 1, and address geographies using Census vintages that may differ from representation.
- [All Real estate workflows](https://fous.com/workflows/category/real-estate)
