Code Snippets
curl "https://financialdata.net/api/v1/cash-flow-statements?identifier=HSY&period=year&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/cash-flow-statements?identifier=HSY&period=year&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/cash-flow-statements?identifier=HSY&period=year&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",
"fiscal_period": "FY",
"period_end_date": "2025-12-31",
"depreciation_and_amortization": 503701000.0,
"share_based_compensation_expense": 65460000.0,
"deferred_income_tax_expense": 122293000.0,
"other_non_cash_income_expense": null,
"change_in_accounts_receivable": -98968000.0,
"change_in_inventories": 133320000.0,
"change_in_non_trade_receivables": null,
"change_in_other_assets": 153534000.0,
"change_in_accounts_payable": 163495000.0,
"change_in_deferred_revenue": null,
"change_in_other_liabilities": 2041000.0,
"cash_from_operating_activities": 2277367000.0,
"purchases_of_marketable_securities": null,
"sales_of_marketable_securities": null,
"acquisition_of_property_plant_and_equipment": 454622000.0,
"acquisition_of_business": 756135000.0,
"other_investing_activities": 6241000.0,
"cash_from_investing_activities": -1278717000.0,
"tax_withholding_for_share_based_compensation": 18779000.0,
"payments_of_dividends": null,
"issuance_of_common_stock": null,
"repurchase_of_common_stock": 0.0,
"issuance_of_long_term_debt": 1984545000.0,
"repayment_of_long_term_debt": 606393000.0,
"other_financing_activities": null,
"cash_from_financing_activities": -803357000.0,
"change_in_cash": 195113000.0,
"cash_at_end_of_period": 925859000.0,
"income_taxes_paid": 140616000.0,
"interest_paid": 195927000.0
},
...
]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) |
| period | string | (Optional) The accounting period for which the entity's financial statements are prepared. By default, statements are returned for all accounting periods. (e.g., year, quarter) |
| offset | integer | (Optional) The initial position of the record subset, which indicates how many records to skip. Defaults to 0. (e.g., 50) |
| format | string | (Optional) The format of the returned data, either JSON or CSV. Defaults to JSON. (e.g., json, csv) |
Endpoint Overview
A cash flow statement is a financial statement that indicates how changes in balance sheet accounts and income affect cash and cash equivalents, breaking down the analysis into operating, investing, and financing activities. Essentially, the cash flow statement is concerned with the flow of cash into and out of the business. Our API allows you to access all of the individual financial items that compose a cash flow statement. There is a limit of 50 records per API call.
Company Profile
HERSHEY CO
NYSE: HSY- Market Cap:$24.68B
- ISIN:US4278661081
- Fiscal Year End:12/31
- CEO:Kirk Tanner
- Employees:17550
The Hershey Company, often called Hershey or Hershey's, is an American multinational confectionery company headquartered in Hershey, Pennsylvania, which is also home to Hersheypark and Hershey's Chocolate World. The Hershey Company is one of the largest chocolate manufacturers in the world; it also manufactures baked products, such as cookies and cakes and beverages like milkshakes, as well as other products (through mergers and acquisitions). The Hershey Company was founded by Milton S. Hershey in 1894 as the Hershey Chocolate Company, originally established as a subsidiary of his Lancaster Caramel Company. The Hershey Trust Company owns a minority stake but retains a majority of the voting power within the company.