# U.S. Congress Bill Status (GovInfo) (`vespa-zzz/us-congress-bill-status`) Actor

Look up U.S. congressional bills and resolutions by number, discover recent GovInfo updates, and track legislative status changes.

- **URL**: https://apify.com/vespa-zzz/us-congress-bill-status.md
- **Developed by:** [Vespa ZZZ](https://apify.com/vespa-zzz) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## U.S. Congress Bill Status

Look up bills and resolutions, find recent GovInfo updates, or monitor changes in the legislative actions of a recurring set of measures. Use the dataset in legislative trackers and policy monitoring reports. The Actor processes public BILLSTATUS XML without an API key.

### Look up bills

```json
{
    "bills": ["119-hr-100", "119 S 5"],
    "includeActions": true,
    "includeSubjects": true
}
```

You can also use objects such as `{"congress":119,"type":"hr","number":100}`. Supported types are `hr`, `s`, `hjres`, `sjres`, `hconres`, `sconres`, `hres`, and `sres`. GovInfo coverage starts at the 108th Congress.

You can look up to 50 bills per run. A 50-bill run takes about two minutes for request spacing alone, plus GovInfo response times and any retries. If `maxItems` is unset, direct lookup can save all requested bills.

### Discover recent updates

```json
{
    "congress": 119,
    "billTypes": ["hr", "s"],
    "updatedSince": "2026-11-20",
    "maxItems": 5
}
```

Clear `bills` to use discovery. The Actor filters the BILLSTATUS sitemaps by their inclusive `lastmod` timestamps and processes the newest files first. Supply a UTC date or an ISO timestamp with a zone. Omit `billTypes` to search all eight types. A file update may reflect a metadata edit. `maxItems` limits output rows in both modes and bill XML downloads in discovery. In discovery, it defaults to 8 and accepts values up to 50.

### Monitor changes

```json
{
    "bills": ["119-hr-100", "119 S 5"],
    "onlyNew": true,
    "stateKey": "weekly-watchlist"
}
```

Use the same key on each run. The first run records each saved bill's action fingerprint in the named key-value store. Subsequent runs emit a bill when its latest action or action history changes. Title, sponsor count and display options do not affect the fingerprint. Discovery also uses GovInfo sitemap timestamps to skip files already checked for the same fingerprint. An unsaved row at the pay-per-event limit remains eligible on the next run if it matches the input. Schedule runs sharing a state key to run sequentially.

### Output

One row per bill saved to the default dataset. With the default display options, an example row is

```json
{
    "congress": 119,
    "billType": "hr",
    "number": 100,
    "title": "Protect the Gig Economy Act of 2025",
    "introducedDate": "2025-01-03",
    "sourceUpdatedAt": "2025-03-07T15:43:38Z",
    "latestAction": { "date": "2025-01-03", "text": "Referred to the House Committee on the Judiciary." },
    "committees": ["Judiciary Committee"],
    "policyArea": "Law",
    "laws": null,
    "cosponsorCount": null,
    "sourceUrl": "https://www.govinfo.gov/bulkdata/BILLSTATUS/119/hr/BILLSTATUS-119hr100.xml",
    "source": "GovInfo BILLSTATUS (U.S. Government Publishing Office)"
}
```

The Actor preserves official bill titles and legislative action text, including names that appear in those records. It replaces email addresses and phone numbers in that text with `[redacted]`. Committee names and legislative subject labels are filtered for recognized terms. Missing values are `null`. The Actor includes cosponsor counts where present and excludes sponsor and cosponsor details, bill summaries, and bill text.

`RUN_SUMMARY` in the default key-value store reports matches, bill downloads, HTTP attempts, saved and unchanged rows, missing bill identifiers, and whether the item or charge limit stopped output. Missing bill XML (HTTP 404) appears under `missingBills`. Unrecognized XML and upstream access failures fail the run with a message. GovInfo requests are sequential with at least 2.35 seconds after the previous response and up to three retries for timeouts, network errors, HTTP 429, or server errors. The Actor honors `Retry-After` within the overall request window, which grows from 90 seconds with the request count, and limits each XML response to 4 MiB.

### Data and attribution

Source data comes from the U.S. Government Publishing Office's GovInfo. Bill status data is compiled by the Library of Congress from House and Senate records. This Actor selects, reformats, and filters legislative metadata and is independently maintained. It is unaffiliated with GPO, the Library of Congress, or the U.S. Congress. GovInfo describes U.S. government works as generally in the public domain and notes that some government publications contain third-party material. [GovInfo policies](https://www.govinfo.gov/about/policies) · [BILLSTATUS bulk XML and documentation](https://www.govinfo.gov/features/featured-content/congressional-bill-status-bulk-xml) · [GovInfo sitemaps](https://www.govinfo.gov/sitemaps)

### 日本語

米国連邦議会の法案・決議を番号で照会し、GovInfo の更新一覧から最近更新された法案を探せます。`onlyNew` を有効にして同じ `stateKey` で実行すると、初回の保存後は審議経過が変わった法案だけを出力します。出典は米国政府出版局の GovInfo です。

# Actor input Schema

## `bills` (type: `array`):

Look up to 50 bills or resolutions by identifier. Use strings such as 119-hr-100 and 119 S 5, or objects with congress, type and number. For 50 bills, allow about two minutes for request spacing, plus response times and retries. Clear this list to discover recent updates.

## `congress` (type: `integer`):

Use with Updated since to discover bills. GovInfo coverage begins with the 108th Congress.

## `billTypes` (type: `array`):

Leave unset to search all eight bill and resolution types for the selected Congress.

## `updatedSince` (type: `string`):

Inclusive cutoff for GovInfo sitemap updates. Enter YYYY-MM-DD in UTC or an ISO timestamp with a time zone. Requires Congress number.

## `maxItems` (type: `integer`):

Limits output rows in both modes and bill XML downloads in discovery. If unset, direct lookup can save all requested bills and discovery processes up to 8 bills, newest GovInfo updates first.

## `includeActions` (type: `boolean`):

Include dates, action codes, official action text and chambers when available. The latest action is always included when available.

## `includeSubjects` (type: `boolean`):

Include legislative subject labels that pass the personal information filter.

## `onlyNew` (type: `boolean`):

On the first run, save the matching bills. On subsequent runs with the same state key, save bills whose legislative actions changed.

## `stateKey` (type: `string`):

Use the same key for recurring runs. Use separate keys for independent schedules.

## Actor input object example

```json
{
  "bills": [
    "119-hr-100",
    "119 S 5"
  ],
  "includeActions": false,
  "includeSubjects": false,
  "onlyNew": false,
  "stateKey": "default"
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `results` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "bills": [
        "119-hr-100",
        "119 S 5"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("vespa-zzz/us-congress-bill-status").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "bills": [
        "119-hr-100",
        "119 S 5",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("vespa-zzz/us-congress-bill-status").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "bills": [
    "119-hr-100",
    "119 S 5"
  ]
}' |
apify call vespa-zzz/us-congress-bill-status --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,vespa-zzz/us-congress-bill-status"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/xW1NyD9KZhE21dXln/builds/xMjBg2qlXwp3hr9o0/openapi.json
