secfeed (Python)
SEC API client for Python: the SecFeed SEC EDGAR API returns EDGAR filings, insider trades, 13F holdings, 8-K items and XBRL financials as JSON. No dependencies, Python 3.8+. Examples for the official SEC EDGAR API and SecFeed: secfeedapi/sec-edgar-api.
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.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| secfeed-0.1.5.tar.gz | 5.9 kB | Without provenance | Details for secfeed-0.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| secfeed-0.1.5-py3-none-any.whl | Python 3 | none | any | Details for secfeed-0.1.5-py3-none-any.whl |
Total release size: 12.2 kB
Release files / secfeed-0.1.5.tar.gz
| Download URL | secfeed-0.1.5.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
03671baa45dcac415c572a60a70da63f8e1b3f26b0582aa8af65e1b45a1d71ae
|
|
BLAKE2b-256 checksum How to use checksums |
a7d58143e38ce312a4aea26bef3bd1c96c6671b9c47c2cb002935f039599e736
|
| 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.5-py3-none-any.whl
| Download URL | secfeed-0.1.5-py3-none-any.whl |
|---|---|
| Size | 6.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bba8ac2941b92a08ae1687dcefa2e5783891b311435537c6c0d937a7239c9ca4
|
|
BLAKE2b-256 checksum How to use checksums |
b38204a712a617cd269188a811b05abf51888cc04ab1575bfa5b96bb2d85271f
|
| 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.5
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.