from finance_dev import FinanceDev, models
with FinanceDev(
security=models.Security(
client_id="<YOUR_CLIENT_ID_HERE>",
client_secret="<YOUR_CLIENT_SECRET_HERE>",
),
) as fd_client:
res = fd_client.analytics.get(tickers="AAPL,GOOGL", page=0, page_size=100)
while res is not None:
# Handle items
res = res.next()import { FinanceDev } from "@ariesdotcom/finance-dev";
const financeDev = new FinanceDev({
security: {
clientID: "<YOUR_CLIENT_ID_HERE>",
clientSecret: "<YOUR_CLIENT_SECRET_HERE>",
},
});
async function run() {
const result = await financeDev.analytics.get({
tickers: "AAPL,GOOGL",
});
for await (const page of result) {
console.log(page);
}
}
run();curl --request GET \
--url https://api.aries.com/v1/analytics/ratings \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aries.com/v1/analytics/ratings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aries.com/v1/analytics/ratings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aries.com/v1/analytics/ratings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aries.com/v1/analytics/ratings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aries.com/v1/analytics/ratings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ratings": [
{
"action_company": "maintain",
"action_pt": "raised",
"analyst": "jdoe",
"analyst_id": "an-9001",
"analyst_name": "Jane Doe",
"currency": "USD",
"date": "2026-01-12",
"exchange": "NASDAQ",
"id": "rate-1001",
"importance": 2,
"name": "Apple Inc.",
"notes": "Services outlook improved.",
"pt_current": 210,
"pt_current_adjusted": 208.5,
"pt_prior": 195,
"pt_prior_adjusted": 194,
"rating_current": "Buy",
"rating_prior": "Hold",
"ratings_accuracy": {
"avg_return_1m": 0.021,
"avg_return_1y": 0.18,
"avg_return_2y": 0.31,
"avg_return_3m": 0.055,
"avg_return_3y": 0.42,
"avg_return_9m": 0.12,
"gain_count_1m": 8,
"gain_count_1y": 72,
"gain_count_2y": 130,
"gain_count_3m": 22,
"gain_count_3y": 180,
"gain_count_9m": 58,
"loss_count_1m": 3,
"loss_count_1y": 28,
"loss_count_2y": 48,
"loss_count_3m": 9,
"loss_count_3y": 65,
"loss_count_9m": 21,
"smart_score": 72.5,
"std_dev_return_1m": 0.045,
"std_dev_return_1y": 0.22,
"std_dev_return_2y": 0.28,
"std_dev_return_3m": 0.09,
"std_dev_return_3y": 0.33,
"std_dev_return_9m": 0.14,
"success_rate": 0.68,
"total_ratings": 140
},
"ticker": "AAPL",
"time": "09:45:00",
"updated": "2026-01-12T09:45:00Z"
}
]
}Analyst Ratings
Retrieve professional analyst ratings, price targets, and recommendation changes for stocks with advanced filtering options. Access consensus ratings, upgrades, downgrades, and analyst sentiment to inform investment decisions.
Use Case: Display a stock’s analyst consensus showing average price target and distribution of buy/hold/sell ratings.
from finance_dev import FinanceDev, models
with FinanceDev(
security=models.Security(
client_id="<YOUR_CLIENT_ID_HERE>",
client_secret="<YOUR_CLIENT_SECRET_HERE>",
),
) as fd_client:
res = fd_client.analytics.get(tickers="AAPL,GOOGL", page=0, page_size=100)
while res is not None:
# Handle items
res = res.next()import { FinanceDev } from "@ariesdotcom/finance-dev";
const financeDev = new FinanceDev({
security: {
clientID: "<YOUR_CLIENT_ID_HERE>",
clientSecret: "<YOUR_CLIENT_SECRET_HERE>",
},
});
async function run() {
const result = await financeDev.analytics.get({
tickers: "AAPL,GOOGL",
});
for await (const page of result) {
console.log(page);
}
}
run();curl --request GET \
--url https://api.aries.com/v1/analytics/ratings \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aries.com/v1/analytics/ratings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aries.com/v1/analytics/ratings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aries.com/v1/analytics/ratings"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aries.com/v1/analytics/ratings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aries.com/v1/analytics/ratings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"ratings": [
{
"action_company": "maintain",
"action_pt": "raised",
"analyst": "jdoe",
"analyst_id": "an-9001",
"analyst_name": "Jane Doe",
"currency": "USD",
"date": "2026-01-12",
"exchange": "NASDAQ",
"id": "rate-1001",
"importance": 2,
"name": "Apple Inc.",
"notes": "Services outlook improved.",
"pt_current": 210,
"pt_current_adjusted": 208.5,
"pt_prior": 195,
"pt_prior_adjusted": 194,
"rating_current": "Buy",
"rating_prior": "Hold",
"ratings_accuracy": {
"avg_return_1m": 0.021,
"avg_return_1y": 0.18,
"avg_return_2y": 0.31,
"avg_return_3m": 0.055,
"avg_return_3y": 0.42,
"avg_return_9m": 0.12,
"gain_count_1m": 8,
"gain_count_1y": 72,
"gain_count_2y": 130,
"gain_count_3m": 22,
"gain_count_3y": 180,
"gain_count_9m": 58,
"loss_count_1m": 3,
"loss_count_1y": 28,
"loss_count_2y": 48,
"loss_count_3m": 9,
"loss_count_3y": 65,
"loss_count_9m": 21,
"smart_score": 72.5,
"std_dev_return_1m": 0.045,
"std_dev_return_1y": 0.22,
"std_dev_return_2y": 0.28,
"std_dev_return_3m": 0.09,
"std_dev_return_3y": 0.33,
"std_dev_return_9m": 0.14,
"success_rate": 0.68,
"total_ratings": 140
},
"ticker": "AAPL",
"time": "09:45:00",
"updated": "2026-01-12T09:45:00Z"
}
]
}Authorizations
Query Parameters
Zero-based page number (default: 0). page × pageSize must be less than 100,000; otherwise the API returns HTTP 400 with error code PAGINATION_LIMIT_EXCEEDED. To retrieve larger histories, narrow dateFrom and dateTo and restart at page 0 for each date window.
x >= 00
Response
Analyst ratings. Response has a ratings array; each item may include id, date, time, ticker, exchange, name, currency, action_pt, action_company, rating_current, rating_prior, pt_current, pt_current_adjusted, pt_prior, pt_prior_adjusted, analyst, analyst_id, analyst_name, importance, updated. Some fields may be absent when empty.
Was this page helpful?