Sources › Finance › Yahoo Finance › Analysts

Yahoo Finance Analysts API

Rating distribution, price targets and the upgrade/downgrade tape.

Yahoo FinanceGET /analystsAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:yahoo-finance/analysts

Send your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 5 minutes.

Parameters

NameTypeInRequiredDescription
symbolstringqueryYesInstrument symbol. Jakarta listings use the .JK suffix Example: AAPL
countnumberqueryNoRating changes to return. Default 25, max 100 Example: 25

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/finance:yahoo-finance/analysts?symbol=AAPL&count=25" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:yahoo-finance/analysts?symbol=AAPL&count=25", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/finance:yahoo-finance/analysts",
    params={"symbol":"AAPL","count":"25"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:yahoo-finance",
  "data": {
    "count": 5,
    "items": [
      {
        "at": 1785521260,
        "firm": "JP Morgan",
        "action": "main",
        "toGrade": "Overweight",
        "fromGrade": "Overweight",
        "priceTarget": 340,
        "priorPriceTarget": 345,
        "priceTargetAction": "Lowers"
      },
      {
        "at": 1785513830,
        "firm": "TD Cowen",
        "action": "main",
        "toGrade": "Buy",
        "fromGrade": "Buy",
        "priceTarget": 400,
        "priorPriceTarget": 350,
        "priceTargetAction": "Raises"
      },
      {
        "at": 1785510306,
        "firm": "DA Davidson",
        "action": "main",
        "toGrade": "Neutral",
        "fromGrade": "Neutral",
        "priceTarget": 270,
        "priorPriceTarget": 270,
        "priceTargetAction": "Maintains"
      },
      {
        "at": 1785510107,
        "firm": "Wells Fargo",
        "action": "main",
        "toGrade": "Overweight",
        "fromGrade": "Overweight",
        "priceTarget": 350,
        "priorPriceTarget": 310,
        "priceTargetAction": "Raises"
      },
      {
        "at": 1785500656,
        "firm": "Needham",
        "action": "reit",
        "toGrade": "Hold",
        "fromGrade": "Hold",
        "priceTarget": 0,
        "priorPriceTarget": 0
      }
    ],
    "trend": [
      {
        "buy": 22,
        "hold": 14,
        "sell": 2,
        "period": "0m",
        "strongBuy": 6,
        "strongSell": 2
      },
      {
        "buy": 22,
        "hold": 16,
        "sell": 1,
        "period": "-1m",
        "strongBuy": 6,
        "strongSell": 2
      },
      {
        "buy": 23,
        "hold": 15,
        "sell": 1,
        "period": "-2m",
        "strongBuy": 7,
        "strongSell": 2
      }
    ],
    "symbol": "AAPL",
    "provider": "yahoo",
    "consensus": "buy",
    "targetLow": 215,
    "targetHigh": 400,
    "targetMean": 323.28195,
    "analystCount": 41,
    "targetMedian": 330,
    "consensusScore": 2.04348
  },
  "timestamp": "2026-08-02T04:21:08Z"
}

Frequently asked questions

How do I call the Yahoo Finance Analysts API?

Send a GET request to https://api.zapi.ink/v1/finance:yahoo-finance/analysts?symbol=AAPL with your Zapi key in the x-api-key header. Parameters — required: symbol; optional: count. The response is JSON in the { project, data, timestamp } envelope.

What does the Yahoo Finance Analysts API return?

Rating distribution, price targets and the upgrade/downgrade tape. The example response has the fields count, items, trend, symbol, provider, consensus, targetLow, targetHigh. Each item in items has fields such as at, firm, action, toGrade, fromGrade, priceTarget, priorPriceTarget, priceTargetAction.

Is the Yahoo Finance Analysts API free?

Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.

Can an AI assistant call the Yahoo Finance Analysts API?

Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "yahoo-finance" and endpoint "analysts".

What other Yahoo Finance API endpoints are there?

It has 11 endpoints. Besides Analysts: Quote, Summary, Historical, Search, Screener, News, and 4 more.