Code Snippets
curl "https://financialdata.net/api/v1/key-metrics?identifier=MPC&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/key-metrics?identifier=MPC&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/key-metrics?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",
"fiscal_year": "2025",
"period_end_date": "2025-12-31",
"earnings_per_share": 13.24,
"earnings_per_share_forecast": 61.17,
"price_to_earnings_ratio": 12.2832326283988,
"forward_price_to_earnings_ratio": 2.65865620402158,
"earnings_growth_rate": 30.9594460929772,
"price_earnings_to_growth_ratio": 0.396752338252753,
"book_value_per_share": 78.9704918032787,
"price_to_book_ratio": 2.05937681640787,
"ebitda": 9193000000.0,
"enterprise_value": 78806150000.0,
"dividend_yield": 0.0229828747342605,
"dividend_payout_ratio": 0.28169014084507,
"debt_to_equity_ratio": 1.89881021138963,
"capital_expenditures": 5620000000.0,
"free_cash_flow": 2633000000.0,
"return_on_equity": 0.233741480882523,
"one_year_beta": 1.02050686448018,
"three_year_beta": 0.818317635051011,
"five_year_beta": 0.813061932029876
},
...
]Query Parameters
| Name | Type | Description |
|---|---|---|
| identifier | string | The trading symbol for a security, or the central index key (CIK). The latter is assigned to the entity by the United States Securities and Exchange Commission. (e.g., MSFT, 0000789019) |
| format | string | (Optional) The format of the returned data, either JSON or CSV. Defaults to JSON. (e.g., json, csv) |
Endpoint Overview
The API endpoint returns key financial metrics such as price-to-earnings ratio, price-to-book ratio, free cash flow, etc. This information is particularly important for value investors looking to identify undervalued stocks. Data is available for several thousand US and international companies.
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 Market CapMPC Employee CountMPC Executive CompensationMPC Income StatementsMPC Balance Sheet StatementsMPC Cash Flow StatementsMPC Insider TransactionsMPC Senate TradingMPC Institutional HoldingsMPC Analyst ConsensusMPC Earnings ReleasesMPC Stock SplitsMPC DividendsMPC Short Interest