Code Snippets
curl "https://financialdata.net/api/v1/analyst-consensus?identifier=PCG&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=PCG&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=PCG&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"trading_symbol": "PCG",
"central_index_key": "0001004980",
"registrant_name": "PG&E Corp",
"average_price_target": 17.71,
"highest_price_target": 23.0,
"lowest_price_target": 14.0,
"buy_recommendations": 5,
"sell_recommendations": 0,
"hold_recommendations": 7
},
...
]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
PG&E Corp
NYSE: PCG- Market Cap:$37.25B
- ISIN:US69331C1080
- Fiscal Year End:12/31
- CEO:Patti Poppe
- Employees:28400
Pacific Gas and Electric Company (PG&E) is an American investor-owned utility (IOU). The company is headquartered at Kaiser Center, in Oakland, California. PG&E provides natural gas and electricity to 5.2 million households in the northern two-thirds of California, from Bakersfield and northern Santa Barbara County, almost to the Oregon and Nevada state lines.: 27