Skip to main content

secfeed (Python)

Client for the SecFeed SEC EDGAR API. No dependencies, Python 3.8+.

pip install secfeed
from secfeed import Client

sf = Client("sf_...")  # free key at https://secfeedapi.com
sf.filings('ticker:AAPL AND formType:"10-K"', size=5)
sf.insider_trades(ticker="NVDA", code="P")
sf.financial_statements("AAPL")
sf.events_8k(item="5.02")
for filing in sf.stream(form_types=["8-K"]):
    print(filing["companyName"], filing["formType"])

Federal contracts use the same key: SAM.gov opportunities and entity registrations, USAspending awards, awards by ticker, and the recompete radar (contracts ending in the next 24 months; Developer plans and up).

sf.sam_opportunities(naics="5415", setAside="SBA")
sf.sam_entity(cage="02GJ5")
sf.company_federal_awards("LMT")
sf.recompetes(naics="5415", setAside="SBA", hasNotice="true")

Company data beyond the filings uses the same key: financial ratios, point-in-time fundamentals, revenue by segment, customer concentration, a fundamentals screener, delistings and ticker history, WARN layoff notices, SEC comment letters, LEI lookup, UK Companies House, Treasury yields and economic data, private offerings, money market funds and fund flows.

sf.financial_ratios("AAPL")
sf.point_in_time("MSFT", concept="Revenues")
sf.segments("AAPL", type="product")
sf.suppliers("WMT")
sf.screener("Revenue>1e9,GrossProfit/Revenue>0.6", period="CY2025", size=3)
sf.delistings(ticker="SIVB")
sf.company_warn_notices("INTC")
sf.comment_letters(topic="non-GAAP", size=2)
sf.lei(ticker="AAPL")
sf.uk_companies(name="rolls-royce")
sf.yield_curve(size=5)
sf.private_offerings(source="form-d", minAmount=5000000, size=3)
sf.money_market_funds(category="government", size=5)

Every endpoint in the API docs has a method. Errors raise SecFeedError.

SecFeed is an independent service and is not affiliated with or endorsed by the U.S. Securities and Exchange Commission. Filing data comes from SEC EDGAR, which is public.

Ownership, trading and alerts (0.1.4)

sf.ownership_changes(ticker="AAPL", period="2026Q2", size=20)      # 13F managers that bought, sold, opened, closed
sf.class_period_holders(ticker="AAPL", start_date="2024-01-15", end_date="2024-12-15")
sf.trading_plans(ticker="NVDA", action="adopted")                  # 10b5-1 plans (Item 408)
sf.fails_to_deliver(symbol="GME", startDate="2026-10-01", endDate="2026-10-31")
sf.watch("insider_buy", "AAPL", minValue=100000)                   # email alert; sf.watchlist(), sf.unwatch(id), sf.watch_events()

Metadata

Release files for secfeed 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for secfeed 0.1.4
File Size Uploaded Provenance Actions
secfeed-0.1.4.tar.gz 5.7 kB Without provenance Details for secfeed-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for secfeed 0.1.4
File Interpreter ABI Platform Actions
secfeed-0.1.4-py3-none-any.whl Python 3 none any Details for secfeed-0.1.4-py3-none-any.whl

Total release size: 11.9 kB

Release files / secfeed-0.1.4.tar.gz

Download URL secfeed-0.1.4.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2d5b022d814bf3d5071d560a79ff44800cefb88ecd41185955d5e1334922b068
BLAKE2b-256 checksum
How to use checksums
b0dc133c36aaf90183173358ed91d95a026b51ea49b53c6ac7f9ca064a114045
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.20

Release files / secfeed-0.1.4-py3-none-any.whl

Download URL secfeed-0.1.4-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
68e4ae3fa50d2e3748b310c9b80c104480ec1d40812218fb2568ea1e53dcde98
BLAKE2b-256 checksum
How to use checksums
79f9335d519e6cee299562a96ed8a150d6553195a5c94441d5da21cec45897bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.20

Security for secfeed 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page