cikstring
The Central Index Key (CIK) of the company. Can be used instead of ticker.
https://api.sandbase.ai/v1/api/financial-datasets/financial-metrics-snapshotGet the real-time financial metrics snapshot for a stock, including valuation ratios, profitability, efficiency, liquidity, leverage, growth, and per share metrics.
您的输出将显示在这里
完成输入,然后点击运行。
Returns one snapshot of financial metrics for a public company: valuation ratios, margins, returns, liquidity, debt ratios, growth rates and per share values. Pass a ticker, or use cik or isin instead.
current_ratio and debt_to_equity before a credit or risk review.curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/financial-metrics-snapshot" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ticker": "AAPL"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
cik | string | No | The Central Index Key (CIK) of the company. Can be used instead of ticker. |
exchange | string | No | The exchange the ticker is listed on. Omit for US listings. Use LSE for the London Stock Exchange; any ticker of the company, including a second share class, returns the company's metrics. Price-based values (market ca |
isin | string | No | The ISIN (International Securities Identification Number) of a non-US listing. An alternative to ticker and exchange. |
market | string | No | market |
ticker | string | No | The ticker symbol of the company. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"snapshot": {
"asset_turnover": 1.2376860547121489,
"book_value_growth": 0.6332978885006836,
"book_value_per_share": 7.30699065341296,
"cash_ratio": 0.2648165758139909,
"currency": "USD",
"current_ratio": 1.0032948046555858,
"days_sales_outstanding": 24.135491396096594,
"debt_to_assets": 0.2486628085976841,
"debt_to_equity": 0.8863839285714286,
"earnings_growth": 0.29865028203062044,
"earnings_per_share": 8.762000604022814,
"earnings_per_share_growth": 0.3192581932618972
}
}
| Field | Meaning |
|---|---|
snapshot.ticker / snapshot.currency | The ticker symbol and the currency of the money values in the snapshot, for example USD. |
snapshot.market_cap / snapshot.enterprise_value | Market capitalization and enterprise value as plain numbers in the snapshot currency. |
snapshot.price_to_earnings_ratio / snapshot.price_to_book_ratio / snapshot.price_to_sales_ratio / snapshot.peg_ratio | Valuation ratios based on the current price. |
snapshot.enterprise_value_to_ebitda_ratio / snapshot.enterprise_value_to_revenue_ratio | Enterprise value divided by EBITDA and by revenue. |
snapshot.gross_margin / snapshot.operating_margin / snapshot.net_margin | Profit margins as decimal fractions. A value of 0.4865 means 48.65%. |
snapshot.return_on_equity / snapshot.return_on_assets / snapshot.return_on_invested_capital | Return ratios as decimal fractions. |
snapshot.current_ratio / snapshot.quick_ratio / snapshot.cash_ratio / snapshot.debt_to_equity / snapshot.debt_to_assets | Liquidity and debt ratios. |
snapshot.revenue_growth / snapshot.earnings_growth / snapshot.earnings_per_share_growth / snapshot.free_cash_flow_growth | Growth rates for revenue, earnings, EPS and free cash flow, as decimal fractions. |
snapshot.earnings_per_share / snapshot.book_value_per_share / snapshot.free_cash_flow_per_share | Per share values for earnings, book value and free cash flow. |
snapshot.free_cash_flow_yield / snapshot.payout_ratio | Free cash flow yield and the share of earnings paid out, as decimal fractions. |
null. In this response interest_coverage is null.exchange to LSE for London listings, or use isin for a non-US listing. market accepts UK or US.$0.02 per successful call. Failed calls are not charged.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/financial-metrics-snapshot" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ticker": "AAPL"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
cikstringThe Central Index Key (CIK) of the company. Can be used instead of ticker.
exchangestringThe exchange the ticker is listed on. Omit for US listings. Use `LSE` for the London Stock Exchange; any ticker of the company, including a second share class, returns the company's metrics. Price-based values (market cap, enterprise value, valuation ratios, dividend yield) are not yet available for
可选值:LSE
isinstringThe ISIN (International Securities Identification Number) of a non-US listing. An alternative to `ticker` and `exchange`.
marketstringmarket
可选值:UK, US
tickerstringThe ticker symbol of the company.
这是该 API 保存的示例响应;查看时不会发起实时请求。
尚未发布已保存的响应。请在 Playground 中运行 API 以查看其响应。
探索更多
| API | 价格 | 响应 |
|---|---|---|
Financial Datasets | $0.02 每次调用 | JSON |
Financial Datasets | $0.02 每次调用 | JSON |
Financial Datasets | $0.02 每次调用 | JSON |
Financial Datasets | $0.02 每次调用 | JSON |
Financial Datasets | $0.02 每次调用 | JSON |
Financial Datasets | $0.02 每次调用 | JSON |
问题
向 https://api.sandbase.ai/v1/api/financial-datasets/financial-metrics-snapshot 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.02,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
无需参数。 可选:cik (string), exchange(LSE 之一), isin (string), market(UK, US 之一) 和 ticker (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Financial Datasets Get Financial Metrics Snapshot 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Financial Datasets API 访问权限。