# Congress Member Lookup via Congress.gov API

> Congress Member Lookup via Congress.gov API is a paid API for AI agents from 2s.io, paid per call via x402, $0.0012/call, status unknown (last checked 2026-09-14).

Look up or search US Congress members by bioguide ID, congress number, state, district, or current-member status, returning full biographical and legislative data.

## Facts

- Endpoint: GET https://2s.io/api/gov/congress-member
- Price: $0.0012/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-e7da644b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pd5FELyMxJge4foxdM7-D

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-e7da644b
```

Example prompt: Can you pull up the full profile for Senator Markwayne Mullin — his bioguide ID is M001190 — including his party history, leadership roles, and how many bills he's sponsored?

## When to prefer this

Use this endpoint when you need authoritative, structured data about US Congress members — especially when you have a bioguide ID and need full biographical detail, or when filtering by congress session, state, and district to identify seated legislators. Prefer this over web scraping or general search when you need stable, canonical identifiers and structured legislative history. Best for civic apps, legislative research, constituent-lookup tools, or political data enrichment.

## Known failure modes

- Invalid bioguideId format returns 400 or empty result
- Unknown bioguideId returns 404 or empty member list
- Invalid state code returns empty results or 400
- District number out of range for given state returns empty results
- Congress number below 1 returns validation error
- Upstream Congress.gov API unavailable causes 502 or timeout
- Exceeding limit maximum of 250 returns validation error

## How this service works

Look up or search members of the US Congress via Library of Congress Congress.gov API. Pass bioguideId (e.g. M001190) to fetch one member (full bio, terms, party history, leadership roles, sponsored + cosponsored legislation counts, official website, address). Or filter by congress + state + district, with currentMember=true to limit to seated members. Bioguide IDs are stable across history and are the canonical Congress-member identifier.

## Output

Returns a Congress member record with full biography, party affiliation history, terms served, leadership roles held, counts of sponsored and cosponsored legislation, official website URL, and office address. When filtering (no bioguideId), returns a paginated list of matching members with the same field set.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "limit": 10,
   "state": "CA",
   "currentMember": true
  }
 }
}
```

## 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": {
     "properties": {
      "limit": {
       "type": "integer",
       "default": 25,
       "maximum": 250,
       "minimum": 1
      },
      "state": {
       "type": "string",
       "description": "2-letter state code, e.g. CA."
      },
      "offset": {
       "type": "integer",
       "default": 0,
       "minimum": 0
      },
      "congress": {
       "type": "integer",
       "minimum": 1,
       "description": "Filter list by Congress number."
      },
      "district": {
       "type": "integer",
       "minimum": 0
      },
      "bioguideId": {
       "type": "string",
       "description": "Member bioguide ID (1 uppercase letter + 6 digits)."
      },
      "currentMember": {
       "type": "boolean",
       "default": true
      }
     }
    }
   }
  }
 }
}
```

## More

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