# Search best practices

> Choose an operation, narrow the search and read the evidence behind each result.

Canonical URL: https://quantset.dev/docs/guides/search
Full LLM API Contract: https://api.quantset.dev/llms-full.txt

> ## For AI agents
> The QuantSet API is at https://api.quantset.dev. Send the key in the `X-API-Key` header. The sandbox key `mw_demo` needs no signup and reads the sample listings.
> No key yet? An agent can open an account on its own: https://api.quantset.dev/skill.md
> Connect an MCP client to https://api.quantset.dev/mcp. Client setup is at https://api.quantset.dev/agents.md.
> Start with https://api.quantset.dev/llms.txt or read the full reference at https://api.quantset.dev/llms-full.txt. The OpenAPI file is https://api.quantset.dev/openapi.json. Add `.md` to any docs URL to get that page as Markdown.

Start with the type of evidence you need. A listing match, a paragraph from a filing, and a company that matches a numerical screen each come from a different operation.

    

## Choose an operation

    
      
- [Instrument lookup](/docs/api/instruments) for a company name, ticker or listing.
      
- [Filing search](/docs/api/sec-filing-search) for a phrase in a recent filing.
      
- [Filing metadata](/docs/api/sec-filings) and [filing sections](/docs/api/sec-filing-sections) for an exact form, period or document.
      
- [SEC company facts](/docs/api/sec-company-facts) for a reported number with a unit, accession and filing date.
      
- [Stock screener](/docs/api/screener) for companies that meet numerical criteria.
    

    

## Identify the listing

    

Start with a company name, then compare the result’s exchange, country and quote currency. Carry its canonical `instrument_id` into the next request. For filings by a legal issuer, use its CIK on endpoints that accept `issuer_cik`. [Choose a listing across exchanges](/docs/guides/instrument-ids).
    
```
GET /api/v1/instruments?q=Nvidia
```

    

## Find what an issuer said

    

Use a distinctive expression you expect in the filing, such as `export controls`. Select 10-K or 10-Q for periodic disclosures, 8-K for company events, or DEF 14A for proxy disclosures. Search one issuer at a time. Start with a small result limit so you can read each match.
    
```
GET /api/v1/sec/filing-search?ticker=NVDA&q=export%20controls&forms=10-K,10-Q&limit=5
```

    

Check `form_type`, `item`, and `filing_date` before interpreting `excerpt`. Open `citation_url` for surrounding context and retain `accession_number` so another reader can locate the same filing. A mention in a risk section may describe an exposure or possibility.
    

Filing search ranks matching paragraphs from a bounded set of recent documents. Increasing `limit` returns more matching passages from that set. To investigate a historical filing, use the metadata lookup to identify the accession, then fetch sections from that document.

    

## Retrieve an exact filing or number

    

For filings submitted during 2024, apply `start` and `end` to filing metadata and filter `form_type`. The returned `report_date` identifies the period the filing covers. Pass an accession to filing sections with `item=1A` for risk factors. For a numeric observation, use company facts with a concept and `filed_before` cutoff. Keep units, period, accession, and filing date with each observation.

    

## Find companies meeting numerical criteria

    

Use the GET screener for common filters, such as market cap in billions of USD. Use [the filter catalog](/docs/api/screener-filters) to check fields and operators for [structured search](/docs/api/screener-search-post). Check the currency, units and percent convention before combining thresholds. Compare the result set after each filter so you can see which constraint removes a company.
    
```
GET /api/v1/screener?min_market_cap_b=10&limit=20
```

    

## Investigate an empty response

    
      
- Confirm the listing or CIK and the dataset’s coverage.
      
- Remove one filter or try a different phrase. If you know the document, retrieve it by accession.
      
- Check provenance and limitations before drawing a conclusion. A 403 means the key lacks access. A 422 identifies an input that needs attention.
    
    

For repeatable research, save the query, accessions and relevant dates. When combining pages from a snapshot-backed operation, [keep the original filters and snapshot ID](/docs/guides/pagination).

---

## QuantSet Ecosystem & Integrations (https://quantset.dev/integrations)

- **MCP Clients & 7 Skills:** `npx quantset init` & `npx skills add quantset/skills` (Claude, Claude Code, Cursor, ChatGPT, Codex, Hermes, OpenClaw, Block Goose, Cline, Docker MCP Toolkit — `https://api.quantset.dev/mcp`)
- **Python SDK & Agent Frameworks:** `pip install "quantset[pandas]"` · `from quantset.tools import build_agent_functions, langchain_tools, crewai_tools` (PydanticAI, LangGraph, LangChain, CrewAI, Agno, AutoGen, Google ADK, OpenAI Agents SDK)
- **TypeScript SDK & Vercel AI / Mastra:** `npm install quantset` · `import { createQuantsetTools } from "quantset/tools"` (Node 20+, Bun, Deno, Cloudflare Workers, Vercel Edge)
- **Spreadsheets & Workspaces:** Google Sheets (`=QUANTSET()` & `=IMPORTDATA()`), Microsoft Excel Power Query (`?format=csv`), Notion MCP & n8n/Make webhooks (`https://quantset.dev/docs/guides/google-sheets-excel-notion-stock-templates`)
- **Drop-In Migrations & Machine Payments:** FMP `/stable/*` & `/v3/*` adapter (`https://quantset.dev/docs/switch/fmp`), `yfinance` migration (`https://quantset.dev/docs/switch/yfinance`), autonomous signup (`https://api.quantset.dev/skill.md`), and `x402` Base USDC.
