# US Congress Legislation Tracker (`pushbuild/us-legislation-tracker`) Actor

Track new and moving federal bills and resolutions in Congress: status, sponsor, cosponsors, committees, policy area, subjects, latest action, committee reports, CRS summary. Filter by keyword, committee, party, state and status. Official GovInfo data.

- **URL**: https://apify.com/pushbuild/us-legislation-tracker.md
- **Developed by:** [Pushbuild Data](https://apify.com/pushbuild) (community)
- **Categories:** Business, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 85.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 bills

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

## US Congress Legislation Tracker

Search and track every federal bill and resolution of the current and previous Congress, from the official GovInfo Bill Status data (the same data behind Congress.gov). Rebuilt daily; queries run against the whole corpus in about a second.

### What you get

`billId`, `congress`, `billType`, `number`, `title`, `introducedDate`, `originChamber`, `status` (Introduced, Reported by committee, Passed House/Senate/both chambers, Presented to President, Became law), `sponsor`, `sponsorParty`, `sponsorState`, `cosponsorsCount`, `committees`, `policyArea`, `subjects`, `latestActionDate`, `latestAction`, `actionsCount`, `laws`, `committeeReports`, `cboCostEstimates`, `summary` (CRS), `relatedBills` (billId and relationship, e.g. Identical bill, Procedurally-related), `companionBillIds` (identical bills in the other chamber), `textVersions` (type, date, GovInfo XML url), `actions` (full history, with includeActions), `updateDate`, `url` (Congress.gov).

### Inputs

- **query**: words matched against title, policy area, subjects and CRS summary; set **regex** for a regular expression (e.g. `newborn|CLIA|\\bLDTs?\\b`).
- **billIds**: specific bills, e.g. `hr2286`, `S. 1031`.
- **updatedSince**, **actionSince**, **introducedFrom/To**: date filters (empty = all bills).
- **committee, policyArea, sponsorParty, sponsorState, statuses, billTypes, congress** (number or `all`), **sort**, **includeActions**, **maxItems**.
- **dataset**: `sources` returns build health.

### Examples

New or moving financial-services bills this week:

```json
{"committee": "Financial Services", "actionSince": "2026-10-28"}
```

Bills that passed a chamber since September:

```json
{"updatedSince": "2026-09-01", "statuses": ["Passed House", "Passed Senate", "Passed both chambers", "Became law"]}
```

### Notes

GovInfo refreshes bill status files several times a day. State legislatures are not included yet.

# Actor input Schema

## `query` (type: `string`):

Words that must all appear in the title, policy area, subjects or CRS summary, e.g. genetic privacy. With regex on, a case-insensitive regular expression, e.g. newborn|CLIA|\bLDTs?\b.

## `regex` (type: `boolean`):

Treat query as a regular expression (RE2 syntax).

## `billIds` (type: `array`):

Specific bills, e.g. hr2286, S. 1031, hr1031-118. Congress defaults to the current one.

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

Bills with any change (new action, text, summary, cosponsor) since this date or timestamp. Empty = all bills.

## `actionSince` (type: `string`):

Bills whose latest action is on or after this date.

## `introducedFrom` (type: `string`):

Introduced on or after this date.

## `introducedTo` (type: `string`):

Introduced on or before this date.

## `congress` (type: `string`):

Congress number, e.g. 119 or 118, or all. Default: current.

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

Which kinds of measures to include. Empty = all, including simple resolutions.

## `committee` (type: `string`):

Only bills referred to a committee whose name contains this text, e.g. Financial Services, Banking, Energy.

## `policyArea` (type: `string`):

Only bills whose CRS policy area contains this text, e.g. Finance and Financial Sector, Taxation, Health.

## `sponsorParty` (type: `string`):

Party of the primary sponsor.

## `sponsorState` (type: `string`):

Two-letter state of the primary sponsor, e.g. TX.

## `statuses` (type: `array`):

Only bills at these stages. Empty = all.

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

Maximum bills to return.

## `sort` (type: `string`):

Order of results.

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

Add the full action history (date, text, type, code) to each bill.

## `dataset` (type: `string`):

sources returns build health: run time, counts, newest update.

## Actor input object example

```json
{
  "query": "",
  "regex": false,
  "sponsorParty": "any",
  "maxItems": 200,
  "sort": "latestAction",
  "includeActions": false,
  "dataset": "bills"
}
```

# Actor output Schema

## `results` (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 = {
    "query": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("pushbuild/us-legislation-tracker").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 = { "query": "" }

# Run the Actor and wait for it to finish
run = client.actor("pushbuild/us-legislation-tracker").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 '{
  "query": ""
}' |
apify call pushbuild/us-legislation-tracker --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pushbuild/us-legislation-tracker"
        }
    }
}
```

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/XgLsvHLiRlyndeZ5K/builds/Sw0qkgDqobD5yIAVq/openapi.json
