Default

Recommendation Trends

Changed on

Get latest analyst recommendation trends for a company.

get/stock/recommendation

Request

  • Base URL
    https://finnhub.io/api/v1
  • URL
    https://finnhub.io/api/v1/stock/recommendation
  • Auth
    API key in query parameter token

Query parameters

symbolstring required

Symbol of the company: AAPL.

Response

successful operation

symbolstring

Company symbol.

buyinteger

Number of recommendations that fall into the Buy category

holdinteger

Number of recommendations that fall into the Hold category

periodstring

Updated period

sellinteger

Number of recommendations that fall into the Sell category

strongBuyinteger

Number of recommendations that fall into the Strong Buy category

strongSellinteger

Number of recommendations that fall into the Strong Sell category

Example response

[
  {
    "symbol": "symbol",
    "period": "period",
    "buy": 0,
    "sell": 1,
    "strongSell": 5,
    "strongBuy": 5,
    "hold": 6
  }
]

Changes

    • info

      api tag Default added

    • breaking

      the response's body type changed from object to array for status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status

    • warning

      removed the optional property from the response with the status