GET
https://openapi.ainvest.com/open
/
analysis-ratings
/
consensus
curl --request GET \
  --url https://openapi.ainvest.com/open/analysis-ratings/consensus \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "analysts_ratings": {
      "count": 123,
      "buy": 123,
      "hold": 123,
      "sell": 123,
      "average_rating": "<string>"
    },
    "target_price": {
      "count": 123,
      "high": 123,
      "average": 123,
      "low": 123
    }
  },
  "status_code": 123,
  "status_msg": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your key. Get the key here

Query Parameters

stock
string

US stock market ticker symbol, e.g. AAPL, TSLA, etc.

Response

200
application/json

Successful response in standard envelope

The response is of type object.