Code Snippets
curl "https://financialdata.net/api/v1/analyst-consensus?identifier=LLY&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=LLY&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=LLY&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"trading_symbol": "LLY",
"central_index_key": "0000059478",
"registrant_name": "ELI LILLY & Co",
"average_price_target": 1366.05,
"highest_price_target": 1600.0,
"lowest_price_target": 940.0,
"buy_recommendations": 20,
"sell_recommendations": 1,
"hold_recommendations": 2
},
...
]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
ELI LILLY & Co
NYSE: LLY- Market Cap:$807.89B
- ISIN:US5324571083
- Fiscal Year End:12/31
- CEO:David A. Ricks
- Employees:50000
Eli Lilly and Company, doing business as Lilly, is an American multinational pharmaceutical company headquartered in Indianapolis, Indiana, with offices in 18 countries. Its products are sold in approximately 125 countries. The company was founded in 1876 by Eli Lilly, a pharmaceutical chemist and Union army veteran during the American Civil War for whom the company was later named.