# US House of Representatives Roll-Call Votes API

> US House of Representatives Roll-Call Votes API is a paid API for AI agents from 2s.io, paid per call via x402, $0.0024/call, status unknown (last checked 2026-09-14).

Returns paginated US House roll-call vote records with grand totals and per-party breakdowns, filtered by year, congress, bill, result, or date range

## Facts

- Endpoint: GET https://2s.io/api/gov/house-votes
- Price: $0.0024/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-74620c2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_2gTScswVEi_O45a55NN4a

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability 2s-io-74620c2d
```

Example prompt: Can you pull the most recent House roll-call votes from the 119th Congress in 2025 that resulted in 'Passed', and show me the Republican and Democratic breakdown for each one? Give me the latest 25.

## When to prefer this

Use this endpoint when you need structured, filterable US House roll-call vote data with per-party breakdowns aggregated from official clerk.house.gov XML feeds. Prefer this over scraping congress.gov or clerk.house.gov directly since it offers server-side filtering by bill, date range, result, year, and congress, plus daily-refreshed data and paginated JSON output ready for agent consumption.

## Known failure modes

- Invalid date format for since/until returns a validation error
- Bill substring too short (under 2 chars) returns a schema validation error
- Year out of range (before 1990 or after 2099) returns a validation error
- Congress number out of range returns a validation error
- Offset beyond available records returns an empty result set
- Payment not included or insufficient returns HTTP 402

## How this service works

US House of Representatives roll-call votes, newest first by action date. Each record includes year + roll number, congress/session, vote question + type + result, action date/time, bill reference (legis_num), description, grand totals (yea/nay/present/not-voting), AND per-party breakdown (Republican/Democratic/Independent yea/nay/present/not-voting counts). Filters (all optional, AND-combined): year, congress, result substring, bill substring (legis_num ILIKE), since/until (action_date), limit + offset. Locally aggregated from clerk.house.gov XML feeds (refreshed daily by cron). Public-domain US government records.

## Output

A paginated list of House roll-call vote records, each including the roll number, congress and session, vote question, vote type, vote result, action date and time, bill reference (legis_num), description, grand totals (yea/nay/present/not-voting), and per-party counts for Republican, Democratic, and Independent members.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "year": 2025,
   "limit": 25,
   "offset": 0,
   "result": "Passed",
   "congress": 119
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "bill": {
       "type": "string",
       "maxLength": 40,
       "minLength": 2,
       "description": "Filter by bill reference (case-insensitive substring on legis_num). Examples: \"H R 498\", \"H R 49\", \"S 1\"."
      },
      "year": {
       "type": "integer",
       "maximum": 2099,
       "minimum": 1990,
       "description": "Filter by year. Example: 2025."
      },
      "limit": {
       "type": "integer",
       "default": 25,
       "maximum": 100,
       "minimum": 1,
       "description": "Max records (1-100). Default 25."
      },
      "since": {
       "type": "string",
       "description": "Earliest action date (YYYY-MM-DD)."
      },
      "until": {
       "type": "string",
       "description": "Latest action date (YYYY-MM-DD)."
      },
      "offset": {
       "type": "integer",
       "default": 0,
       "maximum": 100000,
       "minimum": 0,
       "description": "Offset for pagination. Default 0."
      },
      "result": {
       "type": "string",
       "maxLength": 40,
       "minLength": 2,
       "description": "Filter by vote result (case-insensitive substring). Examples: \"Passed\", \"Failed\", \"Agreed\"."
      },
      "congress": {
       "type": "integer",
       "maximum": 200,
       "minimum": 100,
       "description": "Filter by Congress number. The 119th Congress = 2025-2026."
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-74620c2d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
