360 Secure SkillHub
360 安全技能中心

Openfec

这是基于OpenFEC的Python CLI工具(需FEC API密钥),支持Python3.10+且无额外依赖。核心功能涵盖搜索/查询候选人、委员会详情,获取竞选财务总额、申报文件,搜索个人捐款、支出记录,查询选举结果等。典型用于选举数据分析、竞选财务调研场景,通过CLI命令传参查询,输出默认以JSON格式返回。

aiwithabidi
aiwithabidi
热度 49.67
最近更新 2026-05-10 17:41:24
分类:搜索依赖:代码执行 / 第三方 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