Code Snippets
curl "https://financialdata.net/api/v1/key-metrics?identifier=O&key=API_KEY"import requests
url = 'https://financialdata.net/api/v1/key-metrics?identifier=O&key=API_KEY'
response = requests.get(url)
print(response.json())
const url = 'https://financialdata.net/api/v1/key-metrics?identifier=O&key=API_KEY';
const response = await fetch(url);
const data = await response.json();
console.log(data);
Sample Response
[
{
"trading_symbol": "O",
"central_index_key": "0000726728",
"registrant_name": "REALTY INCOME CORP",
"fiscal_year": "2025",
"period_end_date": "2025-12-31",
"earnings_per_share": 1.17,
"earnings_per_share_forecast": 4.42,
"price_to_earnings_ratio": 48.1794871794872,
"forward_price_to_earnings_ratio": 12.7533936651584,
"earnings_growth_rate": 19.3877551020408,
"price_earnings_to_growth_ratio": 2.48504723346829,
"book_value_per_share": 44.2298711706419,
"price_to_book_ratio": 1.27447805087473,
"ebitda": 3632575000.0,
"enterprise_value": null,
"dividend_yield": 0.0576891346282563,
"dividend_payout_ratio": 2.78677863951105,
"debt_to_equity_ratio": null,
"capital_expenditures": null,
"free_cash_flow": null,
"return_on_equity": 0.026841405376116,
"one_year_beta": 0.212022994441896,
"three_year_beta": 0.318449733142686,
"five_year_beta": 0.45098742099032
},
...
]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
REALTY INCOME CORP
NYSE: O- Market Cap:$52.60B
- ISIN:US7561091049
- Fiscal Year End:12/31
- Employees:418
Realty Income Corporation is a real estate investment trust that invests in free-standing, single-tenant commercial properties in the United States, the United Kingdom, and six other countries in Europe. These properties are subject to NNN Leases. The company is organized in Maryland with its headquarters in San Diego, California.
O Datasets
O Stock QuotesO Stock PricesO Minute PricesO Company InformationO Market CapO Employee CountO Executive CompensationO Income StatementsO Balance Sheet StatementsO Cash Flow StatementsO Insider TransactionsO Senate TradingO Institutional HoldingsO Analyst ConsensusO Earnings ReleasesO Stock SplitsO DividendsO Short Interest