Search Documents
Documents
Search Documents
Search SEC filings with keyword, semantic, or hybrid modes
GET
Search Documents
Overview
Search across SEC filing sections including debt footnotes, credit agreements, indentures, and MD&A sections. Find covenant language, guarantor lists, and specific debt terms. Supports three search modes:- Keyword (default) — PostgreSQL full-text search with relevance ranking
- Semantic — Vector similarity search using Gemini embeddings (finds conceptually similar content even without keyword matches)
- Hybrid — Combines keyword and semantic results via Reciprocal Rank Fusion for the best of both
Request
string
required
Search query. For keyword/hybrid mode, uses full-text search syntax. For semantic mode, use natural language.Example:
maintenance covenant, subordinated, can they pay dividendsstring
default:"keyword"
Search mode. One of:
keyword— Full-text search with relevance ranking (default)semantic— Vector similarity search using AI embeddingshybrid— Combines keyword + semantic via Reciprocal Rank Fusion
string
Comma-separated company tickers.Example:
RIG,CHTRstring
Filing type:
10-K, 10-Q, 8-Kstring
Section type to search. See section types below.
string
Minimum filing date (YYYY-MM-DD).
string
Maximum filing date (YYYY-MM-DD).
string
Fields to return.Example:
ticker,section_type,snippet,relevance_score,semantic_scorestring
default:"-relevance"
Sort order:
-relevance, -filing_date, filing_dateinteger
default:"50"
Results per page. Maximum 100.
integer
default:"0"
Pagination offset.
Section Types
Response
array
Array of matching document sections.
Examples
Search Debt Footnotes
Response
Search Credit Agreements
Find maintenance covenants:Search Indentures
Find events of default:Semantic Search
Find conceptually similar content using natural language — no exact keyword match needed:Semantic search finds “Limitation on Restricted Payments” for the query “can they pay dividends” — even though none of the keywords match. This is the power of vector similarity search.
Hybrid Search
Combine keyword precision with semantic understanding:Get Full Document Content
Use Cases
Find Covenant Details
Search for Specific Terms
Monitor Filing Updates
Search Modes
When to use each mode:
- Use
keywordwhen you know the exact terminology (e.g.,event of default,SOFR) - Use
semanticwhen asking questions in plain English (e.g.,can they pay dividends,what happens if they miss a payment) - Use
hybridwhen you want comprehensive results that catch both exact matches and conceptually related content
Notes
- Keyword mode uses PostgreSQL full-text search with relevance ranking
- Semantic mode uses 768-dimensional Gemini embeddings with cosine similarity
- Hybrid mode combines both via Reciprocal Rank Fusion (k=60)
- Snippets highlight matching terms with
<b>tags (keyword and hybrid modes) - Credit agreements and indentures can be large (up to 500K chars)
- Use
contentfield sparingly to avoid large responses - Credit cost: 3 credits per request

