Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Financial Datasets Get Financial Metrics

API 文档
https://api.sandbase.ai/v1/api/financial-datasets/financial-metrics

Get financial metrics for a ticker, including valuation, profitability, efficiency, liquidity, leverage, growth, and per share metrics.

价格
$0.02美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 16 个可选

Playground

输入
The time period for the financial data.
The Central Index Key (CIK) of the company. Can be used instead of ticker.
Opaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify it.
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 cap, enterprise value, valuation ratios, dividend yield) are not yet available for
Filter by exact SEC filing date in YYYY-MM-DD format. Rows without a known filing date are excluded.
Filter by SEC filing date greater than date in YYYY-MM-DD format. Rows without a known filing date are excluded.
Filter by SEC filing date greater than or equal to date in YYYY-MM-DD format. Rows without a known filing date are excluded.
Filter by SEC filing date less than date in YYYY-MM-DD format. Rows without a known filing date are excluded.
Filter by SEC filing date less than or equal to date in YYYY-MM-DD format. Useful for point-in-time queries: returns only data that was publicly filed by the given date. Rows without a known filing date are excluded.
The ISIN (International Securities Identification Number) of a non-US listing. An alternative to `ticker` and `exchange`.
The maximum number of results to return. This is the total across all pages, not a page size: each page holds up to 10 records, linked by `next_page_url`.
Filter by exact report period date in YYYY-MM-DD format.
Filter by report period greater than date in YYYY-MM-DD format.
Filter by report period greater than or equal to date in YYYY-MM-DD format.
Filter by report period less than date in YYYY-MM-DD format.
Filter by report period less than or equal to date in YYYY-MM-DD format.
The ticker symbol of the company. Required if cik is not provided.
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

Financial Datasets Get Financial Metrics API

Returns historical financial metrics for a company, one record per reporting period. Each record covers valuation, profitability, liquidity, debt, growth, and per share figures. You pass a ticker (or cik, or isin) and a required period of annual, quarterly, or ttm.

Use cases

  • Chart price_to_earnings_ratio and enterprise_value_to_ebitda_ratio over several years to see how a stock's valuation has changed.
  • Compare gross_margin, operating_margin, and net_margin across fiscal years to track profitability trends.
  • Screen balance sheet health by reading current_ratio, debt_to_equity, and debt_to_assets for each filing.
  • Run point-in-time backtests by filtering on filing_date_lte so only data already filed is used.

Request

curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/financial-metrics" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"period": "annual", "limit": 2, "ticker": "AAPL"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
periodstringYesThe time period for the financial data.
cikstringNoThe Central Index Key (CIK) of the company. Can be used instead of ticker.
cursorstringNoOpaque pagination cursor from a previous response's next_page_url. When provided, all other query parameters are ignored: the cursor carries the original request's filters. Treat it as opaque; do not construct or modify
exchangestringNoThe 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
filing_datestringNoFilter by exact SEC filing date in YYYY-MM-DD format. Rows without a known filing date are excluded.
filing_date_gtstringNoFilter by SEC filing date greater than date in YYYY-MM-DD format. Rows without a known filing date are excluded.
filing_date_gtestringNoFilter by SEC filing date greater than or equal to date in YYYY-MM-DD format. Rows without a known filing date are excluded.
filing_date_ltstringNoFilter by SEC filing date less than date in YYYY-MM-DD format. Rows without a known filing date are excluded.
filing_date_ltestringNoFilter by SEC filing date less than or equal to date in YYYY-MM-DD format. Useful for point-in-time queries: returns only data that was publicly filed by the given date. Rows without a known filing date are excluded.
isinstringNoThe ISIN (International Securities Identification Number) of a non-US listing. An alternative to ticker and exchange.
limitintegerNoThe maximum number of results to return. This is the total across all pages, not a page size: each page holds up to 10 records, linked by next_page_url.
report_periodstringNoFilter by exact report period date in YYYY-MM-DD format.
report_period_gtstringNoFilter by report period greater than date in YYYY-MM-DD format.
report_period_gtestringNoFilter by report period greater than or equal to date in YYYY-MM-DD format.
report_period_ltstringNoFilter by report period less than date in YYYY-MM-DD format.
report_period_ltestringNoFilter by report period less than or equal to date in YYYY-MM-DD format.
tickerstringNoThe ticker symbol of the company. Required if cik is not provided.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "financial_metrics": [
    {
      "accession_number": "0000320193-25-000079",
      "asset_turnover": 1.1584451663368045,
      "book_value_growth": 0.2946971027216857,
      "book_value_per_share": 4.989932224818939,
      "cash_ratio": 0.21695214060169896,
      "currency": "USD",
      "current_ratio": 0.8932929222186667,
      "days_sales_outstanding": 32.09485631762708,
      "debt_to_assets": 0.31050186365142063,
      "debt_to_equity": 1.5128232948611884,
      "earnings_growth": 0.19495177946573355,
      "earnings_per_share": 7.5803549089548685
    }
  ]
}

