legal.secFiling() supports both full-text filing search via efts.sec.gov and structured company filing history via data.sec.gov.
Endpoint
Full-text filing search
Usetype: 'search' to search across the text of filings and exhibits.
Entity filing history
Usetype: 'entity' when you already know the filer by CIK or ticker.
Response fields
total: total filings matching the requestfilings[].accessionNumber: SEC accession number for the filingfilings[].documents[]: directsec.gov/ArchivesURLs for the matched or primary filing documentfilings[].snippet: highlighted text excerpt from the SEC full-text search result;nullfortype: 'entity'filings[].secUrl: canonical EDGAR filing index page
Notes
type: 'search'uses SEC full-text search and supports boolean queries, phrases, and exhibit matches.type: 'entity'uses the filer submissions API and resolves tickers to CIKs automatically.formTypespasses through directly to the SEC APIs; no restricted enum is enforced.limitis capped at100andoffsetuses standard offset pagination.- This endpoint is free and uses only SEC-operated infrastructure.