Code Snippets
curl "https://financialdata.net/api/v1/analyst-consensus?identifier=ALL&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=ALL&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=ALL&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"trading_symbol": "ALL",
"central_index_key": "0000899051",
"registrant_name": "ALLSTATE CORP",
"average_price_target": 268.42,
"highest_price_target": 340.0,
"lowest_price_target": 215.0,
"buy_recommendations": 9,
"sell_recommendations": 3,
"hold_recommendations": 8
},
...
]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
ALLSTATE CORP
NYSE: ALL- Market Cap:$52.83B
- ISIN:US0200021014
- Fiscal Year End:12/31
- CEO:Thomas J. Wilson
- Employees:55000
The Allstate Corporation is an American insurance company, headquartered in Glenview, Illinois (with a Northbrook, Illinois address) since 2022. Founded in 1931 as part of Sears, Roebuck and Co., it was spun off in 1993, but was still partially owned by Sears until it became an independent company completely in June 1995. The company also has personal line insurance operations in Canada.