{"openapi":"3.1.0","info":{"title":"Edgrapi — US Government Data API","description":"Official US government data as clean JSON on one API key. SEC EDGAR filings (insider Form 4 trades, 8-K events, 13F fund holdings, 13D/13G activist stakes, financial statements and ratios), SAM.gov federal contract opportunities, USAspending awards, Grants.gov grant opportunities, and US House Congress stock trades. Hosted MCP server plus REST, with real-time webhooks when a watched company files. One key, one normalized schema.","contact":{"name":"Edgrapi","url":"https://edgrapi.com/"},"license":{"name":"Proprietary"},"version":"1.0.0"},"paths":{"/v1/keys":{"post":{"tags":["meta"],"summary":"How to get an API key","description":"Anonymous key minting is disabled. Each anonymous mint created a fresh 50-credit account,\nso the free tier was bypassable by key rotation (a scripted client could get unlimited free\naccess). Getting a key now requires a free account — email, no card — which keeps one wallet\nper person and preserves the paywall. Existing keys keep working; the dashboard mints more.","operationId":"create_free_key_v1_keys_post","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/health":{"get":{"tags":["meta"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/company/{ticker}":{"get":{"tags":["fundamentals"],"summary":"Company profile and CIK lookup","description":"Company profile from SEC EDGAR: name, CIK, SIC industry, exchanges, fiscal\nyear end. The lookup you make before any other call.","operationId":"company_v1_company__ticker__get","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string","description":"Stock ticker, e.g. AAPL","title":"Ticker"},"description":"Stock ticker, e.g. AAPL"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/fundamentals/{ticker}":{"get":{"tags":["fundamentals"],"summary":"Financial statements (income, balance sheet, cash flow)","description":"Income statement, balance sheet, and cash flow from SEC filings as clean\nJSON, annual or quarterly. Same field names for every company, so you stop\nwriting per-ticker special cases.","operationId":"fundamentals_v1_fundamentals__ticker__get","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string","description":"Stock ticker, e.g. AAPL","title":"Ticker"},"description":"Stock ticker, e.g. AAPL"},{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^(annual|quarterly)$","default":"annual","title":"Period"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":20,"minimum":1,"default":5,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/ratios/{ticker}":{"get":{"tags":["fundamentals"],"summary":"14 financial ratios + per-share figures","description":"14 named ratios worked out from a company's SEC statements: margins, ROE,\nROA, current ratio, debt-to-equity, and revenue growth. Also returns the\nper-share figures (eps_diluted, book_value_per_share, shares_outstanding) so\nyou can compute price ratios yourself: P/E = your price / eps_diluted,\nP/B = your price / book_value_per_share.","operationId":"ratios_v1_ratios__ticker__get","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string","description":"Stock ticker, e.g. AAPL","title":"Ticker"},"description":"Stock ticker, e.g. AAPL"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/filings/{ticker}":{"get":{"tags":["filings"],"summary":"All filings by form (10-K, 10-Q, 8-K, Form 4)","description":"Every filing a company has made, each linked to the document on SEC.gov.\nFilter by form to pull just the 10-Ks, the 8-Ks, or the Form 4s.","operationId":"filings_v1_filings__ticker__get","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string","description":"Stock ticker, e.g. AAPL","title":"Ticker"},"description":"Stock ticker, e.g. AAPL"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"form","in":"query","required":false,"schema":{"type":"string","description":"Filter by form, e.g. 10-K, 8-K, or 4","title":"Form"},"description":"Filter by form, e.g. 10-K, 8-K, or 4"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/sections/{ticker}":{"get":{"tags":["filings"],"summary":"10-K/10-Q/S-1 narrative sections (Risk Factors, MD&A, Use of Proceeds)","description":"Narrative sections from the latest 10-K/10-Q, or from an IPO registration statement\n(S-1 / S-1/A), as clean text (Risk Factors, MD&A, Business, Use of Proceeds, etc.) — built\nfor LLM/RAG equity research. For a company that hasn't listed yet, pass its CIK.","operationId":"filing_sections_v1_sections__ticker__get","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string","description":"Stock ticker, e.g. AAPL","title":"Ticker"},"description":"Stock ticker, e.g. AAPL"},{"name":"form","in":"query","required":false,"schema":{"type":"string","description":"Filing type: 10-K, 10-Q, S-1 (latest S-1 or S-1/A registration statement) or S-1/A","default":"10-K","title":"Form"},"description":"Filing type: 10-K, 10-Q, S-1 (latest S-1 or S-1/A registration statement) or S-1/A"},{"name":"item","in":"query","required":false,"schema":{"type":"string","description":"Section to fetch, e.g. 1A (Risk Factors) or 7 (MD&A) for a 10-K. For a 10-Q, item numbers repeat across Part I (financial) and Part II (other info), so prefix the part, e.g. I.2 (MD&A) or II.1A (Risk Factors); a bare number defaults to Part I. For an S-1, use a named key: risk_factors, use_of_proceeds, mda, business, principal_stockholders, shares_eligible, underwriting. Omit to list sections.","title":"Item"},"description":"Section to fetch, e.g. 1A (Risk Factors) or 7 (MD&A) for a 10-K. For a 10-Q, item numbers repeat across Part I (financial) and Part II (other info), so prefix the part, e.g. I.2 (MD&A) or II.1A (Risk Factors); a bare number defaults to Part I. For an S-1, use a named key: risk_factors, use_of_proceeds, mda, business, principal_stockholders, shares_eligible, underwriting. Omit to list sections."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/download":{"get":{"tags":["filings"],"summary":"Download a filing document by accession","description":"Fetch a filing's document straight from the EDGAR archive, through Edgrapi's\npoliteness gate, circuit breaker and week-long cache, so you don't hit SEC.gov\ndirectly or manage the User-Agent and rate limits. Omit `file` to get the primary\ndocument (the 10-K, 8-K, Form 4, etc.); pass `file` to pull a specific exhibit.\nText documents (HTML, XML, TXT) only; binary exhibits keep their SEC.gov URL in\n/v1/filings.","operationId":"download_filing_v1_download_get","parameters":[{"name":"accession","in":"query","required":true,"schema":{"type":"string","description":"Accession number, e.g. 0000320193-24-000123","title":"Accession"},"description":"Accession number, e.g. 0000320193-24-000123"},{"name":"file","in":"query","required":false,"schema":{"type":"string","description":"Document filename within the filing; omit for the primary document","title":"File"},"description":"Document filename within the filing; omit for the primary document"},{"name":"cik","in":"query","required":false,"schema":{"type":"string","description":"Filer CIK; omit to derive it from the accession","title":"Cik"},"description":"Filer CIK; omit to derive it from the accession"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/insider/{ticker}":{"get":{"tags":["insider"],"summary":"Insider trades (Form 4) + market-wide buys","description":"Parsed insider transactions from SEC Form 4 (and 3/5): who traded, their\nrole, the transaction code, share count, price, and whether the trade was an\nopen-market decision or automatic compensation. Code P (open-market purchase)\nis the only signal where the insider spent their own money; sales tagged\nplan_10b5_1 were pre-scheduled and carry little signal.\n\nUse ticker='latest' for the market-wide feed of the biggest open-market insider\nBUYS, or ticker='clusters' for companies where several insiders bought at once\n(the cluster-buy signal), newest and largest first.","operationId":"insider_trades_v1_insider__ticker__get","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string","description":"Ticker, 'latest' for market-wide buys, or 'clusters' for cluster buys","title":"Ticker"},"description":"Ticker, 'latest' for market-wide buys, or 'clusters' for cluster buys"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Recent filings to return; higher = slower on a cold ticker","default":6,"title":"Limit"},"description":"Recent filings to return; higher = slower on a cold ticker"},{"name":"form","in":"query","required":false,"schema":{"type":"string","description":"Ownership form: 3, 4, 5, or 144 (notice of proposed sale)","default":"4","title":"Form"},"description":"Ownership form: 3, 4, 5, or 144 (notice of proposed sale)"},{"name":"min_value","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"For 'latest'/'clusters': minimum buy value (USD)","default":50000,"title":"Min Value"},"description":"For 'latest'/'clusters': minimum buy value (USD)"},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":90,"minimum":1,"description":"For 'clusters': lookback window in days","default":15,"title":"Days"},"description":"For 'clusters': lookback window in days"},{"name":"min_insiders","in":"query","required":false,"schema":{"type":"integer","maximum":10,"minimum":2,"description":"For 'clusters': min distinct insiders","default":3,"title":"Min Insiders"},"description":"For 'clusters': min distinct insiders"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/form144/{ticker}":{"get":{"tags":["insider"],"summary":"Form 144 — notices of proposed insider sales","description":"Form 144 notices — an insider's declared INTENT to sell restricted or control\nstock, filed before the sale executes and shows up on a Form 4. A leading\nintent-to-sell signal, parsed: the seller, their relationship to the issuer, and\neach security block (shares to be sold, aggregate market value, approximate sale\ndate, exchange, broker), with totals across the notice.","operationId":"form144_v1_form144__ticker__get","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string","description":"Stock ticker, e.g. AAPL","title":"Ticker"},"description":"Stock ticker, e.g. AAPL"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Recent notices to return; higher = slower on a cold ticker (one SEC fetch per notice)","default":8,"title":"Limit"},"description":"Recent notices to return; higher = slower on a cold ticker (one SEC fetch per notice)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/holdings/{identifier}":{"get":{"tags":["holdings"],"summary":"13F institutional holdings + quarter-over-quarter changes","description":"A fund's latest 13F portfolio, parsed from the SEC information table, ranked by\nvalue, and diffed against the prior quarter so every position is labelled new,\nadded, reduced or unchanged — with the exits listed separately.\n\nPositions are aggregated by CUSIP (funds split one holding across sub-managers, so\nthe raw table double-counts). Options carry a `put_call` flag: a PUT is a bearish\nbet, not a long, and reporting it as a holding is the classic 13F mistake. Value is\nwhole dollars. Each position also carries a best-effort `ticker` resolved from its\nCUSIP; the issuer name and CUSIP stay authoritative, and `ticker` is null when the\nCUSIP has no US equity listing (a bond, a foreign issue) or isn't resolved yet.\n\nIdentify the fund by a known name (berkshire, burry, ackman, bridgewater, citadel,\n…), a raw CIK, or a ticker when the manager is itself public (BRK-B). 13F is a\nquarterly snapshot filed up to 45 days after quarter-end — it is a lagged position\nreport, not a live trade feed.","operationId":"institutional_holdings_v1_holdings__identifier__get","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","description":"Fund name (e.g. 'berkshire', 'burry', 'pershing-square'), a CIK, or a ticker whose company is the filer (e.g. BRK-B)","title":"Identifier"},"description":"Fund name (e.g. 'berkshire', 'burry', 'pershing-square'), a CIK, or a ticker whose company is the filer (e.g. BRK-B)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":500,"minimum":1,"description":"Max positions returned","default":50,"title":"Limit"},"description":"Max positions returned"},{"name":"changes","in":"query","required":false,"schema":{"type":"boolean","description":"Diff against the prior quarter (new/added/reduced/exited)","default":true,"title":"Changes"},"description":"Diff against the prior quarter (new/added/reduced/exited)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/activist/{identifier}":{"get":{"tags":["activist"],"summary":"Schedule 13D/13G — >5% stakes & activist filings","description":"Schedule 13D and 13G filings — the disclosure anyone crossing 5% of a company's\nvoting stock must make. A 13D signals possible activist intent (board pushes, sales,\nstrategy); a 13G is a passive large holder. The `/A` suffix is an amendment (stake\nraised, trimmed, or intent changed). Each record carries the issuer, CUSIP, the\nreporting person(s), and the exact percent of class, parsed from the SEC's structured\n13D/G XML.\n\nUse identifier='latest' for the real-time market-wide feed of new >5% stakes (the\nactivist radar), or a ticker to list the 13D/13G filings indexed on that company. The\nper-company view reads an accumulating store, so it deepens as the feed runs — it is a\nrolling recent window, not the full historical record.","operationId":"activist_stakes_v1_activist__identifier__get","parameters":[{"name":"identifier","in":"path","required":true,"schema":{"type":"string","description":"'latest' for the market-wide 13D/13G feed, or a ticker to list stakes indexed on that company","title":"Identifier"},"description":"'latest' for the market-wide 13D/13G feed, or a ticker to list stakes indexed on that company"},{"name":"activist_only","in":"query","required":false,"schema":{"type":"boolean","description":"For 'latest': keep only 13D (activist-intent) filings","default":false,"title":"Activist Only"},"description":"For 'latest': keep only 13D (activist-intent) filings"},{"name":"min_percent","in":"query","required":false,"schema":{"type":"number","maximum":100,"minimum":0,"description":"For 'latest': minimum percent of class","default":0,"title":"Min Percent"},"description":"For 'latest': minimum percent of class"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":40,"title":"Limit"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/restatements":{"get":{"tags":["events"],"summary":"Market-wide 8-K restatements (item 4.02)","description":"Market-wide feed of recent 8-K item 4.02 filings — non-reliance on previously\nissued financial statements, i.e. a company announcing its past financials can no\nlonger be trusted. One of the strongest red-flag signals in the filings.","operationId":"events_restatements_v1_events_restatements_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"description":"Lookback window for the scan","default":45,"title":"Days"},"description":"Lookback window for the scan"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/auditor-changes":{"get":{"tags":["events"],"summary":"Market-wide 8-K auditor changes (item 4.01)","description":"Market-wide feed of recent 8-K item 4.01 filings — changes in the registrant's\ncertifying accountant (an auditor switch). A resignation or dismissal of the auditor\nis a governance red flag worth watching.","operationId":"events_auditor_changes_v1_events_auditor_changes_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":50,"title":"Limit"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","maximum":365,"minimum":1,"description":"Lookback window for the scan","default":45,"title":"Days"},"description":"Lookback window for the scan"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/events/{ticker}":{"get":{"tags":["events"],"summary":"8-K material events","description":"8-K material events for a company as a typed stream: each event carries its\nitem codes with human labels (2.02 earnings, 5.02 exec change, 1.05 cyber\nincident...), a `notable` flag for the market-moving ones, and a link to the\nfiling. Set notable=true to skip routine 8-Ks, or item=4.02 to pull just one\nevent type (e.g. every restatement this company has filed).","operationId":"material_events_v1_events__ticker__get","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string","description":"Stock ticker, e.g. AAPL","title":"Ticker"},"description":"Stock ticker, e.g. AAPL"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"default":20,"title":"Limit"}},{"name":"notable","in":"query","required":false,"schema":{"type":"boolean","description":"Only earnings, M&A, exec changes, breaches, etc.","default":false,"title":"Notable"},"description":"Only earnings, M&A, exec changes, breaches, etc."},{"name":"item","in":"query","required":false,"schema":{"type":"string","description":"Filter to a specific 8-K item code, or comma-separated codes, e.g. 4.02 (restatement) or 5.02,2.02","title":"Item"},"description":"Filter to a specific 8-K item code, or comma-separated codes, e.g. 4.02 (restatement) or 5.02,2.02"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/resolve":{"get":{"tags":["reference"],"summary":"Resolve a ticker, CIK, or CUSIP to a company","description":"Map any one of ticker / CIK / CUSIP to the canonical SEC entity: legal name,\nCIK, ticker(s), exchange, SIC industry and sector, state of incorporation, and\nbusiness location. The foundational lookup the other endpoints lean on. CUSIP\nresolution goes through the same crosswalk 13F holdings use, so a CUSIP with no\nUS-listed equity (bonds, delisted, foreign) returns 404.","operationId":"resolve_entity_v1_resolve_get","parameters":[{"name":"ticker","in":"query","required":false,"schema":{"type":"string","description":"Stock ticker, e.g. AAPL","title":"Ticker"},"description":"Stock ticker, e.g. AAPL"},{"name":"cik","in":"query","required":false,"schema":{"type":"string","description":"SEC CIK, e.g. 320193 (zero-padding optional)","title":"Cik"},"description":"SEC CIK, e.g. 320193 (zero-padding optional)"},{"name":"cusip","in":"query","required":false,"schema":{"type":"string","description":"9-character CUSIP, e.g. 037833100","title":"Cusip"},"description":"9-character CUSIP, e.g. 037833100"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/search/fulltext":{"get":{"tags":["search"],"summary":"Full-text search across SEC filings","description":"Search the full text of every SEC filing since 2001, the same index behind\nEDGAR full-text search. Returns the matching filing documents with company, form,\ndate, 8-K item codes, and a link to the document on SEC.gov. Filter by form and\ndate range; page with `offset`.","operationId":"search_fulltext_v1_search_fulltext_get","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Query. Quote a phrase (\"climate change\") for exact match; space-separated terms are ANDed.","title":"Q"},"description":"Query. Quote a phrase (\"climate change\") for exact match; space-separated terms are ANDed."},{"name":"forms","in":"query","required":false,"schema":{"type":"string","description":"Comma-separated form filter, e.g. 8-K or 10-K,10-Q","title":"Forms"},"description":"Comma-separated form filter, e.g. 8-K or 10-K,10-Q"},{"name":"startdt","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Only filings on/after this date, YYYY-MM-DD","title":"Startdt"},"description":"Only filings on/after this date, YYYY-MM-DD"},{"name":"enddt","in":"query","required":false,"schema":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Only filings on/before this date, YYYY-MM-DD","title":"Enddt"},"description":"Only filings on/before this date, YYYY-MM-DD"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Results to return, 1-100","default":20,"title":"Limit"},"description":"Results to return, 1-100"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","maximum":9900,"minimum":0,"description":"Pagination offset into the result set","default":0,"title":"Offset"},"description":"Pagination offset into the result set"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/xbrl/by-accession/{accession}":{"get":{"tags":["xbrl"],"summary":"All XBRL concepts reported in one filing","description":"Every XBRL concept value reported in a single filing, matched on the accession\nnumber. Reconstructs one filing's structured data — each concept with its tag,\nlabel, unit, value, and period.","operationId":"xbrl_by_accession_v1_xbrl_by_accession__accession__get","parameters":[{"name":"accession","in":"path","required":true,"schema":{"type":"string","description":"Accession number, e.g. 0000320193-24-000123","title":"Accession"},"description":"Accession number, e.g. 0000320193-24-000123"},{"name":"cik","in":"query","required":false,"schema":{"type":"string","description":"Company CIK; omit to derive it from the accession (wrong for agent-filed forms)","title":"Cik"},"description":"Company CIK; omit to derive it from the accession (wrong for agent-filed forms)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/xbrl/{ident}":{"get":{"tags":["xbrl"],"summary":"Full XBRL financials as JSON","description":"Convert a company's full SEC XBRL (companyfacts) to JSON. By default returns the\nnormalized income statement, balance sheet and cash flow across every reported\nperiod, plus a `concepts_index` of every us-gaap/dei tag the filer reports. Pass\n`concept=` to pull the raw time series for any specific tag(s) — the complete\nconverter, not just the curated fundamentals.","operationId":"xbrl_v1_xbrl__ident__get","parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","description":"Stock ticker or CIK, e.g. AAPL or 320193","title":"Ident"},"description":"Stock ticker or CIK, e.g. AAPL or 320193"},{"name":"period","in":"query","required":false,"schema":{"type":"string","pattern":"^(annual|quarterly)$","default":"annual","title":"Period"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Max periods per statement","default":40,"title":"Limit"},"description":"Max periods per statement"},{"name":"concept","in":"query","required":false,"schema":{"type":"string","description":"Comma-separated us-gaap/dei tag(s) to return the raw series for, e.g. Revenues,Assets. Omit for normalized statements + the full concept index.","title":"Concept"},"description":"Comma-separated us-gaap/dei tag(s) to return the raw series for, e.g. Revenues,Assets. Omit for normalized statements + the full concept index."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/shares/{ticker}":{"get":{"tags":["fundamentals"],"summary":"Shares outstanding & public float","description":"Common shares outstanding and public float from the XBRL cover-page tags.\nShares outstanding updates every 10-Q/10-K; public float is reported on the 10-K\ncover, so it refreshes about yearly. The two numbers you need for market-cap and\nfree-float math (multiply shares by a price from your own feed).","operationId":"shares_v1_shares__ticker__get","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string","description":"Stock ticker or CIK, e.g. AAPL","title":"Ticker"},"description":"Stock ticker or CIK, e.g. AAPL"},{"name":"history","in":"query","required":false,"schema":{"type":"boolean","description":"Include the full reported history, not just the latest","default":false,"title":"History"},"description":"Include the full reported history, not just the latest"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/formd/latest":{"get":{"tags":["filings"],"summary":"Market-wide recent Form D private placements","description":"Recent Form D filings across all issuers — the live feed of new private\nplacements (Reg D raises). Each notice is parsed: issuer, jurisdiction, industry,\nthe amount offered and sold, the exemption claimed, and the related persons. A\nfunding signal that lands the day the raise is disclosed.","operationId":"formd_latest_v1_formd_latest_get","parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Recent Form D notices to return","default":20,"title":"Limit"},"description":"Recent Form D notices to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/formd/{ident}":{"get":{"tags":["filings"],"summary":"Form D private placements by issuer","description":"Parsed Form D private-placement notices for one issuer, newest first. Form D\nissuers are usually private companies, so identify them by CIK; a ticker also works\nwhen the issuer is public. Returns issuer, jurisdiction, industry, amount offered\nand sold, the Reg D exemption, related persons, and the date of first sale.","operationId":"formd_issuer_v1_formd__ident__get","parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","description":"Issuer CIK, or a ticker if the issuer is public","title":"Ident"},"description":"Issuer CIK, or a ticker if the issuer is public"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"Recent notices to return","default":10,"title":"Limit"},"description":"Recent notices to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/opportunities":{"get":{"tags":["government"],"summary":"Federal contract opportunities (SAM.gov)","description":"Federal contract opportunities from SAM.gov — solicitations, presolicitations,\nsources-sought, and award notices — normalized into flat JSON. Each record carries\nthe notice id, title, solicitation number, posted date, type, set-aside, NAICS, place\nof performance, award (when present), a point of contact, and the sam.gov link. SAM\ncaps a query window at one year; leave the dates off for the recent feed.","operationId":"opportunities_v1_opportunities_get","parameters":[{"name":"posted_from","in":"query","required":false,"schema":{"type":"string","description":"Posted-date start, YYYY-MM-DD (default: 30 days ago)","title":"Posted From"},"description":"Posted-date start, YYYY-MM-DD (default: 30 days ago)"},{"name":"posted_to","in":"query","required":false,"schema":{"type":"string","description":"Posted-date end, YYYY-MM-DD (default: today)","title":"Posted To"},"description":"Posted-date end, YYYY-MM-DD (default: today)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Records to return","default":20,"title":"Limit"},"description":"Records to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Page offset","default":0,"title":"Offset"},"description":"Page offset"},{"name":"naics","in":"query","required":false,"schema":{"type":"string","description":"NAICS code filter, up to 6 digits","title":"Naics"},"description":"NAICS code filter, up to 6 digits"},{"name":"ptype","in":"query","required":false,"schema":{"type":"string","description":"Procurement type: o solicitation, p presolicitation, a award, etc.","title":"Ptype"},"description":"Procurement type: o solicitation, p presolicitation, a award, etc."},{"name":"state","in":"query","required":false,"schema":{"type":"string","description":"Place-of-performance state, e.g. TX","title":"State"},"description":"Place-of-performance state, e.g. TX"},{"name":"set_aside","in":"query","required":false,"schema":{"type":"string","description":"Set-aside code, e.g. SBA, 8A, WOSB, HZC","title":"Set Aside"},"description":"Set-aside code, e.g. SBA, 8A, WOSB, HZC"},{"name":"title","in":"query","required":false,"schema":{"type":"string","description":"Match on opportunity title","title":"Title"},"description":"Match on opportunity title"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/awards":{"get":{"tags":["government"],"summary":"Federal awards (USAspending: contracts, grants, loans)","description":"Federal spending awards from USAspending.gov — contracts, grants, loans, and\ndirect payments — normalized into flat JSON. Each record carries the award id,\nrecipient, amount, awarding agency, type, dates, place of performance, description,\nand the usaspending.gov link. Pick one category per call; leave dates off for the\nlast year. Pairs with /v1/opportunities: a solicitation on SAM, the awards on here.","operationId":"awards_v1_awards_get","parameters":[{"name":"category","in":"query","required":false,"schema":{"type":"string","description":"contracts, idvs, grants, loans, direct_payments, or other","default":"contracts","title":"Category"},"description":"contracts, idvs, grants, loans, direct_payments, or other"},{"name":"keyword","in":"query","required":false,"schema":{"type":"string","description":"Full-text keyword filter","title":"Keyword"},"description":"Full-text keyword filter"},{"name":"agency","in":"query","required":false,"schema":{"type":"string","description":"Awarding agency, top-tier exact name, e.g. 'Department of Defense'","title":"Agency"},"description":"Awarding agency, top-tier exact name, e.g. 'Department of Defense'"},{"name":"recipient","in":"query","required":false,"schema":{"type":"string","description":"Recipient name search, e.g. 'Lockheed'","title":"Recipient"},"description":"Recipient name search, e.g. 'Lockheed'"},{"name":"state","in":"query","required":false,"schema":{"type":"string","description":"Place-of-performance state, e.g. CA","title":"State"},"description":"Place-of-performance state, e.g. CA"},{"name":"start","in":"query","required":false,"schema":{"type":"string","description":"Action-date start, YYYY-MM-DD (default: 1 year ago)","title":"Start"},"description":"Action-date start, YYYY-MM-DD (default: 1 year ago)"},{"name":"end","in":"query","required":false,"schema":{"type":"string","description":"Action-date end, YYYY-MM-DD (default: today)","title":"End"},"description":"Action-date end, YYYY-MM-DD (default: today)"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Records to return","default":20,"title":"Limit"},"description":"Records to return"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"sort","in":"query","required":false,"schema":{"type":"string","description":"amount, start, or end","default":"amount","title":"Sort"},"description":"amount, start, or end"},{"name":"order","in":"query","required":false,"schema":{"type":"string","description":"asc or desc","default":"desc","title":"Order"},"description":"asc or desc"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/grants":{"get":{"tags":["government"],"summary":"Federal grant opportunities (Grants.gov)","description":"Federal grant funding opportunities from Grants.gov, normalized into flat JSON.\nEach record carries the opportunity id and number, title, agency, status, the open\nand close dates, the Assistance Listing (CFDA) numbers, and the grants.gov link.\nDefaults to open opportunities (posted + forecasted). Completes the gov-funding\ntrio with /v1/opportunities (contracts) and /v1/awards (spending).","operationId":"grants_v1_grants_get","parameters":[{"name":"keyword","in":"query","required":false,"schema":{"type":"string","description":"Full-text keyword filter","title":"Keyword"},"description":"Full-text keyword filter"},{"name":"status","in":"query","required":false,"schema":{"type":"string","description":"Pipe/comma list of forecasted, posted, closed, archived (default posted|forecasted)","title":"Status"},"description":"Pipe/comma list of forecasted, posted, closed, archived (default posted|forecasted)"},{"name":"agency","in":"query","required":false,"schema":{"type":"string","description":"Agency code filter, e.g. HHS-OPHS","title":"Agency"},"description":"Agency code filter, e.g. HHS-OPHS"},{"name":"category","in":"query","required":false,"schema":{"type":"string","description":"Funding category code, e.g. HL (health)","title":"Category"},"description":"Funding category code, e.g. HL (health)"},{"name":"eligibility","in":"query","required":false,"schema":{"type":"string","description":"Eligibility code filter","title":"Eligibility"},"description":"Eligibility code filter"},{"name":"aln","in":"query","required":false,"schema":{"type":"string","description":"Assistance Listing (CFDA) number, e.g. 93.217","title":"Aln"},"description":"Assistance Listing (CFDA) number, e.g. 93.217"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Records to return","default":20,"title":"Limit"},"description":"Records to return"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"description":"Start record number","default":0,"title":"Offset"},"description":"Start record number"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/congress":{"get":{"tags":["government"],"summary":"Congressional stock trades (House STOCK Act)","description":"Recent congressional stock trades, newest first, parsed from US House STOCK Act\nperiodic transaction reports. Each record carries the member, state/district, ticker,\nbuy or sell, the disclosed dollar range, the transaction and disclosure dates, and a link\nto the House disclosure PDF. House-only for now; the Senate feed is coming.","operationId":"congress_feed_v1_congress_get","parameters":[{"name":"action","in":"query","required":false,"schema":{"type":"string","description":"Filter to 'buy' or 'sell'","title":"Action"},"description":"Filter to 'buy' or 'sell'"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Trades to return","default":40,"title":"Limit"},"description":"Trades to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/congress/{ticker}":{"get":{"tags":["government"],"summary":"Congressional trades in one stock","description":"Congressional stock trades in one ticker, newest first, from US House STOCK Act\nperiodic transaction reports. Same fields as the feed: member, buy/sell, dollar range,\ndates, and the House disclosure PDF link. House-only for now.","operationId":"congress_ticker_v1_congress__ticker__get","parameters":[{"name":"ticker","in":"path","required":true,"schema":{"type":"string","description":"Stock ticker, e.g. NVDA","title":"Ticker"},"description":"Stock ticker, e.g. NVDA"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Trades to return","default":40,"title":"Limit"},"description":"Trades to return"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/subsidiaries/{ident}":{"get":{"tags":["reference"],"summary":"Subsidiaries from 10-K Exhibit 21","description":"The company's subsidiaries and their jurisdictions of incorporation, parsed from\nExhibit 21 of its latest 10-K. Exhibit 21 is an HTML exhibit whose layout varies by\nfiler, so this is a best-effort table parse; the list is empty (billed at the 1-credit floor) when a filer\nfiles no Exhibit 21, which is common for companies claiming the significant-subsidiary\nexemption.","operationId":"company_subsidiaries_v1_subsidiaries__ident__get","parameters":[{"name":"ident","in":"path","required":true,"schema":{"type":"string","description":"Stock ticker or CIK, e.g. AAPL","title":"Ident"},"description":"Stock ticker or CIK, e.g. AAPL"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks":{"get":{"tags":["webhooks"],"summary":"List your webhooks","description":"List your webhooks (secrets are not returned).","operationId":"webhook_list_v1_webhooks_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}},"post":{"tags":["webhooks"],"summary":"Create a filing webhook","description":"Register a webhook. Body: {\"url\": \"https://...\", \"tickers\": [\"AAPL\",\"MSFT\"],\n\"events\": [\"insider\",\"8-k\"]}. You get a signing secret back, shown once.","operationId":"webhook_create_v1_webhooks_post","requestBody":{"content":{"application/json":{"schema":{"properties":{"url":{"type":"string","format":"uri","description":"https:// endpoint that receives the signed POSTs"},"tickers":{"items":{"type":"string"},"type":"array","description":"US tickers to watch (max 50)"},"events":{"items":{"type":"string","enum":["insider","8-k","activist"]},"type":"array","description":"Event types to fire on (default: insider, 8-k)"}},"type":"object","required":["url","tickers"]},"example":{"url":"https://example.com/edgrapi-hook","tickers":["AAPL","MSFT"],"events":["insider","8-k","activist"]}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/v1/webhooks/{wid}":{"delete":{"tags":["webhooks"],"summary":"Delete a webhook","description":"Permanently delete a webhook you own. Returns 404 if no webhook with that id exists\nfor your account (rather than falsely reporting success for an unknown id).","operationId":"webhook_delete_v1_webhooks__wid__delete","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","title":"Wid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{wid}/test":{"post":{"tags":["webhooks"],"summary":"Send a signed test delivery","description":"Send a signed test payload to a webhook so you can verify your endpoint\nand signature check before a real filing arrives.","operationId":"webhook_test_v1_webhooks__wid__test_post","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","title":"Wid"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{wid}/deliveries":{"get":{"tags":["webhooks"],"summary":"Recent delivery attempts for a webhook","description":"The recent delivery attempts for a webhook you own: the event, ticker, accession, whether the\nPOST succeeded, the HTTP status, and any error. The audit trail for debugging your endpoint.","operationId":"webhook_deliveries_v1_webhooks__wid__deliveries_get","parameters":[{"name":"wid","in":"path","required":true,"schema":{"type":"string","title":"Wid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":200,"minimum":1,"description":"Attempts to return, newest first","default":50,"title":"Limit"},"description":"Attempts to return, newest first"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"tags":[{"name":"insider","description":"Parsed Form 4 insider trades and the market-wide buy feed."},{"name":"events","description":"8-K material events with parsed item codes."},{"name":"webhooks","description":"Get a signed POST the moment a watched company files."},{"name":"fundamentals","description":"Financial statements & ratios."},{"name":"filings","description":"Filing history & 10-K/10-Q sections."},{"name":"government","description":"US government data beyond the SEC: federal contract opportunities and more."},{"name":"meta","description":"Health & discovery."}]}