Browse the docs

Recommendations API

Symbols similar to the one you pass, with similarity scores, in YH's recommendationsbysymbol shape.

GET/v6/finance/recommendationsbysymbol/{symbol}

Request

curl -H "x-api-key: $KEY" \
  "https://api.stockdataapi.com/v6/finance/recommendationsbysymbol/AAPL"

Send your key in the x-api-key header. Try it in the browser with your own key.

Parameters

symbol
pathstringrequired
Symbol such as AAPL, BRK-B, ^GSPC, ES=F, BTC-USD or M&M.NS. Letters, digits and . ^ = & -, at most 20 characters, case-insensitive. Percent-encode ^, = and & in a URL (%5EGSPC, ES%3DF, M%26M.NS).

Behavior

  • result is empty when the source has no recommendations for the symbol.

Example response

{
  "finance": {
    "result": [
      {
        "symbol": "AAPL",
        "recommendedSymbols": [
          { "symbol": "MSFT", "score": 0.28 },
          { "symbol": "GOOGL", "score": 0.25 },
          { "symbol": "AMZN", "score": 0.22 }
        ]
      }
    ],
    "error": null
  }
}
json

Every plan includes this endpoint.

Create your free key