SEC API docs ▾

SEC filings from the command line: npx quantisnow

quantisnow is a small command-line tool for the SEC API, published on npm. It needs Node.js 18 or later and nothing else; npx runs it without installing. Install notes cover global installs, Windows, CI and upgrading. New accounts get 20 free calls.

Sign in

shell
npx quantisnow login

This opens your browser to sign in to Quantisnow (or create an account) and saves the sign-in to ~/.config/quantisnow/config.json, readable only by you. On a server or in CI, use an API key instead:

shell
npx quantisnow login --key qs_your_key   # save a key
npx quantisnow login --paste            # paste it at a prompt, so it stays out of shell history
export QUANTISNOW_API_KEY=qs_your_key   # or just set it for one shell

npx quantisnow whoami shows who you're signed in as, and npx quantisnow logout removes the saved sign-in.

Search inside filings

shell
npx quantisnow search '"substantial doubt" "going concern"' --forms 10-K,10-Q
npx quantisnow search '"material weakness" ticker:SMCI'
npx quantisnow search '"reverse stock split"' --forms 8-K --newest

search uses full-text search: words and quoted phrases inside every filing and its exhibits, with the same field filters as the API.

Ask in plain English

shell
npx quantisnow ask "which directors bought more than $500K of their own stock this month"

It turns the question into a query, prints the query so you can reuse it, and shows the rows. See plain-English questions.

Shortcuts for each dataset

shell
# Insider trades (Form 4)
npx quantisnow insiders --min 1m            # open-market buys over $1M, last 30 days
npx quantisnow insiders NVDA --sells --days 90

# A company's filings
npx quantisnow filings TSLA --form 8-K --days 365

# 8-K events by item
npx quantisnow events officers              # Item 5.02: officer and director changes
npx quantisnow events auditor --days 365    # Item 4.01: auditor changes
npx quantisnow events 1.03                  # bankruptcy

# 13F holders, financials, Congress
npx quantisnow holders AAPL --change new    # funds that opened a position last quarter
npx quantisnow financials MSFT --annual
npx quantisnow congress NVDA

Add --show-query to any shortcut to see the query it sends, which you can then use from code or query.

Any query

shell
npx quantisnow datasets
npx quantisnow query 13f/holdings "manager.cik:0001067983 AND period:2026-09-30" --sort valueUsd:desc

datasets lists the dataset names; each one's fields are on its docs page, and the query syntax is the same as the API's.

Output

  • -n 50 (or --size) for more rows, up to 50.
  • --json (or -j) prints the raw API response, for jq and scripts.
  • --no-links hides the link printed under each row.
shell
npx quantisnow insiders --min 1m --json | jq -r '.data[] | [.issuer.ticker, .purchased.valueUsd] | @tsv'

Add the MCP server to your AI tools

shell
npx quantisnow mcp install claude-code
npx quantisnow mcp install claude-desktop
npx quantisnow mcp install cursor
npx quantisnow mcp install vscode
npx quantisnow mcp install windsurf
npx quantisnow mcp install codex
npx quantisnow mcp install gemini

Each one adds Quantisnow to that client's MCP config and leaves the rest of the file alone; the old file is kept next to it as .bak. Add --print to see the change without writing it. Clients that speak remote MCP get the server URL and sign you in themselves; Claude Desktop and Codex get npx quantisnow mcp, a local bridge that uses your CLI sign-in.

npx quantisnow mcp on its own runs that bridge over stdio for any client that only starts commands. npx quantisnow mcp url prints the server URL, https://www.quantisnow.com/api/v1/mcp. Setup by hand for each client is on the MCP pages.

Calls and limits

Every search, ask and MCP tool call is one call, the same as the API. npx quantisnow usage shows your plan, the calls left this month and your credits, and doesn't count as a call. When calls run out you get a 429 message, never a charge. Plans and limits are on the pricing page.

Run your own queries with a key

Sign up, press one button on the keys page and the key is on your screen, with 20 free calls to try it.

Quantisnow is not affiliated with or endorsed by the U.S. Securities and Exchange Commission. EDGAR is the SEC's filing system; the filings themselves are public records.