Response fields

FieldMeaning
financial_metrics[]One record per reporting period, newest first in this response.
financial_metrics[].fiscal_period / period / form_typeThe fiscal label (such as FY2025), the period type you requested, and the SEC form the data came from (such as 10-K).
financial_metrics[].filing_date / filing_datetime / filing_url / accession_numberWhen the report was filed with the SEC, a link to the filing index page, and the filing's accession number.
financial_metrics[].market_cap / enterprise_valueCompany market capitalization and enterprise value, in the currency given in currency.
financial_metrics[].price_to_earnings_ratio / price_to_book_ratio / price_to_sales_ratio / peg_ratioValuation ratios for the period.
financial_metrics[].gross_margin / operating_margin / net_marginProfitability margins as decimal ratios. A value of 0.27 reads as 27%.
financial_metrics[].current_ratio / cash_ratio / debt_to_equity / debt_to_assets / interest_coverageLiquidity and debt measures. interest_coverage is null for Apple in this response.
financial_metrics[].earnings_growth / earnings_per_share_growth / ebitda_growth / operating_income_growth / free_cash_flow_growth / book_value_growthGrowth rates compared with the prior period, as decimals. Negative values mean a decline.
financial_metrics[].earnings_per_share / book_value_per_share / free_cash_flow_per_sharePer share figures for the period.
financial_metrics[].asset_turnover / inventory_turnover / days_sales_outstanding / operating_cycleEfficiency measures for how the company uses assets, inventory, and receivables.

Notes

  • limit is the total number of records across all pages. Each page holds up to 10 records, linked by next_page_url. Pass the cursor value from that URL to get the next page, and send no other filters with it.
  • Use report_period filters to select by period end date and filing_date filters to select by SEC filing date. Both use YYYY-MM-DD.
  • Set exchange to LSE for London listings. Price-based values are not yet available for those.
  • For the latest values only, call Financial Datasets Get Financial Metrics Snapshot. For the underlying statements, call Financial Datasets Get Financial Statements.

Pricing

$0.02 per successful call. Failed calls are not charged.

探索更多

相关 APIs

全部 APIs
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

问题

常见问题

如何使用 Financial Datasets Get Financial Metrics API?

向 https://api.sandbase.ai/v1/api/financial-datasets/financial-metrics 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Financial Datasets Get Financial Metrics API 的价格是多少?

每次调用 $0.02,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Financial Datasets Get Financial Metrics API 接受哪些参数?

必填:period(annual, quarterly, ttm 之一)。 可选:cik (string), cursor (string), exchange(LSE 之一), filing_date (string), filing_date_gt (string) 和 filing_date_gte (string) 以及另外 10 项。 Parameters 表和本页的 Playground 列出了每个字段。

Financial Datasets Get Financial Metrics API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Financial Datasets 开发者账户或 API key 吗?

不需要。Financial Datasets Get Financial Metrics 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Financial Datasets API 访问权限。