# US Congress (House) Stock Trades Scraper (`jiaqian/us-house-stock-trades`) Actor

Every stock trade disclosed by members of the US House of Representatives (Pelosi and all others), parsed from official Periodic Transaction Report PDFs into clean JSON/CSV: ticker, buy/sell, dates, amount range, owner, party, state.

- **URL**: https://apify.com/jiaqian/us-house-stock-trades.md
- **Developed by:** [JIAQIAN YANG](https://apify.com/jiaqian) (community)
- **Categories:** News, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 trades

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 (House) Stock Trades Scraper

Get **every stock trade disclosed by members of the US House of Representatives** — Nancy Pelosi and all other representatives — as clean, structured data. The actor reads the official [House Clerk financial disclosure](https://disclosures-clerk.house.gov/FinancialDisclosure) index, downloads each electronically filed **Periodic Transaction Report (PTR)** PDF and parses every transaction line.

No API key, no login, no third-party data vendor: the data comes straight from the official source.

### What you get

One row per transaction:

| Field | Example |
|---|---|
| `member` | Nancy Pelosi |
| `party`, `state`, `district` | Democrat, CA, 11 |
| `ticker` | NVDA |
| `asset` | NVIDIA Corporation - Common Stock (NVDA) |
| `asset_type` | ST (stock), OP (option), ... |
| `transaction_type` | buy / sell / sell_partial / exchange |
| `transaction_date` | 2026-07-24 |
| `notification_date`, `filing_date` | 2026-08-01, 2026-08-21 |
| `amount_range`, `amount_min`, `amount_max` | $1,000,001 - $5,000,000 |
| `owner` | self / spouse / joint / dependent child |
| `filing_url` | link to the original PDF |
| `bioguide_id` | P000197 (for joining with other congressional datasets) |

Export as JSON, CSV, Excel, or pull it through the Apify API.

### Use cases

- Track what **Pelosi** and other members are buying and selling
- Build "congress trading" alerts, dashboards, newsletters or Telegram/Discord bots
- Backtest copy-trading strategies on congressional trades
- Journalism and research on STOCK Act disclosures

### Input

- **Filed in the last N days** (default 30) — for daily/weekly monitoring. Schedule the actor to run every day and you get new disclosures automatically.
- **Full years** — backfill whole years (e.g. `[2024, 2025, 2026]`).
- **Members** — filter by name, e.g. `["Pelosi", "Gottheimer"]`. Filtering happens before PDFs are downloaded, so it's fast.
- **Tickers** — only trades in specific stocks.
- **Transaction types**, **Only rows with a ticker**, **Max filings**.

### Notes

- Members must disclose trades within 45 days, so recent trades can still appear weeks later. Running with `daysBack` = 7 daily is a good monitoring setup.
- Amounts are disclosed only as ranges — that's how the law works.
- Paper (scanned) filings are skipped; nearly all filings today are electronic.
- Senate trades are not included (the Senate eFD site requires accepting terms per session).

### Also see

Chinese-language website built on the same data: [stock.easyllms.com](https://stock.easyllms.com/congress) (美股大佬持仓).

# Actor input Schema

## `daysBack` (type: `integer`):

Only filings submitted in the last N days. Ignored when Years is set.

## `years` (type: `array`):

Download every filing of these years instead, e.g. 2025, 2026. Electronic filings exist from 2013 onwards.

## `members` (type: `array`):

Only these members (case-insensitive name match), e.g. "Pelosi", "Josh Gottheimer". Empty = all members.

## `tickers` (type: `array`):

Only trades in these tickers, e.g. NVDA, AAPL. Empty = all.

## `transactionTypes` (type: `array`):

buy, sell, sell_partial, exchange

## `stocksOnly` (type: `boolean`):

Skip bonds, funds and other assets without a ticker symbol.

## `maxFilings` (type: `integer`):

Safety limit (newest first). One filing can contain many trades.

## Actor input object example

```json
{
  "daysBack": 30,
  "years": [],
  "members": [
    "Pelosi"
  ],
  "transactionTypes": [
    "buy",
    "sell",
    "sell_partial",
    "exchange"
  ],
  "stocksOnly": true,
  "maxFilings": 1000
}
```

# Actor output Schema

## `trades` (type: `string`):

All parsed transactions (table view).

## `tradesJson` (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 = {
    "years": [],
    "members": [
        "Pelosi"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("jiaqian/us-house-stock-trades").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 = {
    "years": [],
    "members": ["Pelosi"],
}

# Run the Actor and wait for it to finish
run = client.actor("jiaqian/us-house-stock-trades").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 '{
  "years": [],
  "members": [
    "Pelosi"
  ]
}' |
apify call jiaqian/us-house-stock-trades --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,jiaqian/us-house-stock-trades"
        }
    }
}
```

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/eT0cFJ2SifF6IVvR0/builds/bxc0bYbb85V8BzRgI/openapi.json
