curl --request POST \
--url https://api.aisa.one/apis/v1/benzinga/calendar/ratings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fields": "<string>",
"page": 0,
"pagesize": 123,
"parameters[action]": "<string>",
"parameters[analyst_id]": "<string>",
"parameters[date]": "<string>",
"parameters[date_from]": "<string>",
"parameters[date_to]": "<string>",
"parameters[firm_id]": "<string>",
"parameters[importance]": 123,
"parameters[tickers]": "<string>",
"parameters[updated]": 123,
"simplify": true
}
'import requests
url = "https://api.aisa.one/apis/v1/benzinga/calendar/ratings"
payload = {
"fields": "<string>",
"page": 0,
"pagesize": 123,
"parameters[action]": "<string>",
"parameters[analyst_id]": "<string>",
"parameters[date]": "<string>",
"parameters[date_from]": "<string>",
"parameters[date_to]": "<string>",
"parameters[firm_id]": "<string>",
"parameters[importance]": 123,
"parameters[tickers]": "<string>",
"parameters[updated]": 123,
"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({
fields: '<string>',
page: 0,
pagesize: 123,
'parameters[action]': '<string>',
'parameters[analyst_id]': '<string>',
'parameters[date]': '<string>',
'parameters[date_from]': '<string>',
'parameters[date_to]': '<string>',
'parameters[firm_id]': '<string>',
'parameters[importance]': 123,
'parameters[tickers]': '<string>',
'parameters[updated]': 123,
simplify: true
})
};
fetch('https://api.aisa.one/apis/v1/benzinga/calendar/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/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([
'fields' => '<string>',
'page' => 0,
'pagesize' => 123,
'parameters[action]' => '<string>',
'parameters[analyst_id]' => '<string>',
'parameters[date]' => '<string>',
'parameters[date_from]' => '<string>',
'parameters[date_to]' => '<string>',
'parameters[firm_id]' => '<string>',
'parameters[importance]' => 123,
'parameters[tickers]' => '<string>',
'parameters[updated]' => 123,
'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/ratings"
payload := strings.NewReader("{\n \"fields\": \"<string>\",\n \"page\": 0,\n \"pagesize\": 123,\n \"parameters[action]\": \"<string>\",\n \"parameters[analyst_id]\": \"<string>\",\n \"parameters[date]\": \"<string>\",\n \"parameters[date_from]\": \"<string>\",\n \"parameters[date_to]\": \"<string>\",\n \"parameters[firm_id]\": \"<string>\",\n \"parameters[importance]\": 123,\n \"parameters[tickers]\": \"<string>\",\n \"parameters[updated]\": 123,\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/ratings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fields\": \"<string>\",\n \"page\": 0,\n \"pagesize\": 123,\n \"parameters[action]\": \"<string>\",\n \"parameters[analyst_id]\": \"<string>\",\n \"parameters[date]\": \"<string>\",\n \"parameters[date_from]\": \"<string>\",\n \"parameters[date_to]\": \"<string>\",\n \"parameters[firm_id]\": \"<string>\",\n \"parameters[importance]\": 123,\n \"parameters[tickers]\": \"<string>\",\n \"parameters[updated]\": 123,\n \"simplify\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/benzinga/calendar/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 \"fields\": \"<string>\",\n \"page\": 0,\n \"pagesize\": 123,\n \"parameters[action]\": \"<string>\",\n \"parameters[analyst_id]\": \"<string>\",\n \"parameters[date]\": \"<string>\",\n \"parameters[date_from]\": \"<string>\",\n \"parameters[date_to]\": \"<string>\",\n \"parameters[firm_id]\": \"<string>\",\n \"parameters[importance]\": 123,\n \"parameters[tickers]\": \"<string>\",\n \"parameters[updated]\": 123,\n \"simplify\": true\n}"
response = http.request(request)
puts response.read_bodyAnalyst ratings
Use for how analysts have moved on a stock: upgrades, downgrades, initiations and target changes. Filter by parameters[analyst_id] or parameters[firm_id] to follow one analyst or firm. It carries the ratings, not the reasoning behind them.
curl --request POST \
--url https://api.aisa.one/apis/v1/benzinga/calendar/ratings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"fields": "<string>",
"page": 0,
"pagesize": 123,
"parameters[action]": "<string>",
"parameters[analyst_id]": "<string>",
"parameters[date]": "<string>",
"parameters[date_from]": "<string>",
"parameters[date_to]": "<string>",
"parameters[firm_id]": "<string>",
"parameters[importance]": 123,
"parameters[tickers]": "<string>",
"parameters[updated]": 123,
"simplify": true
}
'import requests
url = "https://api.aisa.one/apis/v1/benzinga/calendar/ratings"
payload = {
"fields": "<string>",
"page": 0,
"pagesize": 123,
"parameters[action]": "<string>",
"parameters[analyst_id]": "<string>",
"parameters[date]": "<string>",
"parameters[date_from]": "<string>",
"parameters[date_to]": "<string>",
"parameters[firm_id]": "<string>",
"parameters[importance]": 123,
"parameters[tickers]": "<string>",
"parameters[updated]": 123,
"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({
fields: '<string>',
page: 0,
pagesize: 123,
'parameters[action]': '<string>',
'parameters[analyst_id]': '<string>',
'parameters[date]': '<string>',
'parameters[date_from]': '<string>',
'parameters[date_to]': '<string>',
'parameters[firm_id]': '<string>',
'parameters[importance]': 123,
'parameters[tickers]': '<string>',
'parameters[updated]': 123,
simplify: true
})
};
fetch('https://api.aisa.one/apis/v1/benzinga/calendar/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/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([
'fields' => '<string>',
'page' => 0,
'pagesize' => 123,
'parameters[action]' => '<string>',
'parameters[analyst_id]' => '<string>',
'parameters[date]' => '<string>',
'parameters[date_from]' => '<string>',
'parameters[date_to]' => '<string>',
'parameters[firm_id]' => '<string>',
'parameters[importance]' => 123,
'parameters[tickers]' => '<string>',
'parameters[updated]' => 123,
'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/ratings"
payload := strings.NewReader("{\n \"fields\": \"<string>\",\n \"page\": 0,\n \"pagesize\": 123,\n \"parameters[action]\": \"<string>\",\n \"parameters[analyst_id]\": \"<string>\",\n \"parameters[date]\": \"<string>\",\n \"parameters[date_from]\": \"<string>\",\n \"parameters[date_to]\": \"<string>\",\n \"parameters[firm_id]\": \"<string>\",\n \"parameters[importance]\": 123,\n \"parameters[tickers]\": \"<string>\",\n \"parameters[updated]\": 123,\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/ratings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"fields\": \"<string>\",\n \"page\": 0,\n \"pagesize\": 123,\n \"parameters[action]\": \"<string>\",\n \"parameters[analyst_id]\": \"<string>\",\n \"parameters[date]\": \"<string>\",\n \"parameters[date_from]\": \"<string>\",\n \"parameters[date_to]\": \"<string>\",\n \"parameters[firm_id]\": \"<string>\",\n \"parameters[importance]\": 123,\n \"parameters[tickers]\": \"<string>\",\n \"parameters[updated]\": 123,\n \"simplify\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/benzinga/calendar/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 \"fields\": \"<string>\",\n \"page\": 0,\n \"pagesize\": 123,\n \"parameters[action]\": \"<string>\",\n \"parameters[analyst_id]\": \"<string>\",\n \"parameters[date]\": \"<string>\",\n \"parameters[date_from]\": \"<string>\",\n \"parameters[date_to]\": \"<string>\",\n \"parameters[firm_id]\": \"<string>\",\n \"parameters[importance]\": 123,\n \"parameters[tickers]\": \"<string>\",\n \"parameters[updated]\": 123,\n \"simplify\": true\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/benzinga/calendar/ratings
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/benzinga/calendar/ratings
{
"operationId": "benzinga.calendar.ratings",
"method": "POST",
"path": "/apis/v1/benzinga/calendar/ratings",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"additionalProperties": true,
"properties": {
"fields": {
"description": "Comma-separated response fields to return, or * for every field including ratings_accuracy. Available: id, date, time, ticker, exchange, name, currency, action_pt, action_company, rating_current, pt_current, rating_prior, pt_prior, pt_pct_change, url, url_calendar, url_news, analyst, analyst_id, analyst_name, firm_id, ratings_accuracy, importance, notes, updated. Set it to trim the payload when you only need the rating and target.",
"type": "string"
},
"page": {
"default": 0,
"description": "Page offset, 0 to 100000.\n\nProvider reference: maximum 100000; default 0.",
"type": "number",
"x-alexandria-option-metadata": {
"max": 100000
}
},
"pagesize": {
"description": "Records to return. Limit 1000.\n\nProvider reference: maximum 1000.",
"type": "number",
"x-alexandria-option-metadata": {
"max": 1000
}
},
"parameters[action]": {
"description": "Ratings action to filter to, matched against action_company.\n\nProvider reference: allowed values [\"Assumes\", \"Downgrades\", \"Firm Dissolved\", \"Initiates Coverage On\", \"Maintains\", \"Reinstates\", \"Reiterates\", \"Removes\", \"Suspends\", \"Terminates Coverage On\", \"Upgrades\"].",
"type": "string",
"x-alexandria-option-metadata": {
"oneOf": [
"Assumes",
"Downgrades",
"Firm Dissolved",
"Initiates Coverage On",
"Maintains",
"Reinstates",
"Reiterates",
"Removes",
"Suspends",
"Terminates Coverage On",
"Upgrades"
]
}
},
"parameters[analyst_id]": {
"description": "Comma-separated analyst ids. Take them from the id field of calendar/ratings-analysts, or the analyst_id on a rating, to follow one analyst's calls.",
"type": "string"
},
"parameters[date]": {
"description": "A single date, YYYY-MM-DD, as shorthand when date_from and date_to would be the same. Leave unset to get the latest ratings.",
"type": "string"
},
"parameters[date_from]": {
"description": "Earliest rating date, YYYY-MM-DD.",
"type": "string"
},
"parameters[date_to]": {
"description": "Latest rating date, YYYY-MM-DD.",
"type": "string"
},
"parameters[firm_id]": {
"description": "Comma-separated firm ids. Take them from the id field of calendar/ratings-firms, or the firm_id on a rating, to keep to one research firm's coverage.",
"type": "string"
},
"parameters[importance]": {
"description": "Minimum importance level, matched as greater than or equal to the value given. Raise it when the caller only wants the notable calls.\n\nProvider reference: allowed values [\"0\", \"1\", \"2\", \"3\", \"4\", \"5\"].",
"type": "number",
"x-alexandria-option-metadata": {
"oneOf": [
"0",
"1",
"2",
"3",
"4",
"5"
]
}
},
"parameters[tickers]": {
"description": "Comma-separated ticker symbols, maximum 50.",
"type": "string"
},
"parameters[updated]": {
"description": "Unix timestamp. Returns records updated at or after it, for polling deltas.",
"type": "number"
},
"simplify": {
"description": "Collapse ratings to standardized categories.",
"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
Comma-separated response fields to return, or * for every field including ratings_accuracy. Available: id, date, time, ticker, exchange, name, currency, action_pt, action_company, rating_current, pt_current, rating_prior, pt_prior, pt_pct_change, url, url_calendar, url_news, analyst, analyst_id, analyst_name, firm_id, ratings_accuracy, importance, notes, updated. Set it to trim the payload when you only need the rating and target.
Response
Analyst upgrades, downgrades, initiations and price target changes, each carrying the analyst and firm ids that the roster capabilities resolve. Price targets arrive as strings.
The response contains the tool result directly.
The provider identifies ratings as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
id | string | Benzinga id of the rating record. |
ticker | string | Ticker. |
exchange | string | Exchange the security trades on. |
name | string | Company name. |
cusip | string | CUSIP of the security. |
isin | string | ISIN of the security. |
date | string | Date of the rating, YYYY-MM-DD. |
time | string | Time of the rating announcement, Eastern. |
analyst | string | Firm issuing it. |
analyst_id | string | Id of the analyst; pass it to calendar/ratings-analysts or back to parameters[analyst_id]. |
analyst_name | string | Full name of the analyst. |
firm_id | string | Id of the firm; pass it to calendar/ratings-firms or back to parameters[firm_id]. |
action_company | string | What changed, for example Upgrades. |
action_pt | string | Direction of the price target move, for example Lowers. |
rating_prior | string | Rating before the change. |
rating_current | string | Rating after it. |
pt_prior | string | Price target before the change, as a string. |
pt_current | string | Price target after the change, as a string. |
adjusted_pt_prior | string | Prior price target adjusted for splits. |
adjusted_pt_current | string | Current price target adjusted for splits. |
currency | string | Currency the price targets are quoted in. |
importance | number | Benzinga importance score, 0 to 5. |
notes | string | Analyst commentary on the rating, when present. |
url | string | URL of the full rating article. |
url_calendar | string | URL of the calendar entry. |
url_news | string | URL of the related news story. |
updated | number | Unix timestamp of the last update to the record. |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.