Site efts.sec.govTask search-edgar-full-text-filingsVersion v6Updated Sep 16, 2026Category search
Search SEC EDGAR filing text through the JSON full-text endpoint and return normalized filing metadata and archive URLs, including exact-form filtering, complete pagination, zero-result searches, and empty offset pages. This skill was captured from a live agent session on efts.sec.gov and is published here as a reusable recipe for agents.
NoteSelectors and URL schemes drift as sites change. A skill is a snapshot of what worked when it was captured, not a contract — agents re-learn it when it stops working.
Search SEC EDGAR filing text through the JSON full-text endpoint and return normalized filing metadata and archive URLs. Supports exact form filtering, bounded date ranges, complete pagination, zero-result searches, Unicode and emoji queries, human-style result pages, and offsets beyond the available result set.
Use Cases
Find every EDGAR filing mentioning a phrase.
Search non-ASCII or emoji-containing text while preserving the decoded query.
Restrict full-text results to exact SEC form types.
Enumerate filings within a custom date range.
Retrieve a specific 10-result human-style search page or test an empty offset.
Automation Flow
For each independent query, build https://efts.sec.gov/LATEST/search-index?q={query}&forms={forms}&dateRange=custom&startdt={start-date}&enddt={end-date}&from={offset}. URL-encode Unicode and emoji; omit forms when unfiltered. For human-style page {page}, use offset=({page}-1)*10.
Goto the URL and run this extractor. With from>0, it takes the first 10 raw hits from that API response, then applies exact-form filtering as the requested human-style page; with from=0, it advances by the actual number of raw hits returned, up to the 10,000-hit window, and reports whether enumeration is complete. An offset beyond the available hits returns fetched_hits: 0 and returned: 0 while preserving the reported total. total_results counts API hits; returned counts results after exact-form filtering and accession deduplication.
If status is partial, do not claim complete coverage. If total_relation is gte or the result set reaches 10,000 hits, split the requested date range into smaller custom windows, run the full extractor from from=0 for each window, and stitch results by accession number.
Params
Param
What it does
Example value
query
Full-text phrase or expression; URL-encode it and preserve decoded quotation marks in the returned query field
%22annual%20report%22
forms
Comma-separated form filter; extractor enforces exact returned form values
10-K,20-F
dateRange
Search mode
custom
start-date
Inclusive custom-range start
2020-01-01
end-date
Inclusive custom-range end
2024-12-31
offset
Zero-based API result offset; use ({page}-1)*10 for a human-style page
200
page
Human-style page number used to calculate offset
3
Possible Friction Points
Trigger
Action
forms=10-K results contain 10-K/A amendments
Keep only records whose _source.form exactly equals 10-K; the extractor does this automatically.
Response reports total_relation: "gte" or reaches the 10,000-hit endpoint cap
Recursively split the date range into custom windows, paginate each window by the raw hit count actually returned, and deduplicate by accession number.
A hit has no matching filename in _id
Keep matching_file and document url null, and use the generated filing_index_url for the filing contents.
In-page pagination fetch returns a non-OK response, including a transient 500
Retry the identical offset URL in the BQL session; if it persists, navigate directly to that offset URL and run the extractor there.
An offset page returns no hits while total_results is positive
Treat that offset as an empty page; retain the reported total and do not infer additional records.
A human-style page is requested
Use API offset ({page}-1)*10, then retain only the first 10 hits; an empty page returns results: [].
Browser header-setting command is rejected
Set requester identification in the HTTP client or browser session; page JavaScript cannot set User-Agent.
from is a raw hit offset, not a page number. Advance by hits.hits.length before filtering forms or deduplicating accessions. Never assume a fixed 10- or 100-hit batch; a request or server default can return fewer hits.
For direct HTTP clients, identify the requester with a descriptive User-Agent such as Your Company contact@example.com. Browser JavaScript cannot set that header; configure it in the HTTP client or browser session. Keep aggregate traffic within SEC's fair-access guidance of 10 requests per second; the sequential extractors pause between requests.
forms=10-K may include amendments. These extractors filter exact _source.form values after pagination; raw hit totals can exceed returned distinct filings.
Additional filters use ciks, plural locationCodes, and locationType=incorporated when applicable. Preserve them on pagination URLs. SIC is available in response metadata; do not assume a SIC query parameter is supported.
Matching document filenames come from the suffix of _id after :. The search response does not supply matched-text snippets; fetch the document separately when needed. Preserve co-registrant arrays instead of treating every filing as a single filer.