SEC Daily API

One SDK. Real-time access to SEC filings, news, and company data — sourced directly from EDGAR.

Install

npm install sec-daily-api

Initialize

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

MethodDescription
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);
}
StatusMeaning
401Missing API key
403Invalid key, or date range exceeds your plan's history limit
429Monthly request quota exceeded — upgrade your plan
500Server error — retry with backoff

Need help?

Email support@secdaily.io.