يُرجِع بيانات إجماع تصنيفات المحللين
curl --request GET \
--url 'https://api.benzinga.com/api/v1/consensus-ratings?token=' \
--header 'accept: <accept>'import requests
url = "https://api.benzinga.com/api/v1/consensus-ratings?token="
headers = {"accept": "<accept>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {accept: '<accept>'}};
fetch('https://api.benzinga.com/api/v1/consensus-ratings?token=', 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.benzinga.com/api/v1/consensus-ratings?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept: <accept>"
],
]);
$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.benzinga.com/api/v1/consensus-ratings?token="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("accept", "<accept>")
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.benzinga.com/api/v1/consensus-ratings?token=")
.header("accept", "<accept>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v1/consensus-ratings?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = '<accept>'
response = http.request(request)
puts response.read_body{
"aggregate_ratings": {
"strong_buy": 7,
"buy": 12,
"hold": 5,
"sell": 2
},
"aggregate_type": "number",
"low_price_target": 200,
"high_price_target": 350,
"consensus_price_target": 293.69192307692305,
"consensus_rating_val": 3.923076923076923,
"consensus_rating": "BUY",
"updated_at": "2026-01-05T19:42:36Z",
"total_analyst_count": 50,
"unique_analyst_count": 26
}
{
"ok": false,
"errors": [
{
"code": "auth_failed",
"id": "unauthorized",
"value": "Invalid or missing authentication token"
}
]
}
{
"ok": false,
"errors": [
{
"code": "no_data_found",
"id": "not_found",
"value": "No data found for the specified parameters"
}
]
}
{
"ok": false,
"errors": [
{
"code": "internal_server_error",
"id": "server_error",
"value": "An unexpected error occurred while processing your request"
}
]
}
التقويمات
تقييمات الإجماع
GET
/
api
/
v1
/
consensus-ratings
يُرجِع بيانات إجماع تصنيفات المحللين
curl --request GET \
--url 'https://api.benzinga.com/api/v1/consensus-ratings?token=' \
--header 'accept: <accept>'import requests
url = "https://api.benzinga.com/api/v1/consensus-ratings?token="
headers = {"accept": "<accept>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {accept: '<accept>'}};
fetch('https://api.benzinga.com/api/v1/consensus-ratings?token=', 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.benzinga.com/api/v1/consensus-ratings?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"accept: <accept>"
],
]);
$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.benzinga.com/api/v1/consensus-ratings?token="
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("accept", "<accept>")
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.benzinga.com/api/v1/consensus-ratings?token=")
.header("accept", "<accept>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.benzinga.com/api/v1/consensus-ratings?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = '<accept>'
response = http.request(request)
puts response.read_body{
"aggregate_ratings": {
"strong_buy": 7,
"buy": 12,
"hold": 5,
"sell": 2
},
"aggregate_type": "number",
"low_price_target": 200,
"high_price_target": 350,
"consensus_price_target": 293.69192307692305,
"consensus_rating_val": 3.923076923076923,
"consensus_rating": "BUY",
"updated_at": "2026-01-05T19:42:36Z",
"total_analyst_count": 50,
"unique_analyst_count": 26
}
{
"ok": false,
"errors": [
{
"code": "auth_failed",
"id": "unauthorized",
"value": "Invalid or missing authentication token"
}
]
}
{
"ok": false,
"errors": [
{
"code": "no_data_found",
"id": "not_found",
"value": "No data found for the specified parameters"
}
]
}
{
"ok": false,
"errors": [
{
"code": "internal_server_error",
"id": "server_error",
"value": "An unexpected error occurred while processing your request"
}
]
}
{
"aggregate_ratings": {
"strong_buy": 7,
"buy": 12,
"hold": 5,
"sell": 2
},
"aggregate_type": "number",
"low_price_target": 200,
"high_price_target": 350,
"consensus_price_target": 293.69192307692305,
"consensus_rating_val": 3.923076923076923,
"consensus_rating": "BUY",
"updated_at": "2026-01-05T19:42:36Z",
"total_analyst_count": 50,
"unique_analyst_count": 26
}
{
"ok": false,
"errors": [
{
"code": "auth_failed",
"id": "unauthorized",
"value": "Invalid or missing authentication token"
}
]
}
{
"ok": false,
"errors": [
{
"code": "no_data_found",
"id": "not_found",
"value": "No data found for the specified parameters"
}
]
}
{
"ok": false,
"errors": [
{
"code": "internal_server_error",
"id": "server_error",
"value": "An unexpected error occurred while processing your request"
}
]
}
التفويضات
الترويسات
يحدّد تنسيق الإرجاع. تعمل معاملات الاستعلام بالطريقة نفسها في كلا التنسيقين
الخيارات المتاحة:
application/json معلمات الاستعلام
عدد النتائج المُرتجَعة. الحد الأقصى 1000
تاريخ بدء الاستعلام من نقطة زمنية معينة
تاريخ تنفيذ الاستعلام حتى نقطة زمنية معيّنة
رمز تداول واحد للاستعلام عن البيانات المجمّعة له. الحد الأقصى رمز تداول واحد
لتبسيط التصنيفات المجمَّعة إلى BUY وSELL وHOLD فقط، فإن السلوك الافتراضي سيُرجِع جميع التصنيفات (STRONG_BUY, BUY, HOLD, SELL, STRONG_SELL)
لتجميع التقييمات إما حسب العدد أو حسب النسبة المئوية
الخيارات المتاحة:
number, percentage الاستجابة
نجاح
Show child attributes
Show child attributes
مثال:
"90D"
مثال:
195.5
مثال:
"Buy"
مثال:
4.2
مثال:
225
مثال:
150
مثال:
19
مثال:
15
مثال:
"2024-01-09T16:00:00.000Z"
هل كانت هذه الصفحة مفيدة؟