# House.gov API

> House.gov returns U.S. House representatives and senators for an address or ZIP code, available as a workflow and API.

House.gov, also called the U.S. House of Representatives, returns the House representative and both senators for a U.S. ZIP code or street address. Get my representatives needs a ZIP code or full street address and returns names, parties, office contacts, photos, state, and congressional district. If a ZIP code covers multiple districts, the workflow returns every possible representative and explains the ambiguity.

- Page: https://fous.com/workflows/house-gov
- Handle: `@house-gov`
- Category: [Government](https://fous.com/workflows/category/government)
- Source website: https://house.gov
- Last verified: Sep 29, 2026
- Fous is not affiliated with House.gov.

## Methods

### Get my representatives

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

Find the current House representative and both senators for a US ZIP code or street address, with office contacts and photos. A ZIP covering several districts returns every possible representative until an address identifies one.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `location` | string | yes | `"10002"` | US ZIP code or full street address, for example 10001 or 350 5th Ave, New York, NY 10118. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "location"
  ],
  "properties": {
    "location": {
      "type": "string",
      "description": "US ZIP code or full street address, for example 10001 or 350 5th Ave, New York, NY 10118.",
      "examples": [
        "10002",
        "10001",
        "200 E Broadway, New York, NY 10002"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "location": "10002"
    },
    {
      "location": "10001"
    },
    {
      "location": "200 E Broadway, New York, NY 10002"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `note` | string or null | `"This ZIP code spans multiple congressional districts. A street address is needed to choose one representative."` | Explains when a ZIP covers multiple districts. |
| `state` | string | `"New York"` | State name. |
| `senators` | array |  |  |
| `senators[].name` | string | `"Kirsten E. Gillibrand"` | Member name. |
| `senators[].party` | string | `"Democrat"` | Political party. |
| `senators[].phone` | string or null | `"(202) 224-4451"` |  |
| `senators[].website` | string or null | `"https://www.gillibrand.senate.gov"` |  |
| `senators[].page_link` | string or null | `"https://www.gillibrand.senate.gov"` |  |
| `senators[].photo_link` | string or null | `"https://bioguide.congress.gov/bioguide/photo/G/G000555.jpg"` |  |
| `senators[].office_address` | string or null | `"478 Russell Senate Office Building Washington DC 20510"` |  |
| `representatives` | array |  |  |
| `representatives[].name` | string | `"Daniel S. Goldman"` | Member name. |
| `representatives[].party` | string | `"Democrat"` | Political party. |
| `representatives[].phone` | string or null | `"(202) 225-7944"` |  |
| `representatives[].website` | string or null | `"https://goldman.house.gov"` |  |
| `representatives[].district` | string | `"New York's 10th district"` | Congressional district in words. |
| `representatives[].page_link` | string or null | `"https://goldman.house.gov"` |  |
| `representatives[].photo_link` | string or null | `"https://ziplook.house.gov/zip/pictures/ny10_goldman.jpg"` |  |
| `representatives[].office_address` | string or null | `"245 Cannon House Office Building, Washington, DC 20515"` |  |
| `congressional_district` | string or null | `"New York's 12th district"` | The selected district, or null when a ZIP spans districts. |

**Example input**

```json
{
  "location": "10002"
}
```

**Example output**

```json
{
  "note": "This ZIP code spans multiple congressional districts. A street address is needed to choose one representative.",
  "state": "New York",
  "senators": [
    {
      "name": "Kirsten E. Gillibrand",
      "party": "Democrat",
      "phone": "(202) 224-4451",
      "website": "https://www.gillibrand.senate.gov",
      "page_link": "https://www.gillibrand.senate.gov",
      "photo_link": "https://bioguide.congress.gov/bioguide/photo/G/G000555.jpg",
      "office_address": "478 Russell Senate Office Building Washington DC 20510"
    },
    {
      "name": "Charles E. Schumer",
      "party": "Democrat",
      "phone": "(202) 224-6542",
      "website": "https://www.schumer.senate.gov/",
      "page_link": "https://www.schumer.senate.gov/",
      "photo_link": "https://bioguide.congress.gov/bioguide/photo/S/S000148.jpg",
      "office_address": "322 Hart Senate Office Building Washington DC 20510"
    }
  ],
  "representatives": [
    {
      "name": "Daniel S. Goldman",
      "party": "Democrat",
      "phone": "(202) 225-7944",
      "website": "https://goldman.house.gov",
      "district": "New York's 10th district",
      "page_link": "https://goldman.house.gov",
      "photo_link": "https://ziplook.house.gov/zip/pictures/ny10_goldman.jpg",
      "office_address": "245 Cannon House Office Building, Washington, DC 20515"
    },
    {
      "name": "Adriano Espaillat",
      "party": "Democrat",
      "phone": "(202) 225-4365",
      "website": "https://espaillat.house.gov",
      "district": "New York's 13th district",
      "page_link": "https://espaillat.house.gov",
      "photo_link": "https://ziplook.house.gov/zip/pictures/ny13_espaillat.jpg",
      "office_address": "2332 Rayburn House Office Building, Washington, DC 20515"
    }
  ],
  "congressional_district": null
}
```

## 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": "@house-gov",
  "visibility": "public",
  "operation": "get_my_representatives",
  "version": 1,
  "input": {
    "location": "10002"
  },
  "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\": \"@house-gov\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_my_representatives\",\n  \"version\": 1,\n  \"input\": {\n    \"location\": \"10002\"\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": "@house-gov",
  "visibility": "public",
  "operation": "get_my_representatives",
  "version": 1,
  "input": {
    "location": "10002"
  },
  "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":"@house-gov","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

- Find your House representative and senators by location
- Collect office phone numbers and addresses for constituent outreach
- Identify a ZIP code’s possible congressional districts
- Gather member names, parties, websites, and photos

## FAQ

### Is Fous affiliated with House.gov?

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

No. You only need a Fous account.

### How current is the data?

Fous gets the data from house.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.

### Who represents a particular ZIP code or address?

Get my representatives returns the House representative and both senators for the location.

### What are my representatives’ office contacts?

Get my representatives returns phone numbers, websites, and office addresses for the members it finds.

### Can one ZIP code have multiple possible representatives?

Yes. Get my representatives returns every possible representative when a ZIP code spans districts and explains why.

## Related

- [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.
- [Congress.gov API](https://fous.com/workflows/congress-gov.md): Congress.gov returns federal bills and resolutions matching topic, Congress, status, or chamber, and provides an individual bill’s status, summary, titles, actions, and related bills; summaries may be unavailable.
- [USPS API](https://fous.com/workflows/usps.md): USPS provides latest available package tracking, standardized U.S. addresses with ZIP+4, recommended cities for five-digit ZIP Codes, and estimated domestic postage and delivery dates.
- [Zippopotam.us API](https://fous.com/workflows/zippopotam-us.md): Zippopotam.us returns places, regions and coordinates for postal codes in supported countries, and finds postal codes, places and coordinates by town and region.
- [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.
- [Companies House API](https://fous.com/workflows/companies-house.md): Companies House returns UK public-register company details, officers, people with significant control and recent filings; records may be incomplete, and ceased entries are optional.
- [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.
- [All Government workflows](https://fous.com/workflows/category/government)
