# 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/tools/house-gov
- Handle: `@house-gov`
- Category: [Government](https://fous.com/tools/category/government)
- Source website: https://house.gov
- Last verified: Sep 29, 2026

## Methods

### Get my representatives

Operation `get_my_representatives`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

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

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_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.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

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=180) 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.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_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);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/house-gov`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `get_my_representatives`: Get my representatives. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-house-gov https://api.fous.com/mcp/tools/house-gov --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## 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

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this House.gov tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. 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. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified 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/tools/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/tools/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/tools/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/tools/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/tools/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/tools/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/tools/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/tools/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 tools](https://fous.com/tools/category/government)
