# ⚖️ Campaign Finance Scraper (`taroyamada/campaign-finance-lobbying-digest`) Actor

Track federal campaign filings and lobbying activity to ensure compliance. Extract docket numbers, filing dates, and direct URLs for your watchlist.

- **URL**: https://apify.com/taroyamada/campaign-finance-lobbying-digest.md
- **Developed by:** [太郎 山田](https://apify.com/taroyamada) (community)
- **Categories:** Business, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Campaign Finance & Lobbying Digest | FEC + LDA Watch

Monitor official FEC OpenFEC committee reports and LDA.gov filings with summary-first output — one digest row per committee or lobbying watch feed, plus change detection, action-needed flags, and nested evidence.

### Store Quickstart

Run this actor with your target input. Results appear in the Apify Dataset and can be piped to webhooks for real-time delivery. Use `dryRun` to validate before committing to a schedule.

### Key Features

- 🏛️ **Government-sourced** — Pulls directly from official agency feeds — no third-party aggregators
- ⏱️ **Timely digests** — Daily/weekly rollups of new filings, rulings, or actions
- 🔍 **Keyword watchlists** — Flag items matching your compliance/legal watch terms
- 📊 **Structured metadata** — Agency, date, docket, document type, link — all dataset-ready
- 📡 **Webhook alerts** — Push to legal/compliance teams the moment new items match watchlist

### Use Cases

| Who | Why |
|-----|-----|
| Developers | Automate recurring data fetches without building custom scrapers |
| Data teams | Pipe structured output into analytics warehouses |
| Ops teams | Monitor changes via webhook alerts |
| Product managers | Track competitor/market signals without engineering time |

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| feeds | array | prefilled | One digest row is emitted per configured feed. Use lda_filings for anonymous/no-key quickstarts. Use fec_committee when  |
| watchTerms | string | — | Comma- or newline-separated terms. Matching committees, clients, issues, or agencies elevate digests to action_needed. |
| lookbackDays | integer | `45` | Default lookback window used when a feed-specific override is not provided. |
| maxEvidencePerFeed | integer | `25` | Upper bound on normalized evidence items retained for each feed. |
| maxPagesPerFeed | integer | `2` | Upper bound on paginated API requests per feed during one run. |
| delivery | string | `"dataset"` | dataset writes digest rows to the Apify dataset. webhook POSTs the digest payload to webhookUrl. |
| webhookUrl | string | — | POST target used when delivery=webhook. |
| datasetMode | string | `"all"` | Choose whether dataset/webhook delivery includes all digests, only action-needed digests, or only feeds with new evidenc |

#### Input Example

```json
{
  "feeds": [
    {
      "id": "google-lobbying",
      "name": "Google Lobbying Filings",
      "source": "lda_filings",
      "clientName": "Google"
    }
  ],
  "lookbackDays": 45,
  "maxEvidencePerFeed": 25,
  "maxPagesPerFeed": 2,
  "delivery": "dataset",
  "datasetMode": "all",
  "snapshotKey": "campaign-finance-lobbying-digest-state",
  "requestTimeoutSeconds": 30,
  "notifyOnNoNew": true,
  "dryRun": false
}
````

### Output

| Field | Type | Description |
|-------|------|-------------|
| `meta` | object |  |
| `errors` | array |  |
| `digests` | array |  |
| `digests[].feedId` | string |  |
| `digests[].feedName` | string |  |
| `digests[].source` | string |  |
| `digests[].checkedAt` | timestamp |  |
| `digests[].status` | string |  |
| `digests[].newEvidenceCount` | number |  |
| `digests[].totalEvidenceCount` | number |  |
| `digests[].latestEvidenceAt` | timestamp |  |
| `digests[].changedSinceLastRun` | boolean |  |
| `digests[].changeReasons` | array |  |
| `digests[].actionNeeded` | boolean |  |
| `digests[].recommendedAction` | string |  |
| `digests[].trackedEntity` | object |  |
| `digests[].summaryMetrics` | object |  |
| `digests[].signalTags` | array |  |
| `digests[].watchTermHits` | array |  |
| `digests[].highlights` | array |  |
| `digests[].evidence` | array |  |
| `digests[].error` | null |  |

#### Output Example

```json
{
  "meta": {
    "generatedAt": "2026-04-06T11:48:58.577Z",
    "now": "2026-04-25T00:00:00.000Z",
    "feedCount": 2,
    "totalEvidenceCount": 2,
    "newEvidenceCount": 2,
    "actionNeededCount": 2,
    "errorCount": 0,
    "snapshot": {
      "key": "campaign-finance-sample",
      "loadedFrom": "local",
      "savedTo": "local"
    },
    "warnings": [],
    "executiveSummary": {
      "overallStatus": "action_needed",
      "brief": "2 feed(s) require review based on new filings, amendments, or watch-term hits.",
      "actionItems": [
        "Review 2 action-needed feed(s): Clean Energy PAC, Solar Lobbying Feed",
        "Assess watch-term hits: Solar",
        "2 new filing(s) arrived — capture material committee or lobbying changes before the next cycle review"
      ],
      "watchTermHits": [
        {
          "term": "Solar",
          "evidenceId": "lda:lda-1002",
          "title": "LD-1 Amendment • Policy Advocates LLC / Solar Storage Coalition",
          "filedAt": "2026-04-18T00:00:00.000Z",
          "target": "Policy Advocates LLC / Solar Storage Coalition",
          "url": "https://lda.senate.gov/filings/public/lda-1002"
        }
      ],
      "feedStatuses": [
        {
          "feedId": "clean-energy-pac",
          "feedName": "Clean Energy PAC",
          "source": "fec_committee",
          "status": "action_needed",
          "newEvidenceCount": 1,
```

### API Usage

Run this actor programmatically using the Apify API. Replace `YOUR_API_TOKEN` with your token from [Apify Console → Settings → Integrations](https://console.apify.com/account/integrations).

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/taroyamada~campaign-finance-lobbying-digest/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{ "feeds": [ { "id": "google-lobbying", "name": "Google Lobbying Filings", "source": "lda_filings", "clientName": "Google" } ], "lookbackDays": 45, "maxEvidencePerFeed": 25, "maxPagesPerFeed": 2, "delivery": "dataset", "datasetMode": "all", "snapshotKey": "campaign-finance-lobbying-digest-state", "requestTimeoutSeconds": 30, "notifyOnNoNew": true, "dryRun": false }'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("taroyamada/campaign-finance-lobbying-digest").call(run_input={
  "feeds": [
    {
      "id": "google-lobbying",
      "name": "Google Lobbying Filings",
      "source": "lda_filings",
      "clientName": "Google"
    }
  ],
  "lookbackDays": 45,
  "maxEvidencePerFeed": 25,
  "maxPagesPerFeed": 2,
  "delivery": "dataset",
  "datasetMode": "all",
  "snapshotKey": "campaign-finance-lobbying-digest-state",
  "requestTimeoutSeconds": 30,
  "notifyOnNoNew": true,
  "dryRun": false
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)
```

#### JavaScript / Node.js

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });
const run = await client.actor('taroyamada/campaign-finance-lobbying-digest').call({
  "feeds": [
    {
      "id": "google-lobbying",
      "name": "Google Lobbying Filings",
      "source": "lda_filings",
      "clientName": "Google"
    }
  ],
  "lookbackDays": 45,
  "maxEvidencePerFeed": 25,
  "maxPagesPerFeed": 2,
  "delivery": "dataset",
  "datasetMode": "all",
  "snapshotKey": "campaign-finance-lobbying-digest-state",
  "requestTimeoutSeconds": 30,
  "notifyOnNoNew": true,
  "dryRun": false
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

### Tips & Limitations

- Run daily for active watchlists; weekly for passive monitoring.
- Webhook delivery works well for compliance team Slack channels — include docket URL for 1-click access.
- Use `watchKeywords` generously — false positives are cheap to triage, false negatives miss filings.
- Pair with `regulatory-change-monitor` for cross-agency coverage.
- Archive Dataset rows weekly for long-term compliance evidence retention.

### FAQ

**How far back does history go?**

This actor monitors forward-only — new items since first run. For historical data, use the agency's own search tool.

**What timezones are used?**

All timestamps are UTC. Use your downstream pipeline to convert to agency-local time if needed.

**Does it translate non-English content?**

No — original language is preserved. Use downstream translation services if needed.

**Is the data official?**

Yes — sourced directly from official government websites and feeds. Not a third-party aggregator.

**Can I use this for legal research?**

For alerting and monitoring, yes. For litigation research, cross-verify with primary sources (agency websites) — this actor is a monitoring tool, not a legal database.

### Related Actors

Government & Regulatory cluster — explore related Apify tools:

- [EPA Enforcement Digest | ECHO Compliance Risk Monitor](https://apify.com/taroyamada/epa-enforcement-digest) — Monitor EPA ECHO all-media facility search, corporate compliance screener, and enforcement case feeds with one summary-first digest row per watched company, facility, or case feed.
- [FDA Warning Letters Digest | Summary-First Feed](https://apify.com/taroyamada/fda-warning-letter-digest) — Monitor public FDA warning letters with one summary-first digest row per configured feed.
- [Federal Register Digest | Agency Rule & Notice Monitor](https://apify.com/taroyamada/federal-register-digest) — Monitor Federal Register documents — rules, proposed rules, and notices — per configured agency feed.
- [Government Contract Award Monitor | Award & Competitor Watch](https://apify.com/taroyamada/government-contract-award-monitor) — Monitor public-sector contract award notices for new wins, notable awardees, incumbent recompetes, and competitor signals — one digest row per configured feed without brittle broad crawling.
- [Grants.gov Funding Digest | Opportunity Watch & Signal Digest](https://apify.com/taroyamada/grants-gov-funding-digest) — Monitor Grants.
- [NHTSA Vehicle Recall Digest | Recalls + Complaints Watch](https://apify.com/taroyamada/nhtsa-vehicle-recall-digest) — Monitor official NHTSA vehicle recall and complaint endpoints for watched model-family, VIN, and manufacturer feeds.
- [Product Safety Recall Digest | CPSC + openFDA Alerts](https://apify.com/taroyamada/product-safety-recall-digest) — Monitor CPSC saferproducts.
- [Regulatory Change Monitor API](https://apify.com/taroyamada/regulatory-change-monitor) — Monitor official regulator update feeds, government bulletin pages, and public compliance notices with one action-oriented digest row per monitored source.
- [OFAC Sanctions Change Digest | SDN List Monitor](https://apify.com/taroyamada/sanctions-change-digest) — Monitor the OFAC SDN (Specially Designated Nationals) sanctions list for additions and removals.
- [Tariff Trade Change Digest | Federal Register + HTS Monitor](https://apify.com/taroyamada/tariff-trade-change-digest) — Monitor U.
- [Treasury Fiscal Data Digest | Debt, Rates & Budget Monitor](https://apify.com/taroyamada/treasury-fiscal-data-digest) — Monitor the U.
- [USPTO Patent Monitor API | JSON + Webhook](https://apify.com/taroyamada/uspto-patent-scraper) — Search and monitor US patent filings with multi-source fallback.

### Cost

**Pay Per Event**:

- `actor-start`: $0.01 (flat fee per run)
- `dataset-item`: $0.003 per output item

**Example**: 1,000 items = $0.01 + (1,000 × $0.003) = **$3.01**

No subscription required — you only pay for what you use.

# Actor input Schema

## `feeds` (type: `array`):

One digest row is emitted per configured feed. Use lda\_filings for anonymous/no-key quickstarts. Use fec\_committee when you can provide fecApiKey or FEC\_API\_KEY.

## `watchTerms` (type: `string`):

Comma- or newline-separated terms. Matching committees, clients, issues, or agencies elevate digests to action\_needed.

## `lookbackDays` (type: `integer`):

Default lookback window used when a feed-specific override is not provided.

## `maxEvidencePerFeed` (type: `integer`):

Upper bound on normalized evidence items retained for each feed.

## `maxPagesPerFeed` (type: `integer`):

Upper bound on paginated API requests per feed during one run.

## `delivery` (type: `string`):

dataset writes digest rows to the Apify dataset. webhook POSTs the digest payload to webhookUrl.

## `webhookUrl` (type: `string`):

POST target used when delivery=webhook.

## `datasetMode` (type: `string`):

Choose whether dataset/webhook delivery includes all digests, only action-needed digests, or only feeds with new evidence.

## `snapshotKey` (type: `string`):

Stable key used to persist seen evidence across recurring runs.

## `fecApiKey` (type: `string`):

Optional here, or provide FEC\_API\_KEY in the environment.

## `ldaApiToken` (type: `string`):

Optional. Anonymous LDA requests work for modest quickstarts.

## `requestTimeoutSeconds` (type: `integer`):

Timeout for each FEC or LDA HTTP request.

## `notifyOnNoNew` (type: `boolean`):

When false, stable feeds are omitted from delivery outputs unless they errored.

## `dryRun` (type: `boolean`):

Skip snapshot writes and delivery while still producing local output.

## Actor input object example

```json
{
  "feeds": [
    {
      "id": "google-lobbying",
      "name": "Google Lobbying Filings",
      "source": "lda_filings",
      "clientName": "Google"
    }
  ],
  "lookbackDays": 45,
  "maxEvidencePerFeed": 25,
  "maxPagesPerFeed": 2,
  "delivery": "dataset",
  "datasetMode": "all",
  "snapshotKey": "campaign-finance-lobbying-digest-state",
  "requestTimeoutSeconds": 30,
  "notifyOnNoNew": true,
  "dryRun": false
}
```

# 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 = {
    "feeds": [
        {
            "id": "google-lobbying",
            "name": "Google Lobbying Filings",
            "source": "lda_filings",
            "clientName": "Google"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("taroyamada/campaign-finance-lobbying-digest").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 = { "feeds": [{
            "id": "google-lobbying",
            "name": "Google Lobbying Filings",
            "source": "lda_filings",
            "clientName": "Google",
        }] }

# Run the Actor and wait for it to finish
run = client.actor("taroyamada/campaign-finance-lobbying-digest").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "feeds": [
    {
      "id": "google-lobbying",
      "name": "Google Lobbying Filings",
      "source": "lda_filings",
      "clientName": "Google"
    }
  ]
}' |
apify call taroyamada/campaign-finance-lobbying-digest --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=taroyamada/campaign-finance-lobbying-digest",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "⚖️ Campaign Finance Scraper",
        "description": "Track federal campaign filings and lobbying activity to ensure compliance. Extract docket numbers, filing dates, and direct URLs for your watchlist.",
        "version": "0.1",
        "x-build-id": "SYe31FOAhgWjTjD6E"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/taroyamada~campaign-finance-lobbying-digest/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-taroyamada-campaign-finance-lobbying-digest",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/taroyamada~campaign-finance-lobbying-digest/runs": {
            "post": {
                "operationId": "runs-sync-taroyamada-campaign-finance-lobbying-digest",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/taroyamada~campaign-finance-lobbying-digest/run-sync": {
            "post": {
                "operationId": "run-sync-taroyamada-campaign-finance-lobbying-digest",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "feeds": {
                        "title": "Feeds",
                        "minItems": 1,
                        "type": "array",
                        "description": "One digest row is emitted per configured feed. Use lda_filings for anonymous/no-key quickstarts. Use fec_committee when you can provide fecApiKey or FEC_API_KEY.",
                        "items": {
                            "type": "object",
                            "required": [
                                "source"
                            ],
                            "properties": {
                                "id": {
                                    "title": "Feed ID",
                                    "type": "string",
                                    "description": "Stable identifier used for snapshots and recurring runs."
                                },
                                "name": {
                                    "title": "Feed name",
                                    "type": "string",
                                    "description": "Human-readable label for the digest row."
                                },
                                "source": {
                                    "title": "Source",
                                    "type": "string",
                                    "enum": [
                                        "fec_committee",
                                        "lda_filings"
                                    ],
                                    "enumTitles": [
                                        "FEC committee reports",
                                        "LDA filings"
                                    ],
                                    "description": "fec_committee monitors official OpenFEC committee reports. lda_filings monitors official LDA.gov filing activity."
                                },
                                "committeeId": {
                                    "title": "FEC committee ID",
                                    "type": "string",
                                    "description": "Required for fec_committee feeds."
                                },
                                "cycle": {
                                    "title": "Election cycle",
                                    "type": "integer",
                                    "description": "Optional FEC cycle filter such as 2024 or 2026."
                                },
                                "registrantId": {
                                    "title": "LDA registrant ID",
                                    "type": "string",
                                    "description": "Optional exact registrant identifier for narrowing LDA filing results."
                                },
                                "registrantName": {
                                    "title": "LDA registrant name",
                                    "type": "string",
                                    "description": "Optional registrant-name filter for LDA filings."
                                },
                                "clientId": {
                                    "title": "LDA client ID",
                                    "type": "string",
                                    "description": "Optional exact client identifier for narrowing LDA filing results."
                                },
                                "clientName": {
                                    "title": "LDA client name",
                                    "type": "string",
                                    "description": "Optional client-name filter for LDA filings."
                                },
                                "filingTypes": {
                                    "title": "LDA filing types",
                                    "type": "array",
                                    "description": "Optional LDA filing type filters. Leave empty for a broader watch.",
                                    "items": {
                                        "type": "string"
                                    }
                                },
                                "lookbackDays": {
                                    "title": "Feed-specific lookback days",
                                    "type": "integer",
                                    "description": "Optional override for the global lookback window."
                                }
                            }
                        }
                    },
                    "watchTerms": {
                        "title": "Watch terms",
                        "type": "string",
                        "description": "Comma- or newline-separated terms. Matching committees, clients, issues, or agencies elevate digests to action_needed."
                    },
                    "lookbackDays": {
                        "title": "Lookback days",
                        "minimum": 1,
                        "maximum": 3650,
                        "type": "integer",
                        "description": "Default lookback window used when a feed-specific override is not provided.",
                        "default": 45
                    },
                    "maxEvidencePerFeed": {
                        "title": "Max evidence per feed",
                        "minimum": 1,
                        "maximum": 100,
                        "type": "integer",
                        "description": "Upper bound on normalized evidence items retained for each feed.",
                        "default": 25
                    },
                    "maxPagesPerFeed": {
                        "title": "Max pages per feed",
                        "minimum": 1,
                        "maximum": 10,
                        "type": "integer",
                        "description": "Upper bound on paginated API requests per feed during one run.",
                        "default": 2
                    },
                    "delivery": {
                        "title": "Delivery",
                        "enum": [
                            "dataset",
                            "webhook"
                        ],
                        "type": "string",
                        "description": "dataset writes digest rows to the Apify dataset. webhook POSTs the digest payload to webhookUrl.",
                        "default": "dataset"
                    },
                    "webhookUrl": {
                        "title": "Webhook URL",
                        "type": "string",
                        "description": "POST target used when delivery=webhook."
                    },
                    "datasetMode": {
                        "title": "Dataset mode",
                        "enum": [
                            "all",
                            "action_needed",
                            "new_only"
                        ],
                        "type": "string",
                        "description": "Choose whether dataset/webhook delivery includes all digests, only action-needed digests, or only feeds with new evidence.",
                        "default": "all"
                    },
                    "snapshotKey": {
                        "title": "Snapshot key",
                        "type": "string",
                        "description": "Stable key used to persist seen evidence across recurring runs.",
                        "default": "campaign-finance-lobbying-digest-state"
                    },
                    "fecApiKey": {
                        "title": "FEC API key",
                        "type": "string",
                        "description": "Optional here, or provide FEC_API_KEY in the environment."
                    },
                    "ldaApiToken": {
                        "title": "LDA API token",
                        "type": "string",
                        "description": "Optional. Anonymous LDA requests work for modest quickstarts."
                    },
                    "requestTimeoutSeconds": {
                        "title": "Request timeout seconds",
                        "minimum": 5,
                        "maximum": 120,
                        "type": "integer",
                        "description": "Timeout for each FEC or LDA HTTP request.",
                        "default": 30
                    },
                    "notifyOnNoNew": {
                        "title": "Notify when no new filings",
                        "type": "boolean",
                        "description": "When false, stable feeds are omitted from delivery outputs unless they errored.",
                        "default": true
                    },
                    "dryRun": {
                        "title": "Dry run",
                        "type": "boolean",
                        "description": "Skip snapshot writes and delivery while still producing local output.",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
