SEC filings API
Access complete SEC filing documents (10-K annual reports, 10-Q quarterly reports, 8-K current events) stored in S3 with metadata in PostgreSQL.This endpoint serves the complete filing documents. For intelligent retrieval and Q&A over SEC filings, use the SEC Agent via the chat endpoint.
Get available filings
Retrieve list of available SEC filings for a company. Endpoint:GET /sec-filings/{ticker}/available
Path parameters
Company ticker symbol (e.g., “AAPL”, “MSFT”)
Query parameters
Filter by filing type: “10-K”, “10-Q”, or “8-K” (optional)
Response
List of available filings
Example
Get filing document
Retrieve complete SEC filing document in markdown format. Endpoint:GET /sec-filings/{ticker}/{filing_type}/{fiscal_year}
Path parameters
Company ticker symbol
Filing type: “10-K”, “10-Q”, or “8-K”
Fiscal year (returns most recent filing for that year or earlier)
Response
Company ticker
Filing type
Fiscal year
Date filed
Official company name
Document size in characters
Complete filing document in markdown format
Example
Get filing with highlights
Retrieve SEC filing with relevant sections highlighted based on search context. Endpoint:POST /sec-filings/with-highlights
Requires authentication. This endpoint highlights relevant sections from the filing based on chunks returned by the SEC agent.
Request body
Company ticker
Filing type: “10-K”, “10-Q”, or “8-K”
Fiscal year
Quarter (1-4) for 10-Q filings
Array of chunk objects with text and metadata to highlight
Response
Same as GET endpoint but with<mark> tags injected around relevant sections.
Example
Storage architecture
Metadata
PostgreSQL stores filing metadata: ticker, fiscal year, filing date, document length
Documents
Railway S3 bucket stores complete markdown documents with section structure
Use cases
View complete 10-K report
View complete 10-K report
Retrieve full annual report with all sections (Business, Risk Factors, Financial Statements, etc.)
Access 10-Q quarterly filings
Access 10-Q quarterly filings
Get quarterly reports with financial data and management discussion
Read 8-K current events
Read 8-K current events
Access material event disclosures (earnings releases, leadership changes, acquisitions)
Highlight relevant sections
Highlight relevant sections
Display filing with specific sections highlighted based on search query
Related endpoints
Chat API
Ask questions about SEC filings using the intelligent SEC agent
SEC Agent
Learn about the planning-driven retrieval system