Code Snippets
curl "https://financialdata.net/api/v1/analyst-consensus?identifier=UNP&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=UNP&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=UNP&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"trading_symbol": "UNP",
"central_index_key": "0000100885",
"registrant_name": "UNION PACIFIC CORP",
"average_price_target": 331.71,
"highest_price_target": 350.0,
"lowest_price_target": 310.0,
"buy_recommendations": 12,
"sell_recommendations": 0,
"hold_recommendations": 3
},
...
]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
UNION PACIFIC CORP
NYSE: UNP- Market Cap:$136.10B
- ISIN:US9078181081
- Fiscal Year End:12/31
- CEO:Jim Vena
- Employees:32439
The Union Pacific Corporation is an American publicly traded railroad holding company serving as the holding company for the Union Pacific Railroad. Incorporated in 1969 in Utah, it is headquartered in Omaha, Nebraska along with its Union Pacific Railroad subsidiary. Along with BNSF Railway, owned by Berkshire Hathaway, the companies have a near-duopoly on freight railroad transportation west of the Mississippi River.