SEC Daily API
One SDK. Real-time access to SEC filings, news, and company data — sourced directly from EDGAR.
Install
npm install sec-daily-apiInitialize
import { SecDailyAPI } from "sec-daily-api";
const client = new SecDailyAPI({
apiKey: process.env.SEC_DAILY_API_KEY,
});The SDK reads SEC_DAILY_API_KEY from your environment automatically — no need to pass it explicitly if the variable is set. Get your key from the dashboard after creating a free account.
Methods
| Method | Description |
|---|---|
client.getFilings(params?) | Search SEC filings by ticker, CIK, form type, or date range |
client.getNews(params?) | Fetch SEC press releases and market news |
client.getEntity(params) | Look up a company by CIK or ticker |
Quick example
const { filings } = await client.getFilings({
ticker: "AAPL",
formTypes: ["10-K", "10-Q"],
limit: 10,
});
for (const filing of filings) {
console.log(filing.formType, filing.filingDateInEst, filing.entity?.name);
}Error handling
The SDK throws an Error on non-2xx responses. Wrap calls in try/catch:
try {
const { filings } = await client.getFilings({ ticker: "AAPL" });
} catch (err) {
// err.message includes the HTTP status and response body
console.error(err.message);
}| Status | Meaning |
|---|---|
401 | Missing API key |
403 | Invalid key, or date range exceeds your plan's history limit |
429 | Monthly request quota exceeded — upgrade your plan |
500 | Server error — retry with backoff |
Need help?
Email support@secdaily.io.