GET
/
analysis-ratings
/
consensus
curl --request GET \
  --url https://openapi.ainvest.com/open/analysis-ratings/consensus \
  --header 'Authorization: Bearer <token>'
"data": {
    "analysts_ratings": {
        "count": 50,
        "buy": 32,
        "hold": 14,
        "sell": 4,
        "average_rating": "Buy"
    },
    "target_price": {
        "count": 16,
        "high": 300.0,
        "average": 226.97625,
        "low": 170.0
    }
}
"data": {
    "analysts_ratings": {
        "count": 50,
        "buy": 32,
        "hold": 14,
        "sell": 4,
        "average_rating": "Buy"
    },
    "target_price": {
        "count": 16,
        "high": 300.0,
        "average": 226.97625,
        "low": 170.0
    }
}

Authorizations

Authorization
string
header
required

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

Query Parameters

ticker
string
required

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.