# 🏛️ Congress Stock Trades Scraper — Live Disclosures (`hipersoft/congress-trades-scraper`) Actor

Scrape U.S. Congress members' stock trades & financial disclosures: member, ticker, buy/sell, amount range and dates. One clean row per trade or filing as JSON, CSV or Excel.

- **URL**: https://apify.com/hipersoft/congress-trades-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0015 / item scraped

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 🏛️ Congress Stock Trades Scraper — Live Disclosures

Track **U.S. Congress members' stock trades and financial disclosures** and export clean, structured data. Get one tidy row per **trade** — member, ticker, buy or sell, amount range, and dates — or one row per **filing**, as JSON, CSV or Excel.

Perfect for investors, journalists, researchers, fintech builders and anyone who wants to follow congressional trading activity without copy-pasting from documents.

### What you can scrape

- **Individual trades** — every reported stock transaction: the member who traded, the asset and its ticker, whether it was a **purchase, sale or exchange**, the disclosed **amount range**, the transaction date and the notification date.
- **Disclosure filings** — the full index of financial-disclosure filings: member, state and district, filing type, filing date and a direct link to the source document.
- **Filter by member** — narrow any run to a single representative by last name.
- **Multiple years** — pull one year or several in a single run.

### Modes

Pick a **mode** in the input:

| Mode | What it does |
| --- | --- |
| `transactions` | One row per individual trade, with member, ticker, buy/sell, amount range and dates. |
| `filings` | One row per disclosure filing from the index (faster, no per-trade breakdown). |

### Example input

Latest congressional stock trades:

```json
{
  "mode": "transactions",
  "years": [2025],
  "maxItems": 200
}
```

Every filing for one member:

```json
{
  "mode": "filings",
  "years": [2025],
  "member": "Greene",
  "filingTypes": ["all"]
}
```

### Example output (a single trade)

```json
{
  "memberName": "Hon. Marjorie Taylor Greene",
  "state": "GA",
  "district": "14",
  "filingTypeLabel": "Periodic Transaction Report",
  "filingDate": "2/24/2025",
  "docId": "20026791",
  "owner": null,
  "assetName": "Apple Inc. - Common Stock",
  "ticker": "AAPL",
  "assetTypeCode": "ST",
  "transactionType": "Purchase",
  "transactionDate": "02/12/2025",
  "notificationDate": "02/13/2025",
  "amountRange": "$1,001 - $15,000",
  "amountMin": 1001,
  "amountMax": 15000,
  "capitalGainsOver200": null,
  "pdfUrl": "https://disclosures-clerk.house.gov/public_disc/ptr-pdfs/2025/20026791.pdf"
}
```

### Input reference

| Field | Type | Description |
| --- | --- | --- |
| `mode` | string | `transactions` (one row per trade) or `filings` (one row per disclosure). |
| `years` | array | Which disclosure years to collect, e.g. `[2025]` or `[2025, 2024]`. |
| `filingTypes` | array | Filing types to include. `["P"]` = the stock-trade reports (default). Use `["all"]` for every type. |
| `member` | string | Optional. Only include filings whose member last name contains this text. |
| `maxItems` | integer | Max rows to collect (0 = no limit). |

### Output & export

Every run writes to a dataset you can download as **JSON, CSV, Excel, XML or RSS**, or pull through the Apify API. Each row is flat and typed, includes the member and a link to the underlying document, and numeric `amountMin` / `amountMax` fields make the disclosed value ranges easy to sort and filter.

### Use cases

- **Investing signals** — watch what senators and representatives are buying and selling.
- **Newsrooms** — surface notable trades by member, ticker or date for reporting.
- **Research & compliance** — build datasets on congressional trading trends over time.
- **Alerts & dashboards** — feed a spreadsheet, database or BI tool on a schedule.

### FAQ

**What data do I get?** Individual congressional stock trades (member, ticker, buy/sell, amount range, dates) or the full list of disclosure filings.

**Can I follow one member?** Yes — set `member` to their last name.

**Can I collect several years at once?** Yes — list them in `years`.

**What formats can I export?** JSON, CSV, Excel, XML and RSS, plus the Apify API and integrations.

**How do I limit results?** Set `maxItems`. Use `0` to collect everything the run returns.

# Actor input Schema

## `mode` (type: `string`):

transactions = one row per individual stock trade (parsed from Periodic Transaction Reports). filings = one row per disclosure filing from the index (faster, no trade breakdown).

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

Which disclosure years to collect (e.g. 2025, 2024).

## `filingTypes` (type: `array`):

Which filing types to include. "P" = Periodic Transaction Reports (the stock trades). Use \["all"] to include every filing type.

## `member` (type: `string`):

Only include filings whose member last name contains this text (case-insensitive). Leave empty for all members.

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

Maximum number of rows to collect in this run (0 = no limit).

## Actor input object example

```json
{
  "mode": "transactions",
  "years": [
    "2025"
  ],
  "filingTypes": [
    "P"
  ],
  "maxItems": 200
}
```

# Actor output Schema

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

The results as dataset items.

# 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": [
        "2025"
    ],
    "filingTypes": [
        "P"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hipersoft/congress-trades-scraper").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": ["2025"],
    "filingTypes": ["P"],
}

# Run the Actor and wait for it to finish
run = client.actor("hipersoft/congress-trades-scraper").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": [
    "2025"
  ],
  "filingTypes": [
    "P"
  ]
}' |
apify call hipersoft/congress-trades-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,hipersoft/congress-trades-scraper"
        }
    }
}

```

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/pD3GB1PUUZNyk8aYm/builds/yqA0uUiusmjV8SKZl/openapi.json
