SEC Blast API

TypeScript SDK

Official TypeScript SDK for the SEC Blast API.

Installation

bash
npm install @secblast/sdk

Quick Start

TypeScript
import { SecBlastClient } from '@secblast/sdk';

const client = new SecBlastClient({ apiKey: 'your-api-key' });

// Look up a company
const entities = await client.entityLookup({ tickers: ['AAPL'] });
console.log(entities.entities[0].name);

// Get recent filings
const filings = await client.filingLookup({
  tickers: ['AAPL'],
  form_types: ['10-K'],
  to: 5
});

// Get financial data
const balanceSheet = await client.getBalanceSheet({ cik: '320193' });

Features

Type Safety

Full TypeScript definitions with IDE autocomplete.

Async Support

Promise-based API with async/await support.

Error Handling

Structured exceptions for auth, rate limits, and validation errors.

Browser + Node.js

Works in both browser and Node.js environments.

Available Methods

MethodDescription
entityLookup()Search and filter SEC entities
filingLookup()Search SEC filings
getFilingInfo()Get filing details
fulltextSearch()Full-text search across filings
getDocument()Get raw document content
generatePdf()Generate PDF from filing
getBalanceSheet()Get balance sheet data
getIncomeStatement()Get income statement data
getCashFlow()Get cash flow statement
getFinancialHistory()Get historical financial data