SEC Daily API — Python SDK
Official Python SDK for the SEC Daily API — real-time SEC EDGAR filings, company data, and news.
Using Claude, Cursor, ChatGPT, or another AI assistant? Use the sec-daily-mcp package instead — it connects your AI tool directly to the SEC Daily API with no code required.
Installation
pip install sec-daily-api
Requires Python 3.8+. No runtime dependencies.
Quick Start
import os
from sec_daily_api import SecDailyAPI
client = SecDailyAPI(api_key=os.environ["SEC_DAILY_API_KEY"])
# Get Apple's latest 10-K filings
result = client.get_filings(ticker="AAPL", form_types="10-K", limit=5)
for filing in result["filings"]:
print(filing["filingDate"], filing["formType"], filing.get("summary", ""))
Get your API key at secdailyapi.com.
API Reference
For the full reference including all parameters, response schemas, and plan limits, see secdailyapi.com/docs.
SecDailyAPI(api_key=None, *, timeout=30.0)
| Argument | Type | Description |
|---|---|---|
api_key |
str |
Your API key. Defaults to SEC_DAILY_API_KEY env var |
timeout |
float |
Per-request socket timeout in seconds (default 30) |
get_filings(**params)
Search and filter SEC EDGAR filings.
result = client.get_filings(
ticker="AAPL",
form_types=["10-K", "10-Q"],
filing_date_start="2025-01-01",
filing_date_end="2025-12-31",
limit=50,
)
for filing in result["filings"]:
# acceptanceDateTime is absent for most filings before 2025
print(filing["formType"], filing["filingDate"], filing.get("acceptanceDateTime"))
| Parameter | Type | Description |
|---|---|---|
ticker |
str |
Company ticker, e.g. "AAPL" |
cik |
str |
Company CIK (numeric) |
accession_number |
str |
Exact SEC accession number |
form_types |
str | list[str] |
e.g. "10-K", ["10-K","10-Q"], "8-K", "4" |
filing_date |
str |
Exact filing date YYYY-MM-DD (SEC's official filing date, filingDate) |
filing_date_start |
str |
Date range start YYYY-MM-DD |
filing_date_end |
str |
Date range end YYYY-MM-DD |
fieldset |
"minimal" | "standard" | "full" |
Response size control |
fields |
str | list[str] |
Fields to return, e.g. "filingDate,acceptanceDateTime,filingIndexUrl" |
limit |
int |
Results per page, default 200, max 1000 |
cursor |
str |
Pagination cursor from a previous response |
Response: dict with filings (list), count (int), pagination (dict with hasMore and optional nextCursor).
Filing fields
Each filing is a dict described by the Filing type. Every field is optional. The main ones:
| Field | Description |
|---|---|
id, accessionNumber |
Our filing id and SEC's accession number |
formType, formFamily, isAmendment |
SEC's exact form name ("10-K/A"); the family that groups its variants (10-K, 10-K405 and 10-K/A are all "10-K"); whether it is an amendment |
filingDate |
SEC's official filing date, YYYY-MM-DD (Eastern by definition). An evening filing can be dated the next business day |
acceptanceDateTime |
When SEC accepted the filing, ISO 8601 UTC ending in Z, from SEC's filing header. Absent when the header has no acceptance time (most filings before 2025) |
periodOfReport, effectivenessDate |
Period the filing reports on; effectiveness date |
cik, companyName |
The main company and its name at filing time |
entities |
Every party: list of {cik, name, role}, at most 100 (entitiesTruncated is True beyond that). role is SEC's header role: "Filer", "Issuer", "Subject", "Reporting Owner", "Filed by" |
items |
8-K items as a string, e.g. "2.02, 9.01" |
filingIndexUrl, submissionTextUrl, primaryDocumentUrl |
Links to the filing's index page, complete submission text file, and primary document on SEC.gov |
primaryDocument, primaryDocDescription |
The primary document's path inside the filing folder (e.g. "aapl-20250927.htm") and description |
documentFormatFiles, dataFiles |
Documents and data files with url, type, description, size, seq; at most 1,000 (documentsTruncated is True beyond that) |
documentTypes, publicDocumentCount, size |
Document types (e.g. ["8-K", "EX-99.1"]), public document count, bytes in the whole submission |
otherFormTypes, groupMembers, fundSeries |
The other form name on a combined filing; 13D/G group members; fund series and classes |
act, fileNumber, filmNumber, coreType, isXBRL, isInlineXBRL, isXBRLNumeric |
SEC's submission fields |
textChars |
Length of the stored text, when there is some |
entity, markdown, summary |
Company profile, filing text, AI summary |
Deprecated fields
These are still returned for now and stay in the Filing type, but will be removed in a later API version. Move to the new names:
| Deprecated | Use instead |
|---|---|
filingDateInEst |
filingDate |
filingMonth |
filingDate[:7] |
filingDateInUtc |
acceptanceDateTime[:10], or filingDate |
filingTimeInEst, filingTimeInUtc, acceptanceDateTimeInEst, acceptanceDateTimeInUtc |
acceptanceDateTime |
linkToFilingDetail, linkToFiling |
filingIndexUrl |
linkToSubmissionTxt, linkToTxt |
submissionTextUrl |
linkToPrimaryDocument |
primaryDocumentUrl |
filers |
entities |
linksToDocuments |
documentFormatFiles[].url |
Note: when SEC's header has no acceptance time, filingTimeInEst and filingTimeInUtc show a made-up noon Eastern placeholder, while acceptanceDateTime is absent. Use filing.get("acceptanceDateTime") and handle None.
iter_filings(**params)
Auto-paginating generator that yields individual filings across all pages.
# Walk all of Apple's 10-K filings without managing cursors yourself
for filing in client.iter_filings(ticker="AAPL", form_types="10-K", limit=1000):
print(filing["id"], filing["filingDate"])
Accepts the same filters as get_filings. Each page counts against your quota — use a larger limit to minimize requests.
get_filing(id)
Fetch a single filing by its internal ID. Returns None if not found.
filing = client.get_filing("abc123...")
get_filing_by_accession(accession_number)
Fetch a single filing by its SEC accession number. Returns None if not found.
filing = client.get_filing_by_accession("0001193125-24-012345")
get_entity(*, ticker=None, cik=None)
Look up a company's SEC profile. Provide either ticker or cik.
entity = client.get_entity(ticker="AAPL")
print(entity["name"], entity["cik"], entity["sicDescription"])
Returns a dict with: cik, name, ticker, exchange, sicCode, sicDescription, stateOfIncorporation, fiscalYearEnd, businessAddress, website, formerNames, and more. Returns None if not found.
get_news(**params)
Retrieve SEC press releases and market news.
result = client.get_news(
news_type="PressReleases",
start_date="2026-01-01",
end_date="2026-01-31",
limit=40,
)
for item in result["news"]:
print(item["date"], item["newsType"])
| Parameter | Type | Description |
|---|---|---|
news_type |
str |
News category (default: "PressReleases") |
start_date |
str |
Date range start YYYY-MM-DD |
end_date |
str |
Date range end YYYY-MM-DD |
limit |
int |
Results, default 40, max 100 |
get_news_item(id)
Fetch a single news item by ID. Returns None if not found.
TypeScript / type checking
Full type stubs are included. All response shapes are described as TypedDict classes.
from sec_daily_api import Filing, FilingParty, Entity, NewsItem, FilingsResponse
Error handling
from sec_daily_api import SecDailyAPI, SecDailyAPIError
try:
result = client.get_filings(ticker="AAPL")
except SecDailyAPIError as err:
print(err.status, err) # e.g. 403, "SecDaily API error 403: Forbidden"
| Status | Meaning |
|---|---|
| 400 | Invalid parameters |
| 403 | Invalid or missing API key |
| 429 | Rate limit exceeded — retried automatically up to 3 times |
| 504 | Request timed out — retried automatically up to 3 times |
| 500 | Server error |
Resources
- Docs: secdailyapi.com/docs
- Pricing: secdailyapi.com/pricing
- Dashboard: secdailyapi.com/dashboard
- Node.js SDK: sec-daily-api on npm
- MCP Server: sec-daily-mcp on npm
Legal disclaimer
The data provided through this SDK is for informational purposes only and does not constitute investment advice, financial advice, trading advice, or any other type of advice. GoodTech LLC makes no representations as to the accuracy, completeness, or timeliness of the data. You are solely responsible for your use of the data. Always consult a qualified financial professional before making investment decisions.
Licensed under the Apache 2.0 License. Copyright 2026 GoodTech LLC.
Metadata
Release files for sec-daily-api 0.5.0
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 |
|---|---|---|---|---|
| sec_daily_api-0.5.0.tar.gz | 13.4 kB | Without provenance | Details for sec_daily_api-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sec_daily_api-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for sec_daily_api-0.5.0-py3-none-any.whl |
Total release size: 28.9 kB
Release files / sec_daily_api-0.5.0.tar.gz
| Download URL | sec_daily_api-0.5.0.tar.gz |
|---|---|
| Size | 13.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1896cda3c2963c114162f02e5c71d2e862c20eda2049c47759549de7f3f445be
|
|
BLAKE2b-256 checksum How to use checksums |
c3c70eeec7d49cacb296e576dd93f686fb0d971546f4310b0750fa2335915258
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / sec_daily_api-0.5.0-py3-none-any.whl
| Download URL | sec_daily_api-0.5.0-py3-none-any.whl |
|---|---|
| Size | 15.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7bab4643816afe457d47fee3a06b45d2ae7b0715195dfc8d172d79025c6c9a1b
|
|
BLAKE2b-256 checksum How to use checksums |
fad2c77cd834b3ad8fefee2b6d8217d5672b601f53cf68eac4dd74e045c42c81
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for sec-daily-api 0.5.0
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.