360 Secure SkillHub
360 安全技能中心

Openfec

该 Skill 提供 Python CLI,通过 OpenFEC API 按候选人、委员会、申报、捐款和支出等维度检索竞选财务数据,并支持查询选举结果与财务汇总,输出 JSON。需要 FEC_API_KEY,运行时仅依赖 Python 标准库。

aiwithabidi
aiwithabidi
热度 49.57
最近更新 2026-05-10 17:41:24
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究 / 财务 / API 集成

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openfec
Metadata
name
openfec
description
OpenFEC — campaign finance data, candidates, committees, filings, and contribution search.
homepage
https://www.agxntsix.ai
license
MIT
compatibility
Python 3.10+ (stdlib only — no dependencies)
metadata
{"openclaw":{"emoji":"🗳️","requires":{"env":["FEC_API_KEY"]},"primaryEnv":"FEC_API_KEY","homepage":"https://www.agxntsix.ai"}}

🗳️ OpenFEC

OpenFEC — campaign finance data, candidates, committees, filings, and contribution search.

Requirements

Variable Required Description
FEC_API_KEY ✅ FEC API key (or DEMO_KEY)

Quick Start

# Search candidates
python3 {{baseDir}}/scripts/openfec.py search-candidates --q <value> --office <value> --state <value> --party <value> --cycle <value> --per-page "20"

# Get candidate details
python3 {{baseDir}}/scripts/openfec.py get-candidate <id>

# Get candidate financial totals
python3 {{baseDir}}/scripts/openfec.py candidate-totals <id> --cycle <value>

# Search committees
python3 {{baseDir}}/scripts/openfec.py search-committees --q <value> --committee-type <value> --per-page "20"

# Get committee details
python3 {{baseDir}}/scripts/openfec.py get-committee <id>

# List filings
python3 {{baseDir}}/scripts/openfec.py list-filings --candidate-id <value> --committee-id <value> --per-page "20"

# Search individual contributions
python3 {{baseDir}}/scripts/openfec.py search-contributions --contributor-name <value> --contributor-state <value> --min-amount <value> --max-amount <value> --per-page "20"

# Search disbursements
python3 {{baseDir}}/scripts/openfec.py search-disbursements --committee-id <value> --recipient-name <value> --per-page "20"

# Get election results
python3 {{baseDir}}/scripts/openfec.py election-results --office "president" --cycle <value>

# Totals by entity type
python3 {{baseDir}}/scripts/openfec.py get-totals --cycle <value>

Output Format

All commands output JSON by default.

Script Reference

Script Description
{baseDir}/scripts/openfec.py Main CLI — all commands in one tool

Credits

Built by M. Abidi | agxntsix.ai YouTube | GitHub Part of the AgxntSix Skill Suite for OpenClaw agents.

📅 Need help setting up OpenClaw for your business? Book a free consultation