# Political Alpha Signals — Federal Activity & Disclosure Join (`foxlabs/political-alpha-signals`) Actor

Assemble a cross-source political-exposure dossier for any company or sector: US federal awards (USASpending), lobbying (LDA), upcoming rules (Federal Register) and House disclosure activity, joined on a timeline with a transparent exposure index. Evidence, not investment advice.

- **URL**: https://apify.com/foxlabs/political-alpha-signals.md
- **Developed by:** [Berkan Kaplan](https://apify.com/foxlabs) (community)
- **Categories:** Business, News, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$100.00 / 1,000 signal dossiers

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

<p align="center"><a href="https://apify.com/foxlabs/political-alpha-signals"><img src="https://data.foxlabs.com.tr/img/political-alpha-signals-banner.svg" alt="Political Alpha Signals — Federal Activity &amp; Disclosure Join" width="100%" /></a></p>

## Political Alpha Signals — Federal Activity & Disclosure Join 🏛️

**foXLabs political-intelligence series:** federal awards · lobbying (LDA) · Federal Register rules · House financial disclosures — joined here into one scored dossier. See the whole line on [Fox Labs on Apify](https://apify.com/foxlabs).

<p align="center"><img alt="Sources" src="https://img.shields.io/badge/Sources-4%20official-6366F1?style=for-the-badge" />&nbsp;<img alt="Exposure" src="https://img.shields.io/badge/Exposure%20Index-0--100-3B82F6?style=for-the-badge" />&nbsp;<img alt="Batch" src="https://img.shields.io/badge/Batch-N%20per%20run-22D3EE?style=for-the-badge" />&nbsp;<img alt="Billing" src="https://img.shields.io/badge/Pay-per%20dossier-22C55E?style=for-the-badge" />&nbsp;<img alt="MCP" src="https://img.shields.io/badge/MCP-Ready-8B5CF6?style=for-the-badge" /></p>

🎯 Build a cross-source **political-exposure dossier** for any company or sector in **one call**. This Actor joins four official US-government sources — **federal awards, lobbying filings, upcoming rules, and House financial-disclosure activity** — into a single newest-first timeline with a transparent, auditable exposure index.
Built for hedge & quant researchers, government-affairs teams, investigative journalists, and policy analysts who need the public-record picture of how a company or sector sits against the federal government — assembled and scored in seconds, not across four portals.

> **What this is, and what it is not.** This Actor assembles public records and computes a transparent index from them. It is **not** investment advice, a buy/sell signal, or a price prediction. The House axis counts filing *events* (a member filed a Periodic Transaction Report); it does **not** parse individual trade tickers or amounts, because the House publishes those only as scanned PDFs. Ticker-level parsing is a planned follow-up.

### 🔍 What is Political Alpha Signals — and when should you use it?

Give this Actor a company name (or a sector keyword, agency and issue code) and it queries four official sources in parallel, then returns **one dossier**: the federal awards the entity holds, the lobbying it files, the rules heading its way, the House disclosure activity around it — each with the raw rows behind it — plus a single **0–100 exposure index** whose every input is shown next to it. Every run reads the sources live.

**Use it when you need:** a one-call, sourced evidence base for a research note; an early read on a regulatory catalyst and the lobbying around it; or a fast public-record profile of a federal contractor before a call or a trade-committee review.

**Use something else when:** you need the individual stock tickers a member of Congress traded (the House publishes those as scanned PDFs — not parsed here yet); real-time price data (this is public-record activity, not a market feed); or a single raw source on its own — for that, run the matching feed in this series directly (awards, lobbying, Federal Register or House disclosures).

### 🤖 Use with AI agents

**Already on the Apify MCP server?** Ask for this Actor by name: `foxlabs/political-alpha-signals`.

**Your agent can pay for its own runs.** This Actor is pay-per-event with agentic payments, so an agent can discover it, run it and settle the bill over **x402 (USDC on Base)** or **Skyfire** — with no Apify account or API token of its own. Billing is the same either way: one charge per delivered dossier, never for an all-sources-down or invalid run.

Otherwise paste this into Claude, ChatGPT, Cursor or any MCP-enabled assistant:

```
I want a political-exposure dossier using the Apify Actor `foxlabs/political-alpha-signals`.
Input: `mode` is "company" or "sector"; `companies` is a list of organizations (company mode),
`sectors` is a list of sector keywords (sector mode) — each entry returns its own dossier;
`agency`, `issueAreaCode`, `naics` refine sector mode; `lookbackDays` / `lookaheadDays` set the
windows; `maxPerSource` caps rows per axis.
Start with: {"mode":"company","companies":["Lockheed Martin","Boeing"],"lookbackDays":180,"lookaheadDays":90}
Run the Actor, then for each dossier summarise exposureIndex, the three score components, and any upcoming rules.
```

The machine-readable API, MCP config and OpenAPI definition live at `apify.com/foxlabs/political-alpha-signals.md`.

### 📋 Overview

Everything you need to turn one company or sector into a sourced, scored federal-exposure picture — in a single Actor, with no login, cookies or key of your own.

**Why teams pick this Actor:**

- ✅ **Four sources, one call** — awards, lobbying, rules and disclosure activity joined into one dossier and timeline.
- 🔎 **No black box** — every number that feeds the index is returned next to it, so you can recompute or reweight it yourself.
- 🧭 **Honest scope** — a transparency index over public records, clearly *not* investment advice; missing axes are flagged, never faked.
- 🔗 **Links back to the original record** — every row carries the official document URL.
- 🤖 **Agent-ready** — MCP + x402 / Skyfire agentic payments.

### ✨ Features

- 🏛️ **Federal awards axis** — active award value and the underlying awards from USASpending (the official Treasury source).
- 🗣️ **Lobbying axis** — LDA filings and reported spend for the company or issue area.
- 📜 **Regulatory axis** — proposed and final rules whose effective date or comment window lands inside your look-ahead window (the catalysts), from the Federal Register.
- 🧾 **Disclosure context** — recent House PTR filing events and the members who filed, as **market context** (not part of the index — see FAQ).
- 🧮 **Transparent exposure index** — 0–100, the weighted sum of awards (40) + lobbying (30) + regulatory (30), each component returned with its raw inputs.
- 🕒 **Merged timeline** — every event across the four sources, newest-first, tagged by axis, each with a source link.
- 🧩 **Company & sector modes** — profile organizations, or industry/agency areas by keyword, NAICS, issue code and agency slug.
- 📋 **Batch in one run** — pass a list of companies or sectors and get one dossier per entry, each billed separately.
- ⚡ **Dual mode** — run as a batch job, or call it as a live HTTP API in Standby mode.

### 🎬 Quick Start

```bash
curl -X POST "https://api.apify.com/v2/acts/foxlabs~political-alpha-signals/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"company","companies":["Lockheed Martin","Boeing"],"lookbackDays":180,"lookaheadDays":90}'
```

### 🚀 Getting Started (3 steps)

1. **Pick your targets** — one or many company names (`mode: "company"`, field `companies`), or one or many sector keywords + agency/issue code (`mode: "sector"`, field `sectors`).
2. **Set the windows** — `lookbackDays` (how far back for awards, lobbying, rules and disclosure) and `lookaheadDays` (how far forward for rules becoming effective or open for comment).
3. **Run and read** — get one dossier per target: the exposure index, the three scored components with their inputs, the underlying rows, the disclosure context and the merged timeline.

### 📥 Input

```json
{
  "mode": "company",
  "companies": ["Lockheed Martin", "Boeing", "RTX"],
  "lookbackDays": 180,
  "lookaheadDays": 90,
  "maxPerSource": 50
}
```

Pass **a list** of companies (or sectors) and the Actor returns **one dossier per entry in a single run** — each profiled independently and billed as one dossier. Give three companies, get three dossiers; give a hundred, get a hundred.

| Field | Type | Description |
|---|---|---|
| `mode` | string | `company` (default) builds one dossier per organization; `sector` builds one per industry/agency area. |
| `companies` | array | Companies to profile in company mode, one per line, e.g. `["Lockheed Martin","Boeing","RTX"]`. Each returns its own dossier and is billed separately. Matched against federal-award recipients and lobbying clients. |
| `sectors` | array | Sectors/keywords in sector mode, one per line, e.g. `["defense","pharmaceutical","semiconductor"]`. Each returns its own dossier and is billed separately. The `agency`/`issueAreaCode`/`naics` fields refine every sector in the list. |
| `company` | string | Single-company shortcut (company mode). Prefer `companies`; kept for backward compatibility. |
| `sector` | string | Single-sector shortcut (sector mode). Prefer `sectors`; kept for backward compatibility. |
| `agency` | string | Optional Federal Register agency slug for the rules axis, e.g. `defense-department`, `food-and-drug-administration`. |
| `issueAreaCode` | string | Optional LDA general issue-area code for the lobbying axis in sector mode, e.g. `DEF`, `HCR`. |
| `naics` | string | Optional NAICS code to focus the awards axis in sector mode, e.g. `336411` (aircraft manufacturing). |
| `lookbackDays` | integer | Window for awards, lobbying, rules and disclosure (default 180; 7–1095). |
| `lookaheadDays` | integer | Window for rules becoming effective or open for comment (default 90; 0–365). |
| `maxPerSource` | integer | Row cap per axis before scoring (default 50; 1–200). |
| `proxyConfiguration` | object | US proxy, on by default (the lobbying source is served only to US connections). Set up on our side — leave as is. |

### 📤 Output

One dossier **per company or sector** is written to the dataset (the field table below describes a single dossier); a `SOURCE_REPORT` with per-dossier summaries and request stats is written to the key-value store. You can download the dataset as JSON, CSV, Excel or HTML.

| Field | Description |
|---|---|
| `query` | The company or sector profiled |
| `mode` | `company` or `sector` |
| `generatedAt` | ISO timestamp of the run |
| `window` | The look-back / look-ahead windows used |
| `exposureIndex` | 0–100 transparent score (awards 40 + lobbying 30 + regulatory 30) |
| `scoreComponents` | Each component with the raw inputs it was computed from |
| `awards` | Active-award total value, count and the underlying award rows |
| `lobbying` | Reported spend, filing count, issue codes and the filing rows |
| `rules` | Rule count, the `upcoming` catalysts, and the underlying rule rows |
| `marketDisclosureContext` | House PTR filing-event count and the members who filed — **market context, not part of the index** |
| `timeline` | All events merged newest-first, each tagged by axis with a source link |
| `notes` | Plain-language caveats, including any axis that could not be reached |

```json
{
  "query": "Lockheed Martin",
  "mode": "company",
  "generatedAt": "2026-11-05T12:00:00.000Z",
  "window": { "lookbackDays": 180, "lookaheadDays": 90 },
  "exposureIndex": 70,
  "scoreComponents": {
    "awards":     { "score": 40, "weight": 40, "activeAwardsTotalValue": 272145944240.23, "count": 25 },
    "lobbying":   { "score": 20, "weight": 30, "totalSpend": 3200000, "count": 6, "issues": ["DEF", "BUD"] },
    "regulatory": { "score": 10, "weight": 30, "upcomingCount": 2, "significantUpcoming": 1 }
  },
  "marketDisclosureContext": { "ptrEventCount": 257, "note": "Market-wide House PTR filing activity in the window; not company-specific." },
  "awards":   { "activeAwardsTotalValue": 272145944240.23, "count": 25, "items": [ /* … */ ] },
  "lobbying": { "totalSpend": 3200000, "count": 6, "issues": ["DEF", "BUD"], "items": [ /* … */ ] },
  "rules":    { "count": 2, "upcoming": [ /* … */ ], "items": [ /* … */ ] },
  "disclosureActivity": { "ptrEventCount": 257, "members": [ /* … */ ] },
  "timeline": [ { "date": "2026-11-02", "axis": "disclosure", "label": "PTR filed — Hon. Ann Wagner (MO02)", "url": "https://disclosures-clerk.house.gov/..." } ],
  "notes": [ "Exposure index is a transparency aid over public records, not investment advice.", "Awards value is total active-award ceiling overlapping the window, not spend within it." ]
}
```

### 💼 Use cases

**1. Contractor exposure profile** — size up a federal contractor in one call.
*Input:* `{"mode":"company","company":"Lockheed Martin"}`. *Output:* active award value, lobbying, upcoming rules, disclosure context. *Use:* a sourced evidence base for a research note.

**2. Sector catalyst watch** — get ahead of a regulatory event.
*Input:* `{"mode":"sector","sector":"defense","agency":"defense-department","issueAreaCode":"DEF","lookaheadDays":120}`. *Output:* upcoming rules by agency plus the lobbying around them. *Use:* flag catalysts before they land.

**3. Government-affairs monitoring** — track the federal footprint of an industry.
*Input:* a sector with a NAICS focus. *Output:* awards + lobbying + rules in one timeline. *Use:* a recurring, sourced situation report.

### 🔗 Integration

**JavaScript / Node.js**

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('foxlabs/political-alpha-signals').call({ mode: 'company', company: 'Lockheed Martin', lookbackDays: 180, lookaheadDays: 90 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].exposureIndex, items[0].scoreComponents);
```

**Python**

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')
run = client.actor('foxlabs/political-alpha-signals').call(run_input={"mode": "company", "company": "Lockheed Martin", "lookbackDays": 180, "lookaheadDays": 90})
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item["exposureIndex"], item["scoreComponents"])
```

Written for `apify-client` 3 for Python, where `call()` returns a run object; with version 1 or 2 it returns a dict — write `run['defaultDatasetId']` there.

**Live API (Standby mode):** `GET /signal?mode=company&company=Lockheed+Martin&lookbackDays=180` returns the same dossier as JSON, for query-time lookups without starting a batch run.

**Automation (n8n / Zapier / Make):** schedule or webhook → HTTP request to the Actor API with your `mode` and `company` → handle the JSON dossier → push the index and upcoming rules to a sheet, CRM or dashboard.

### 📊 Pricing

Pay-per-event, **one `signal` event per delivered dossier**. Profile three companies in a run and you are charged for three dossiers; profile a hundred, a hundred. A dossier where **every source is unreachable** is pushed **without a charge**, and an **invalid run** (no valid company/sector) is free. The underlying proxy and compute are on us — there is no "billed to your proxy account" here. [View current pricing.](https://apify.com/foxlabs/political-alpha-signals)

### ❓ FAQ

#### How do I get political exposure or government-affairs data for a company?

Run this Actor with a company (or a sector) and it returns one fused dossier: US federal contracts (USASpending), lobbying filings (LDA), upcoming Federal Register rules and House disclosure activity, joined with a transparent 0–100 exposure index. One call, sourced and scored — as JSON, CSV or Excel.

#### Does this tell me which stocks a member of Congress bought?

No. It tells you a member filed a disclosure (a Periodic Transaction Report) and when, with a link to the official document. The House publishes the trade details only as scanned PDFs, so tickers and amounts are not parsed here. That is a planned follow-up.

#### Is the exposure index investment advice?

No. It is a transparency aid that sums public-record activity into one number, with every input shown. It is not a buy/sell signal or a price prediction. How you read it is up to you.

#### Why is the awards total so large?

It is the total value of **active** federal awards that overlap your window — a contract's full ceiling — not money spent within the window. A long-running contract shows its whole ceiling. Use the per-award rows for detail.

#### Why is House disclosure "context" and not part of the index?

Without ticker-level parsing, PTR counts are market-wide — the same for every company you query — so folding them into the score would add constant noise, not signal. They are returned as `marketDisclosureContext` so you still see the activity, honestly labelled. When ticker-level parsing lands, company-specific disclosure can enter the index.

#### What happens if one source is down?

The dossier is still returned with the other axes, the missing axis is flagged in `notes`, and the index is computed from whatever axes returned. Only an all-four-down run is treated as a failure (and is not charged).

#### Company mode vs sector mode?

Company mode matches a single organization across awards and lobbying. Sector mode profiles an industry or agency area using `sector`, `naics`, `issueAreaCode` and `agency`.

#### How current is the data?

Every run reads the four sources live, so results are as current as the official records at run time.

#### Do I need an account, key, cookie or proxy of my own?

No. All four sources are official, keyless US-government endpoints, and the US proxy is set up on our side.

#### Can I call it as an API instead of a batch run?

Yes. In Standby mode, `GET /signal?mode=company&company=Lockheed+Martin` returns the same dossier — ideal for agents and query-time lookups.

#### Can I export to CSV / Excel / JSON?

Yes — directly from the Apify dataset, in JSON, CSV, Excel or HTML.

### 🐛 Troubleshooting

- **The lobbying axis is empty** — the LDA source is US-only; the Actor routes through a US proxy and retries, but if the pool is briefly degraded the axis is flagged in `notes` and the dossier is still returned from the other axes.
- **No upcoming rules** — your `lookaheadDays` window may be short, or the agency slug may not match; widen the window or check the slug against the Federal Register agency list.
- **A company returns few awards** — try the exact recipient name as it appears on USASpending, or profile the sector with a NAICS code.
- **Index looks low for a big name** — check `scoreComponents`: an axis may have returned nothing in-window. The raw inputs next to each component show exactly why.

### ⚠️ Trademarks

Company, agency and program names, and any product names referenced in results, are the property of their respective owners and are used here only to identify publicly disclosed federal activity. This Actor is not affiliated with, endorsed by, or sponsored by any of them, nor by any US-government body.

### ⚖️ Is it legal to use this data?

This Actor reads **public records published by the US government** — federal award data (USASpending), lobbying disclosures (LDA), proposed and final rules (Federal Register), and congressional financial-disclosure indexes (US House Clerk). These are open, official sources. Results can still contain personal data (for example a filer's name); personal data is protected by the GDPR and similar laws, so only process it with a legitimate basis. The output is a transparency aid, not investment advice.

### 🤝 Support & contact

- 🌐 **Website:** [data.foxlabs.com.tr](https://data.foxlabs.com.tr)
- 📧 **Email:** info@foxlabs.com.tr
- 🐛 **Issues:** open a ticket in the Actor's **Issues** tab
- 🧰 **More official-data Actors:** [Fox Labs on Apify](https://apify.com/foxlabs)

### Changelog

#### 0.1.4 — 2026-11-05 — reliable US exits + README to the full standard

- **Lobbying axis made reliable.** The US-only lobbying source (LDA) was intermittently geo-blocked when the proxy pool returned a non-US exit. The Actor now routes the US sources through a **US datacenter pool pinned to `country-US`**, measured at **12/12** successful US exits with zero geo-blocks (vs. a thin residential pool), and keeps the 403-rotation retry as a safety net. No output field or pricing change.
- **README rebuilt to the full standard** — What-is / when, AI-agents + x402 agentic payments + MCP, Overview, Features, Quick Start, Input/Output, Use cases, Integration, Pricing, FAQ, Troubleshooting, Trademarks, Legal, Support.

#### 0.1.3 — 2026-11-04 — platform verification

- Verified on the Apify platform at 512 MB: four company runs returned all four axes with `exposureIndex` computed; an empty-company run returned index 0, SUCCEEDED, with no charge.

#### 0.1 — 2026-11-04 — initial release

- Cross-source political-exposure dossier: USASpending awards + LDA lobbying + Federal Register rules + House disclosure activity, joined into a transparent 0–100 exposure index with a merged timeline. Company and sector modes; batch + Standby dual mode.

# Changelog

This Actor's version history is a separate document: https://apify.com/foxlabs/political-alpha-signals/changelog.md

# Actor input Schema

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

"company" builds a dossier for one organization; "sector" builds one for an industry/agency area.

## `companies` (type: `array`):

One organization per line (company mode). Each returns its own exposure dossier and is billed separately. E.g. \["Lockheed Martin", "Boeing", "RTX"]. Matched against federal award recipients and lobbying clients.

## `company` (type: `string`):

Single-company shortcut (company mode). Prefer "Companies" above for one or many. Kept for backward compatibility.

## `sectors` (type: `array`):

One sector or keyword per line (sector mode). Each returns its own dossier and is billed separately. E.g. \["defense", "pharmaceutical", "semiconductor"]. The agency / issue / NAICS fields below refine every sector in the list.

## `sector` (type: `string`):

Single-sector shortcut (sector mode). Prefer "Sectors" above for one or many. Kept for backward compatibility.

## `agency` (type: `string`):

Optional agency slug for the rules axis, e.g. "defense-department", "food-and-drug-administration". Leave empty to search by keyword.

## `issueAreaCode` (type: `string`):

Optional LDA general issue area code for the lobbying axis in sector mode (e.g. DEF for Defense, HCR for Health).

## `naics` (type: `string`):

Optional NAICS industry code to focus the federal-awards axis in sector mode (e.g. 336411 for aircraft).

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

How far back to look for awards, lobbying filings, published rules and disclosure activity.

## `lookaheadDays` (type: `integer`):

How far ahead to look for rules that become effective or whose comment window is still open (the regulatory catalysts).

## `maxPerSource` (type: `integer`):

Cap on rows pulled from each of the four sources before scoring.

## `proxyConfiguration` (type: `object`):

A US proxy is used for the US-only sources (lobbying is served only to US connections). A reliable US datacenter exit is selected automatically — leave as is.

## Actor input object example

```json
{
  "mode": "company",
  "companies": [
    "Lockheed Martin",
    "Boeing",
    "RTX"
  ],
  "lookbackDays": 180,
  "lookaheadDays": 90,
  "maxPerSource": 50,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `sourceReport` (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 = {
    "mode": "company",
    "companies": [
        "Lockheed Martin",
        "Boeing",
        "RTX"
    ],
    "lookbackDays": 180,
    "lookaheadDays": 90,
    "maxPerSource": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("foxlabs/political-alpha-signals").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 = {
    "mode": "company",
    "companies": [
        "Lockheed Martin",
        "Boeing",
        "RTX",
    ],
    "lookbackDays": 180,
    "lookaheadDays": 90,
    "maxPerSource": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("foxlabs/political-alpha-signals").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 '{
  "mode": "company",
  "companies": [
    "Lockheed Martin",
    "Boeing",
    "RTX"
  ],
  "lookbackDays": 180,
  "lookaheadDays": 90,
  "maxPerSource": 50
}' |
apify call foxlabs/political-alpha-signals --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,foxlabs/political-alpha-signals"
        }
    }
}
```

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/hpIh0siIiVyhLPsE1/builds/ilatZckF35e6DfapK/openapi.json
