Code Snippets
curl "https://financialdata.net/api/v1/key-metrics?identifier=HPQ&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/key-metrics?identifier=HPQ&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/key-metrics?identifier=HPQ&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"trading_symbol": "HPQ",
"central_index_key": "0000047217",
"registrant_name": "HP INC",
"fiscal_year": "2025",
"period_end_date": "2025-10-31",
"earnings_per_share": 2.67,
"earnings_per_share_forecast": 3.23,
"price_to_earnings_ratio": 10.3632958801498,
"forward_price_to_earnings_ratio": 8.56656346749226,
"earnings_growth_rate": -5.65371024734983,
"price_earnings_to_growth_ratio": -1.8330079588015,
"book_value_per_share": -0.365750528541226,
"price_to_book_ratio": -75.6526589595376,
"ebitda": 4410000000.0,
"enterprise_value": 33053820000.0,
"dividend_yield": null,
"dividend_payout_ratio": null,
"debt_to_equity_ratio": -30.5433526011561,
"capital_expenditures": 1051000000.0,
"free_cash_flow": 2646000000.0,
"return_on_equity": -7.3092485549133,
"one_year_beta": 1.20100230286255,
"three_year_beta": 1.11663042011751,
"five_year_beta": 1.15193257564488
},
...
]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
HP INC
NYSE: HPQ- Market Cap:$24.12B
- ISIN:US40434L1052
- Fiscal Year End:10/31
- CEO:Bruce D. Broussard
- Employees:55000
HP Inc. is an American multinational information technology company with its headquarters in Palo Alto, California, that develops personal computers (PCs), printers and other related supplies, as well as 3D printing services. It is the world's second-largest personal computer vendor by unit sales after Lenovo and ahead of Dell as of 2024.
HPQ Datasets
HPQ Stock QuotesHPQ Stock PricesHPQ Minute PricesHPQ Company InformationHPQ Market CapHPQ Employee CountHPQ Executive CompensationHPQ Income StatementsHPQ Balance Sheet StatementsHPQ Cash Flow StatementsHPQ Insider TransactionsHPQ Senate TradingHPQ Institutional HoldingsHPQ Analyst ConsensusHPQ Earnings ReleasesHPQ Stock SplitsHPQ DividendsHPQ Short Interest