GET
/
analysis-ratings
/
consensus
Get current rating and target price
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

Successful response in standard envelope

data
object

Average rating and target price. null if there are no ratings available

status_code
number

Status code, 0 for success

status_msg
string

Status message, success for success