Code Snippets
curl "https://financialdata.net/api/v1/key-metrics?identifier=HSY&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/key-metrics?identifier=HSY&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/key-metrics?identifier=HSY&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"trading_symbol": "HSY",
"central_index_key": "0000047111",
"registrant_name": "HERSHEY CO",
"fiscal_year": "2025",
"period_end_date": "2025-12-31",
"earnings_per_share": null,
"earnings_per_share_forecast": 8.49,
"price_to_earnings_ratio": null,
"forward_price_to_earnings_ratio": 21.434628975265,
"earnings_growth_rate": null,
"price_earnings_to_growth_ratio": null,
"book_value_per_share": null,
"price_to_book_ratio": null,
"ebitda": 1752382000.0,
"enterprise_value": null,
"dividend_yield": null,
"dividend_payout_ratio": null,
"debt_to_equity_ratio": 1.05671860678277,
"capital_expenditures": 574456000.0,
"free_cash_flow": 1702911000.0,
"return_on_equity": 0.190490968889847,
"one_year_beta": 0.0840952255636233,
"three_year_beta": 0.150681802970944,
"five_year_beta": 0.240228334272015
},
...
]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
HERSHEY CO
NYSE: HSY- Market Cap:$24.68B
- ISIN:US4278661081
- Fiscal Year End:12/31
HSY Datasets
HSY Stock QuotesHSY Stock PricesHSY Minute PricesHSY Company InformationHSY Market CapHSY Employee CountHSY Executive CompensationHSY Income StatementsHSY Balance Sheet StatementsHSY Cash Flow StatementsHSY Insider TransactionsHSY Senate TradingHSY Institutional HoldingsHSY Analyst ConsensusHSY Earnings ReleasesHSY Stock SplitsHSY DividendsHSY Short Interest