curl --request GET \
--url https://openapi.ainvest.com/open/analysis-ratings/history \
--header 'Authorization: Bearer <token>'"data": {
"data": [
{
"date": "2025-06-26",
"firm": "JP Morgan",
"action": "Maintained",
"rating_previous": null,
"rating": "Overweight",
"target_price_previous": 240.0,
"price_target": 230.0
},
{
"date": "2025-06-10",
"firm": "Needham",
"action": "Maintained",
"rating_previous": null,
"rating": "Hold",
"target_price_previous": null,
"price_target": null
},
{
"date": "2025-06-10",
"firm": "B of A Securities",
"action": "Maintained",
"rating_previous": null,
"rating": "Buy",
"target_price_previous": null,
"price_target": 235.0
}
]
}
Get all ratings along with target prices, firm names and dates of the research publication
curl --request GET \
--url https://openapi.ainvest.com/open/analysis-ratings/history \
--header 'Authorization: Bearer <token>'"data": {
"data": [
{
"date": "2025-06-26",
"firm": "JP Morgan",
"action": "Maintained",
"rating_previous": null,
"rating": "Overweight",
"target_price_previous": 240.0,
"price_target": 230.0
},
{
"date": "2025-06-10",
"firm": "Needham",
"action": "Maintained",
"rating_previous": null,
"rating": "Hold",
"target_price_previous": null,
"price_target": null
},
{
"date": "2025-06-10",
"firm": "B of A Securities",
"action": "Maintained",
"rating_previous": null,
"rating": "Buy",
"target_price_previous": null,
"price_target": 235.0
}
]
}

"data": {
"data": [
{
"date": "2025-06-26",
"firm": "JP Morgan",
"action": "Maintained",
"rating_previous": null,
"rating": "Overweight",
"target_price_previous": 240.0,
"price_target": 230.0
},
{
"date": "2025-06-10",
"firm": "Needham",
"action": "Maintained",
"rating_previous": null,
"rating": "Hold",
"target_price_previous": null,
"price_target": null
},
{
"date": "2025-06-10",
"firm": "B of A Securities",
"action": "Maintained",
"rating_previous": null,
"rating": "Buy",
"target_price_previous": null,
"price_target": 235.0
}
]
}
Bearer authentication header of the form Bearer <token>, where <token> is your key. Get the key here
US stock market ticker symbol, e.g. AAPL, TSLA, etc.
Successful response in standard envelope
Show child attributes
Array of rating items
Show child attributes
Date of the research publication
Name of the firm providing the rating
Action taken by the firm, e.g. "Maintained", "Downgraded", etc.
Rating previously set by the firm. Can be null if the previous rating was not mentioned on the report.
Rating provided by the firm, as provided by the firm, e.g. "Outperform", "Equal-Weight", "Neutral", "Strong Buy". Can as well be null.
The target price set by the firm in the previous report. Can be null if the the price was not changed.
Target price set by the firm. Can be null if the firm did not provide a target price.
Status code, 0 for success
Status message, success for success