Code Snippets
curl "https://financialdata.net/api/v1/analyst-consensus?identifier=SPGI&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=SPGI&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=SPGI&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"trading_symbol": "SPGI",
"central_index_key": "0000064040",
"registrant_name": "S&P Global Inc.",
"average_price_target": 519.88,
"highest_price_target": 553.0,
"lowest_price_target": 477.0,
"buy_recommendations": 17,
"sell_recommendations": 0,
"hold_recommendations": 0
},
...
]Query Parameters
| Name | Type | Description |
|---|---|---|
| identifier | string | The trading symbol for a security. (e.g., MSFT) |
| format | string | (Optional) The format of the returned data, either JSON or CSV. Defaults to JSON. (e.g., json, csv) |
Endpoint Overview
Analyst consensus represents the collective price targets and ratings from professional equity research analysts covering a publicly traded company. Aggregating the estimates gives a view of overall sentiment rather than relying on a single opinion. The API endpoint returns consensus metrics, including 12-month forward price targets as well as buy, hold, and sell recommendation counts.
Company Profile
S&P Global Inc.
NYSE: SPGI- Market Cap:$161.00B
- ISIN:US78409V1044
- Fiscal Year End:12/31
- CEO:Martina Cheung
- Employees:42350
S&P Global Inc. (prior to 2016, McGraw Hill Financial, Inc., and prior to 2013, The McGraw–Hill Companies, Inc.) is an American publicly traded corporation headquartered in Manhattan, New York. Its primary areas of business are financial information, analytics, and energy and commodities intelligence. It is the parent company of S&P Global Ratings, S&P Global Energy, S&P Global Market Intelligence, and the Indian credit rating agency CRISIL. It is also the majority owner of the S&P Dow Jones Indices joint venture. "S&P" is a shortening of "Standard and Poor's."