Data Import
Run FEC data ingestion. Each run is idempotent and logged with full source traceability. The FEC API key is stored securely server-side.
Run FEC ingestion
Fetches a bounded batch from the FEC open API and upserts records by source id (no duplicates).
maxPages. Individual-contributor (Schedule A) data is excluded: the FEC restricts its use for commercial purposes, so only committee/PAC data is ingested.Bulk fetch from URL
Download a bulk file directly from FEC.gov server-side — no 25MB upload limit. Paste a link or use a quick-fill. Large files process in streaming batches; use the returned offset to resume.
next_offset, looping until the file is exhausted. Keep this tab open while it runs.Red / blue dashboard snapshot
Re-aggregates per-company Democratic vs Republican totals server-side (bypasses the 5,000-record client window) and stores the ranked lists the homepage reads. Resumable — each run processes ~250 committees; click Continue until 'complete'.
Company name cleanup
Convert PAC-named company records (e.g. 'BEST BUY CO., INC. EMPLOYEE POLITICAL FORUM') into real companies using the affiliated committee's organization name, enrich ticker/industry via lookup, and remove standalone PACs. Resumable — run in batches.
Enrich company aliases (brand names)
Adds well-known consumer brands and subsidiaries to each company's aliases (e.g. P&G → Tide, Pampers, Gillette; GM → Chevrolet, Buick, Cadillac) so users can find a company by searching for a brand they buy. Resumable — skips companies that already have enough aliases.
LDA lobbying disclosure ingest
Pulls federal lobbying filings from lda.gov (no API key needed) and writes LobbyingRecord rows, linked to a matching Company by client name. Idempotent — dedupes by filing URL. Leave 'Company slug' empty to process all companies in slices.
maxPages caps filings fetched per company (10 pages ≈ 1,000 filings).Import log
Audit trail of every ingestion run — records retrieved, inserted, updated, and rejected.
Approved sources
- Federal Election Commission — primary federal source (live)
- Michigan Secretary of State — state phase 1 (architecture ready)
- Lobbying Disclosure Act (LDA.gov) — lobbying phase 2 (schema ready)
OpenSecrets is explicitly excluded. No data is sourced from third-party proprietary political-finance datasets.
