# Analyst price targets, buy/hold/sell counts & profile (QuantSet API)

> Read price targets, current recommendation counts and available company profile fields for one US or global equity listing. Pin snapshot_id for an archived observation. An unpinned read can fall back to live data.

> ## 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/analyst-consensus` · `get_analyst_consensus`

Send a key in the `X-API-Key` header.
Add `format=csv` to get a UTF-8 table.
Price: 3 credits for each successful request.

## Research questions

### How wide is the sell-side price target range on Nvidia, and how are ratings distributed?

```http
GET https://api.quantset.dev/api/v1/analyst-consensus?ticker=us:NVDA
```

Compare target_mean_price and target_median_price against target_low_price, target_high_price and current_price, then check analyst_count alongside strong_buy, buy, hold, sell and strong_sell.

### What is the consensus target and buy/hold/sell breakdown for Toyota in Tokyo?

```http
GET https://api.quantset.dev/api/v1/analyst-consensus?ticker=global:7203.T
```

Check quote_currency first so target_mean_price and current_price are compared in JPY, then read upside_pct, strong_buy, buy, hold and next_earnings_date.

## Reading the results

Targets use quote_currency. upside_pct is 100 × (target_mean_price / current_price − 1). It measures the gap at the observation date. The target analyst count and the recommendation counts can cover different groups.

Agents using MCP can request get_estimates_and_earnings with view=consensus and ticker. Use view=estimates for EPS or revenue forecasts.


## Coverage and limits

Coverage varies by listing and field. A null rating count means unavailable. A zero is a reported count. A known listing with no observation returns an empty data array.

A pinned read uses the warehouse archive. An unpinned read can return a live observation with snapshot_id set to null and provenance.observed_at populated. A temporarily unavailable feed or archive returns HTTP 503.


## Related guides

- [Choose a listing across exchanges](https://quantset.dev/docs/guides/instrument-ids)

## Parameters

- `ticker` (string, required): Catalog selector, such as NVDA, 7203.T, or a canonical ID such as us:NVDA.
- `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

- `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.
- `symbol` (string): The ticker without its market prefix.
- `name` (string): The company, fund or instrument name.
- `quote_currency` (string): The currency prices are quoted in. London listings quote in pence, shown as GBp.
- `financial_currency` (string): The currency the company reports its financial statements in.
- `current_price` (number): The latest observed trading price in quote_currency.
- `target_mean_price` (number): The mean analyst price target in quote_currency.
- `target_median_price` (number): The median analyst price target in quote_currency.
- `target_high_price` (number): The highest analyst price target in quote_currency.
- `target_low_price` (number): The lowest analyst price target in quote_currency.
- `upside_pct` (number): Implied percentage upside or downside from current_price to target_mean_price.
- `analyst_count` (integer): How many analysts contributed to the estimate.
- `recommendation_key` (string): Consensus analyst rating summary, such as strong_buy, buy, hold, underperform or sell.
- `strong_buy` (integer): Count of covering analysts with a Strong Buy rating.
- `buy` (integer): Count of covering analysts with a Buy rating.
- `hold` (integer): Count of covering analysts with a Hold rating.
- `sell` (integer): Count of covering analysts with a Sell rating.
- `strong_sell` (integer): Count of covering analysts with a Strong Sell rating.
- `forward_pe` (number): Forward price-to-earnings ratio based on forecast earnings.
- `peg_ratio` (number): Price/earnings-to-growth ratio.
- `beta` (number): Historical beta relative to the local market benchmark.
- `shares_short` (number): Latest reported number of shares sold short.
- `short_pct_of_float` (number): Shares sold short as a percentage of public float.
- `held_pct_insiders` (number): Percentage of shares held by company insiders.
- `held_pct_institutions` (number): Percentage of shares held by institutional investors.
- `next_earnings_date` (string): Next scheduled or estimated earnings release date, YYYY-MM-DD.
- `website` (string): Official company website URL.
- `employees` (integer): Reported full-time employee headcount.
- `business_summary` (string): Plain-text summary of the company's operations and segments.
- `observed_on` (string): Date this consensus and profile snapshot was collected, YYYY-MM-DD.

## Example

```
curl 'https://api.quantset.dev/api/v1/analyst-consensus?ticker=us:NVDA' -H 'X-API-Key: YOUR_API_KEY'
```

## 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.
- 404 The requested listing is absent from the catalog.
- 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.

## Which analyst endpoint to use

- `/api/v1/analyst-consensus` (Analyst price targets, buy/hold/sell counts & profile): Use price targets and current buy, hold and sell counts to compare analyst expectations with the listing’s observed price.
- `/api/v1/estimates` (Analyst estimates): Use dated EPS or revenue forecasts to compare expectations for a particular fiscal period.
- `/api/v1/analyst-ratings` (Analyst ratings and factor grades): Use the dated rank and factor grades to study changes in value, growth or momentum.

## Questions

**What does Analyst price targets, buy/hold/sell counts & profile cost?** 3 credits 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.

**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 get_estimates_and_earnings 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: Estimates, ratings and calendars
Docs page: https://quantset.dev/docs/api/analyst-consensus
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
