Code Snippets
curl "https://financialdata.net/api/v1/analyst-consensus?identifier=TRV&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=TRV&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=TRV&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"trading_symbol": "TRV",
"central_index_key": "0000086312",
"registrant_name": "TRAVELERS COMPANIES, INC.",
"average_price_target": 362.59,
"highest_price_target": 425.0,
"lowest_price_target": 318.0,
"buy_recommendations": 4,
"sell_recommendations": 4,
"hold_recommendations": 11
},
...
]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
TRAVELERS COMPANIES, INC.
NYSE: TRV- Market Cap:$59.99B
- ISIN:US89417E1091
- Fiscal Year End:12/31
- CEO:Alan D. Schnitzer
- Employees:34000
The Travelers Companies, Inc., commonly known as Travelers, is an American multinational insurance company. It is the second-largest writer of U.S. commercial property and casualty insurance, and the sixth-largest writer of U.S. personal insurance through independent agents. Travelers is incorporated in Minnesota, with headquarters in New York City, and its largest office in Hartford, Connecticut. It has been a component of the Dow Jones Industrial Average since June 8, 2009.