EDGAR full-text search
GET /api/edgar-searchGeneral-purpose full-text search across every SEC filing since 2001. Send GET /api/edgar-search with the required field q and pay $0.005 per call over x402 or MPP (there is no free tier). It returns a JSON object with q, forms, windowDays, total, returned and 1 more.
Find any phrase in any filing - material-weakness language in 10-Ks, going-concern in 10-Qs, "Russia" exposure across all forms. Supports form-type, CIK, US-state, and date-window filters. Source: EDGAR full-text search (efts.sec.gov). ?q=going+concern&forms=10-Q&days=30
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
q | string | yes | Search phrase (quote-wrap for exact match, e.g. "material weakness") Also accepted as query, search, term, keyword. |
forms | string | no | Comma-separated form filter, e.g. "10-K,10-Q" or "8-K" |
ticker | string | no | Restrict to a single company by ticker |
cik | string | no | Restrict to a single company by CIK |
days | number | no | Lookback window in days, 1-3650 (default unset = all-time) |
locationCode | string | no | Two-letter US state code to filter by issuer location (e.g. "CA") |
limit | number | no | Max hits to return, 1-100 (default 25) |
Example request
curl -i "https://agent402.tools/api/edgar-search?q=going+concern&forms=10-Q&days=90&limit=5"
Without payment this returns HTTP 402 Payment Required with the exact price for edgar-search; any x402 v2 or MPP client pays it and retries.
Example response
{
"q": "going concern",
"forms": "10-Q",
"windowDays": 90,
"total": 1287,
"returned": 5,
"hits": [
{
"accessionNumber": "0001213900-25-088888",
"form": "10-Q",
"filedDate": "2025-11-10",
"cik": "0001234567",
"displayNames": [
"Example Distressed Co"
],
"url": "https://www.sec.gov/Archives/edgar/data/1234567/000121390025088888/ex10q.htm",
"primaryDocument": "ex10q.htm"
}
]
}
| Field | Type | Always present | In the example |
|---|---|---|---|
q | string | yes | going concern |
forms | string | yes | 10-Q |
windowDays | number | yes | 90 |
total | number | yes | 1287 |
returned | number | yes | 5 |
hits | array of objects | yes | 1 item in the example |
From an MCP client
catalog.call {
"slug": "edgar-search",
"params": {
"q": "going concern",
"forms": "10-Q",
"days": 90,
"limit": 5
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for edgar-search; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
qis required. An input the tool rejects returns an HTTP 4xx whose body carrieserror,tool,expected,requiredandexample, so the caller can correct it.- A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is cancelled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
POSTwith a JSON body to /api/edgar-search is served as this GET, with the body as the input. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/edgar-search?q=going+concern&forms=10-Q&days=90&limit=5");
Part of these workflows
EDGAR full-text search is one step in these 2 skill packs, each sold as a single call:
- SEC filings deep-dive - Pull the full EDGAR picture of a US public company in one workflow: recent filings, key financial time series, insider trades, and full-text search across the corpus.
- SEC regulatory monitoring - The 'who just filed / who just bought / what just IPO'd / what does the full-text search say' monitoring loop. Five EDGAR tools composed: full-text search for a keyword, surface recent filings on the matched companies, pull insider Form 4 transactions, pull 13F institutional holdings changes, and check the IPO calendar. Different from sec-filings-deep-dive (which goes deep on one company's earnings) - this is the wide-and-recent radar.
Related tools
EDGAR recent filings
GET /api/edgar-filingsRecent SEC filings for a company by ticker or CIK, newest first. Optionally filter by form type (10-K, 10-Q, 8-K, 4, S-1…
SEC filing report (what the company just filed)
POST /v1/filing-reportName a US ticker and get one cited report on what the company just filed with the SEC: every filing in EDGAR's index for…
EDGAR XBRL company-concept (one tag, full history)
GET /api/edgar-company-conceptFull reported history of a single XBRL concept for one company (e.g. quarterly Revenues for Apple). Each datapoint cites…
EDGAR company lookup (ticker → CIK)
GET /api/edgar-company-lookupResolve a US stock ticker (e.g. AAPL) to its SEC CIK number, the primitive every other EDGAR call needs. Returns ticker,…
EDGAR XBRL frame (cross-company snapshot)
GET /api/edgar-xbrl-frameAll US public companies that reported a given XBRL tag for a given period, in one call. Killer endpoint for cross-sectio…
Company financials summary
GET /api/company-financialsKey financial metrics (Revenue, Net Income, Operating Income, Total Assets, Liabilities, Equity, EPS, Operating Cash Flo…