Consensus ratings
curl --request POST \
--url https://api.aisa.one/apis/v1/benzinga/calendar/consensus-ratings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"aggregate_type": "number",
"pagesize": 123,
"parameters[date_from]": "<string>",
"parameters[date_to]": "<string>",
"parameters[tickers]": "<string>",
"simplify": true
}
'import requests
url = "https://api.aisa.one/apis/v1/benzinga/calendar/consensus-ratings"
payload = {
"aggregate_type": "number",
"pagesize": 123,
"parameters[date_from]": "<string>",
"parameters[date_to]": "<string>",
"parameters[tickers]": "<string>",
"simplify": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
aggregate_type: 'number',
pagesize: 123,
'parameters[date_from]': '<string>',
'parameters[date_to]': '<string>',
'parameters[tickers]': '<string>',
simplify: true
})
};
fetch('https://api.aisa.one/apis/v1/benzinga/calendar/consensus-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.aisa.one/apis/v1/benzinga/calendar/consensus-ratings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'aggregate_type' => 'number',
'pagesize' => 123,
'parameters[date_from]' => '<string>',
'parameters[date_to]' => '<string>',
'parameters[tickers]' => '<string>',
'simplify' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/benzinga/calendar/consensus-ratings"
payload := strings.NewReader("{\n \"aggregate_type\": \"number\",\n \"pagesize\": 123,\n \"parameters[date_from]\": \"<string>\",\n \"parameters[date_to]\": \"<string>\",\n \"parameters[tickers]\": \"<string>\",\n \"simplify\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/benzinga/calendar/consensus-ratings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"aggregate_type\": \"number\",\n \"pagesize\": 123,\n \"parameters[date_from]\": \"<string>\",\n \"parameters[date_to]\": \"<string>\",\n \"parameters[tickers]\": \"<string>\",\n \"simplify\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/benzinga/calendar/consensus-ratings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"aggregate_type\": \"number\",\n \"pagesize\": 123,\n \"parameters[date_from]\": \"<string>\",\n \"parameters[date_to]\": \"<string>\",\n \"parameters[tickers]\": \"<string>\",\n \"simplify\": true\n}"
response = http.request(request)
puts response.read_bodyBenzinga
Consensus ratings
Use for where analysts stand in aggregate right now on one company. For the individual changes that moved the consensus, use calendar/ratings instead.
POST
https://api.aisa.one
/
apis
/
v1
/
benzinga
/
calendar
/
consensus-ratings
Consensus ratings
curl --request POST \
--url https://api.aisa.one/apis/v1/benzinga/calendar/consensus-ratings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"aggregate_type": "number",
"pagesize": 123,
"parameters[date_from]": "<string>",
"parameters[date_to]": "<string>",
"parameters[tickers]": "<string>",
"simplify": true
}
'import requests
url = "https://api.aisa.one/apis/v1/benzinga/calendar/consensus-ratings"
payload = {
"aggregate_type": "number",
"pagesize": 123,
"parameters[date_from]": "<string>",
"parameters[date_to]": "<string>",
"parameters[tickers]": "<string>",
"simplify": True
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
aggregate_type: 'number',
pagesize: 123,
'parameters[date_from]': '<string>',
'parameters[date_to]': '<string>',
'parameters[tickers]': '<string>',
simplify: true
})
};
fetch('https://api.aisa.one/apis/v1/benzinga/calendar/consensus-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.aisa.one/apis/v1/benzinga/calendar/consensus-ratings",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'aggregate_type' => 'number',
'pagesize' => 123,
'parameters[date_from]' => '<string>',
'parameters[date_to]' => '<string>',
'parameters[tickers]' => '<string>',
'simplify' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/benzinga/calendar/consensus-ratings"
payload := strings.NewReader("{\n \"aggregate_type\": \"number\",\n \"pagesize\": 123,\n \"parameters[date_from]\": \"<string>\",\n \"parameters[date_to]\": \"<string>\",\n \"parameters[tickers]\": \"<string>\",\n \"simplify\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/benzinga/calendar/consensus-ratings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"aggregate_type\": \"number\",\n \"pagesize\": 123,\n \"parameters[date_from]\": \"<string>\",\n \"parameters[date_to]\": \"<string>\",\n \"parameters[tickers]\": \"<string>\",\n \"simplify\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/benzinga/calendar/consensus-ratings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"aggregate_type\": \"number\",\n \"pagesize\": 123,\n \"parameters[date_from]\": \"<string>\",\n \"parameters[date_to]\": \"<string>\",\n \"parameters[tickers]\": \"<string>\",\n \"simplify\": true\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/benzinga/calendar/consensus-ratings
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/benzinga/calendar/consensus-ratings
{
"operationId": "benzinga.calendar.consensus-ratings",
"method": "POST",
"path": "/apis/v1/benzinga/calendar/consensus-ratings",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"properties": {
"aggregate_type": {
"default": "number",
"description": "Whether each rating bucket is reported as a count of analysts or as a percentage of them.\n\nProvider reference: allowed values [\"number\", \"percentage\"]; default \"number\".",
"type": "string",
"x-alexandria-option-metadata": {
"oneOf": [
"number",
"percentage"
]
}
},
"pagesize": {
"description": "Records to return. Limit 1000.\n\nProvider reference: maximum 1000.",
"type": "number",
"x-alexandria-option-metadata": {
"max": 1000
}
},
"parameters[date_from]": {
"description": "Earliest date, YYYY-MM-DD.",
"type": "string"
},
"parameters[date_to]": {
"description": "Latest date, YYYY-MM-DD.",
"type": "string"
},
"parameters[tickers]": {
"description": "Exactly one ticker symbol to aggregate for; the endpoint takes a single ticker, not a list. Call once per company.",
"type": "string"
},
"simplify": {
"description": "Collapse the aggregate to BUY, HOLD and SELL rather than the five-step scale.",
"type": "boolean"
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.003 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
Response
The analyst consensus for a ticker as counts per rating bucket, plus consensus price targets. Note this endpoint sits outside the calendar family and takes no page parameter.
The response contains the tool result directly.
The provider identifies aggregate_ratings as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
ticker | string | Ticker. |
strong_buy | number | Analysts at strong buy. |
buy | number | Analysts at buy. |
hold | number | Analysts at hold. |
sell | number | Analysts at sell. |
strong-sell | number | Analysts at strong sell. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.