# Congressional Intelligence API (`firmhound/congressional-intelligence-api`) Actor

Senate trades, lobbying disclosures, and Federal Register data from Firmhound. Free to run with sample data -- live data needs a Firmhound key ($49/mo, 14-day trial, no card required).

- **URL**: https://apify.com/firmhound/congressional-intelligence-api.md
- **Developed by:** [LinDon Harris](https://apify.com/firmhound) (community)
- **Categories:** Business, Lead generation
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.00 / 1,000 congressional trade records

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?

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

## Congressional Intelligence API

Pull structured congressional intelligence data into an Apify dataset: senate
stock trade alerts, federal lobbying disclosures, Federal Register rules and
notices, and a cross-joined view matching trades against lobbying and rules
touching the same tickers or issue areas. This Actor is a thin, pass-through
wrapper around Firmhound's live Congressional Intelligence API -- it fetches
one feed, paginates until `maxItems` is reached, and pushes the raw API rows
to the dataset unchanged.

This Actor is BYOK (bring your own key) but does not require one to try. Hit
Run with no input and it pushes a small set of clearly-labeled sample rows so
you can see the output shape immediately. Add your own Firmhound API key to
pull live data.

### Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `apiKey` | string (secret) | no | -- | Your Firmhound Congressional Intelligence API key (`fp_` prefix). Leave blank for a sample-data preview run. |
| `feed` | string (select) | no | `trades` | One of `trades`, `lobbying`, `rules`, `joins`. |
| `limit` | integer | no | `50` | Page size requested per API call (max 200). |
| `since` | string | no | -- | ISO 8601 timestamp; only return records created at or after this time. |
| `maxItems` | integer | no | `200` | Stop paginating after this many total records are fetched. |

### Output

Each run produces one Apify dataset. Row shape depends on the selected feed:

- **`trades`, `lobbying`, `rules`**: `{ id, title, metadata, created_at }`.
  `metadata` carries the feed-specific fields -- senator/filer name, ticker,
  transaction type, and dollar-range amount for trades; registrant/client
  name, lobbying amount, and issue areas for lobbying; RIN, agency, and a
  link to full text for rules.
- **`joins`**: flat cross-join rows (trade fields plus nullable `lobbying`
  and `rules` arrays), not the `{id,title,metadata,created_at}` shape used
  by the other three feeds. Only `scale`-tier subscriptions get full
  pagination on this feed -- other tiers receive a fixed 3-row preview per
  run (the Actor logs a notice and does not treat this as an error).

### Getting an API key

Live data requires an active Congressional Intelligence API (`congressapi`)
subscription -- this Actor does not include one. Start a 14-day trial (no
credit card required) at [senatortrades.com/pricing](https://senatortrades.com/pricing),
then paste your key into the `apiKey` input field.

# Actor input Schema

## `apiKey` (type: `string`):

Your Firmhound Congressional Intelligence API key (fp\_ prefix). Leave this blank to run the Actor with sample data and see the output shape. Get your own key -- 14-day trial, no credit card required -- at https://senatortrades.com/pricing.

## `feed` (type: `string`):

Which Congressional Intelligence feed to pull.

## `limit` (type: `integer`):

Number of records requested per API call (default 50, max 200).

## `since` (type: `string`):

Only return records created at or after this timestamp, e.g. 2026-06-01T00:00:00Z. Leave blank for the most recent records.

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

Stop paginating after this many total records have been fetched across all pages.

## Actor input object example

```json
{
  "feed": "trades",
  "limit": 50,
  "maxItems": 200
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("firmhound/congressional-intelligence-api").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("firmhound/congressional-intelligence-api").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 '{}' |
apify call firmhound/congressional-intelligence-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,firmhound/congressional-intelligence-api"
        }
    }
}

```

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/fshQKjbKYAefo4eII/builds/STLY1qxz5MwWDlnAc/openapi.json
