Code Snippets
curl "https://financialdata.net/api/v1/analyst-consensus?identifier=MPC&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=MPC&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/analyst-consensus?identifier=MPC&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"trading_symbol": "MPC",
"central_index_key": "0001510295",
"registrant_name": "Marathon Petroleum Corp",
"average_price_target": 444.47,
"highest_price_target": 560.0,
"lowest_price_target": 297.0,
"buy_recommendations": 9,
"sell_recommendations": 0,
"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
Marathon Petroleum Corp
NYSE: MPC- Market Cap:$50.60B
- ISIN:US56585A1025
- Fiscal Year End:12/31
- CEO:Maryann Mannen
- Employees:18300
Marathon Petroleum Corporation is an American petroleum refining, marketing, and transportation company headquartered in Findlay, Ohio. The company was a wholly owned subsidiary of Marathon Oil until a corporate spin-off in 2011.
MPC Datasets
MPC Stock QuotesMPC Stock PricesMPC Minute PricesMPC Company InformationMPC Key MetricsMPC Market CapMPC Employee CountMPC Executive CompensationMPC Income StatementsMPC Balance Sheet StatementsMPC Cash Flow StatementsMPC Insider TransactionsMPC Senate TradingMPC Institutional HoldingsMPC Earnings ReleasesMPC Stock SplitsMPC DividendsMPC Short Interest