# Search instruments (QuantSet API)

> Search or page through US, global, crypto, and index instruments, ranked by relevance when q is supplied.

> ## 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.

`GET https://api.quantset.dev/api/v1/instruments` · `search_instruments`

Send a key in the `X-API-Key` header. Try `mw_demo` with the sample selectors.
Add `format=csv` to get a UTF-8 table.
Price: 1 credit for each successful request.

## Research questions

### Which catalog listing should I use for a company name?

```http
GET https://api.quantset.dev/api/v1/instruments?q=nvidia&limit=10
```

Compare name, symbol, exchange, country and quote_currency among matches. Carry the selected instrument_id into subsequent reads.

### Which international result can I use for a price-history query?

```http
GET https://api.quantset.dev/api/v1/instruments?q=Shell&namespace=global&has_prices=true
```

Use exchange, listing_symbol and quote_currency to select the intended listing. Submit its canonical ID to prices.

## Reading the results

A company can have multiple listings or share classes. Search ranking helps locate candidates but does not establish that their prices are interchangeable.


## Coverage and limits

Catalog membership and price or filing availability are separate. Use has_prices or has_financials when coverage matters to the next step.


## Related guides

- [Choose a listing across exchanges](https://quantset.dev/docs/guides/instrument-ids)
- [Continue a snapshot-pinned read](https://quantset.dev/docs/guides/pagination)
- [Choose a search strategy](https://quantset.dev/docs/guides/search)

## Parameters

- `namespace` (us | global | crypto | index, optional): Limit results to us, global, crypto, or index.
- `q` (string, optional): Search symbol, listing name, or sector
- `country` (string, optional): Exact country or comma-separated countries (e.g. United-States,Japan)
- `exclude_country` (string, optional): Comma-separated countries to exclude
- `exchange` (string, optional): Exact exchange or comma-separated exchanges (e.g. NASDAQ,LSE)
- `sector` (string, optional): Exact canonical warehouse sector, case-insensitive
- `sector_coverage` (direct | linked_isin | directory_only | industry_only | not_applicable | unclassified, optional)
- `legacy_sector` (string, optional): Substring of a legacy sector or industry label
- `asset_type` (string, optional)
- `has_financials` (boolean, optional)
- `has_prices` (boolean, optional)
- `active_only` (boolean, optional): When true, omit delisted/defunct and stale (>30d) historical symbols
- `sort_by` (instrument_id | relevance | market_cap_b | pe_ttm | dividend_yield_pct | rev_growth_qoq_pct, optional)
- `sort_dir` (ASC | DESC | asc | desc, optional)
- `offset` (integer, 0 to 50,000, optional)
- `limit` (integer, 1 to 1,000, optional): Maximum number of rows to return.
- `cursor` (string, optional): Opaque continuation. Pass it unchanged with the original filters and snapshot_id.
- `snapshot_id` (string, optional): Pin the request to one immutable snapshot so a read across several pages stays consistent.
- `format` (json | csv, optional): Return a JSON page or UTF-8 CSV rows.
- `X-Max-Credits` (integer, 0 to 999,999,999,999, optional, in header): Refuse the request if its maximum charge exceeds this ceiling.
- `X-Workflow-Id` (string, optional, in header): Optional printable identifier for grouping charges in a research workflow.

## Response fields

- `sector` (string): The company's sector, in one standard list used across all markets.
- `sector_as_of` (string): The date the sector label was observed.
- `sector_funds` (array)
- `directory_sector` (string)
- `sector_coverage` (direct | linked_isin | directory_only | industry_only | not_applicable | unclassified): How the sector was established: direct, linked_isin, directory_only, industry_only, not_applicable or unclassified.
- `sector_asset_type` (string)
- `sector_isin` (string)
- `sector_link_venue` (string)
- `sector_link_ticker` (string)
- `directory_link_venue` (string)
- `directory_link_ticker` (string)
- `industry_label` (string): The company's industry in plain words, where one is established.
- `sic_code` (string): The company's SEC Standard Industrial Classification code.
- `sic_description` (string): The SEC's name for that industry code.
- `instrument_id` (string): The listing's ID: a market prefix, a colon, then the ticker. For example us:NVDA, global:SHEL.L, crypto:BTCUSDT or index:SPX.
- `namespace` (us | global | crypto | index): The market family of the ID: us, global, crypto or index.
- `symbol` (string): The ticker without its market prefix.
- `listing_symbol` (string): The ticker with its exchange suffix, as used in global IDs, for example SHEL.L.
- `name` (string): The company, fund or instrument name.
- `country` (string): The country where the listing trades.
- `exchange` (string): The exchange the listing trades on.
- `asset_type` (string): What kind of instrument it is, such as stock, etf, crypto_pair or index.
- `quote_currency` (string): The currency prices are quoted in. London listings quote in pence, shown as GBp.
- `base_asset` (string): For a crypto pair, the asset being priced, such as BTC.
- `quote_asset` (string): For a crypto pair, the asset it is priced in, such as USDT.
- `cik` (string): The company's 10-digit SEC Central Index Key.
- `sic` (string): The company's SEC Standard Industrial Classification code.
- `industry` (string): The company's industry, as reported for its home market.
- `sector_label` (string)
- `sector_scheme` (sec_division | directory)
- `has_financials` (boolean): Whether financial statements are available for this company.
- `reference_market` (string)
- `reference_group` (string)
- `reference_symbol` (string)
- `is_active` (boolean): Whether the listing is still trading.
- `listing_status` (active | stale | inactive_or_delisted): Whether the listing is active or delisted.
- `latest_price_date` (string): The date of the most recent price for this listing.
- `latest_close` (number): The most recent closing price.
- `usd_price` (number): The latest price converted to US dollars.
- `market_cap_b` (number): The company's market value, in billions of US dollars.
- `pe_ttm` (number): Price divided by trailing earnings per share.
- `dividend_yield_pct` (number): Annual dividends per share as a share of the price, in percent.
- `rev_growth_qoq_pct` (number): Sales growth against the previous quarter, in percent.
- `etf_asset_class` (string)
- `backing_type` (string)
- `fund_category` (string)
- `category_basis` (string)
- `daily_target_multiple` (number): For a leveraged or inverse fund, the multiple of the daily move it aims for. Withheld when the filings disagree.
- `multiple_basis` (string)
- `direction` (string)
- `corroboration_status` (string): Whether the fund's computed leverage agrees with its official name.
- `weighted_maturity_years` (number)
- `credit_quality` (string)
- `benchmark_index` (string): The index the fund says it tracks.
- `benchmark_instrument_id` (string)
- `underlying_instrument_id` (string)
- `expense_ratio_pct` (number): The fund's yearly cost to holders, in percent.

## Example

```
curl 'https://api.quantset.dev/api/v1/instruments?q=nvidia&limit=10' -H 'X-API-Key: mw_demo'
```

## Responses

- 200 Successful Response
- 400 Supply one credential.
- 401 Supply a valid API key.
- 402 Reduce the request ceiling or refill your credits.
- 403 Your key does not have the required access.
- 409 Start the read again with the current snapshot.
- 413 Reduce the page size before requesting CSV again.
- 422 Correct the named parameter and retry.
- 429 Wait for Retry-After seconds.
- 500 The request could not be completed.
- 503 Retry safe reads after a short delay.

## Questions

**Can I try Search instruments without signing up?** Yes. Use the sandbox key mw_demo and the sample selectors on this page.

**What does Search instruments cost?** 1 credit for each successful request. A request that fails costs nothing.

**Which plan includes it?** Every account. Free credits, credit packs and subscriptions all read this data.

**How do I read more than one page?** When next_cursor is not null, send it back as cursor together with the same snapshot_id, and repeat until it is null.

**Can I get it as CSV or in a spreadsheet?** Yes. Add format=csv to the request. In Google Sheets, put that URL inside IMPORTDATA with a data-only key in apikey.

**Can an AI agent use this?** Yes. On the QuantSet MCP server it is the list_instruments tool, so Claude, ChatGPT, Cursor and other clients can call it with no code.

**What does null mean in the response?** The value could not be confirmed. It is never a zero, so treat it as missing in your own calculations.

Group: Instruments, ETFs and capabilities
Docs page: https://quantset.dev/docs/api/instruments
Integrations & Ecosystem: https://quantset.dev/integrations (Claude/Cursor MCP, LangGraph, PydanticAI, CrewAI, Agno, Vercel AI SDK, Mastra, Sheets =QUANTSET(), Excel, Notion & x402)
Full API guide: https://api.quantset.dev/llms-full.txt
