# 2s.io US Senate Roll-Call Votes

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

Returns US Senate roll-call votes with vote totals and per-party breakdowns, filtered by congress, session, date range, result, or document name.

## Facts

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

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-9ee6c74f
```

Example prompt: Can you pull up all US Senate roll-call votes on H.R. 4499 from the 119th Congress and show me the yea/nay totals broken down by party?

## When to prefer this

Use this endpoint when you need structured, filterable US Senate roll-call vote data with per-party breakdowns — especially when you need to filter by specific Congress, session, date range, bill name, or vote result. Prefer this over scraping senate.gov directly since it provides pre-aggregated party-level tallies refreshed daily from official XML feeds.

## Known failure modes

- No records match the given filters — returns empty list
- Invalid date format for since/until — rejected by schema validation
- congress value out of range (must be 100–200) — schema validation error
- limit exceeds 100 — schema validation error
- Payment not included or rejected — 402 response requiring x402 payment
- document substring too short (min 2 chars) — schema validation error

## How this service works

US Senate roll-call votes, newest first by vote date. Each record includes congress + session + vote_number, vote question + result + title + majority requirement, vote date/time, document name (e.g., S. 5, H.R. 4499), document title, grand totals (yeas/nays/present/absent), AND per-party breakdown (D/R/I yea/nay/present/absent counts derived from member-level vote_cast). Filters (all optional, AND-combined): congress, session (1 or 2), result substring, document substring (e.g., 'S. 5'), since/until (vote_date), limit + offset. Locally aggregated from senate.gov XML feeds (refreshed daily). Public-domain US government records.

## Output

A paginated list of Senate roll-call votes, each including congress+session+vote_number, the vote question, result, title, majority requirement, vote date/time, document name and title, grand totals (yeas/nays/present/absent), and per-party (Democrat/Republican/Independent) breakdowns of yea/nay/present/absent counts.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "limit": 10,
   "session": 1,
   "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": {
      "limit": {
       "type": "integer",
       "default": 25,
       "maximum": 100,
       "minimum": 1,
       "description": "Max records (1-100). Default 25."
      },
      "since": {
       "type": "string",
       "description": "Earliest vote date (YYYY-MM-DD)."
      },
      "until": {
       "type": "string",
       "description": "Latest vote date (YYYY-MM-DD)."
      },
      "offset": {
       "type": "integer",
       "default": 0,
       "maximum": 100000,
       "minimum": 0,
       "description": "Offset for pagination. Default 0."
      },
      "result": {
       "type": "string",
       "maxLength": 60,
       "minLength": 2,
       "description": "Filter by vote result (case-insensitive substring). Examples: \"Agreed\", \"Rejected\", \"Cloture\"."
      },
      "session": {
       "type": "integer",
       "description": "Filter by session (1 = odd year, 2 = even year of a Congress)."
      },
      "congress": {
       "type": "integer",
       "maximum": 200,
       "minimum": 100,
       "description": "Filter by Congress number. The 119th Congress = 2025-2026."
      },
      "document": {
       "type": "string",
       "maxLength": 40,
       "minLength": 2,
       "description": "Filter by document name substring (case-insensitive on document_name). Examples: \"S. 5\", \"H.R. 4499\", \"H.R.\"."
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-9ee6c74f/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)
