periodstringआवश्यक
The time period for the financial data.
संभावित मान: annual, quarterly, ttm
https://api.sandbase.ai/v1/api/financial-datasets/financial-metricsGet financial metrics for a ticker, including valuation, profitability, efficiency, liquidity, leverage, growth, and per share metrics.
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
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.
price_to_earnings_ratio and enterprise_value_to_ebitda_ratio over several years to see how a stock's valuation has changed.gross_margin, operating_margin, and net_margin across fiscal years to track profitability trends.current_ratio, debt_to_equity, and debt_to_assets for each filing.filing_date_lte so only data already filed is used.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.
| Name | Type | Required | Description |
|---|---|---|---|
period | string | Yes | The time period for the financial data. |
cik | string | No | The Central Index Key (CIK) of the company. Can be used instead of ticker. |
cursor | string | No | 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 |
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 |
filing_date | string | No | Filter by exact SEC filing date in YYYY-MM-DD format. Rows without a known filing date are excluded. |
filing_date_gt | string | No | Filter by SEC filing date greater than date in YYYY-MM-DD format. Rows without a known filing date are excluded. |
filing_date_gte | string | No | Filter 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_lt | string | No | Filter by SEC filing date less than date in YYYY-MM-DD format. Rows without a known filing date are excluded. |
filing_date_lte | string | No | 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. |
isin | string | No | The ISIN (International Securities Identification Number) of a non-US listing. An alternative to ticker and exchange. |
limit | integer | No | 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. |
report_period | string | No | Filter by exact report period date in YYYY-MM-DD format. |
report_period_gt | string | No | Filter by report period greater than date in YYYY-MM-DD format. |
report_period_gte | string | No | Filter by report period greater than or equal to date in YYYY-MM-DD format. |
report_period_lt | string | No | Filter by report period less than date in YYYY-MM-DD format. |
report_period_lte | string | No | Filter by report period less than or equal to date in YYYY-MM-DD format. |
ticker | string | No | The ticker symbol of the company. Required if cik is not provided. |
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
}
]
}
| Field | Meaning |
|---|---|
financial_metrics[] | One record per reporting period, newest first in this response. |
financial_metrics[].fiscal_period / period / form_type | The 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_number | When 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_value | Company 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_ratio | Valuation ratios for the period. |
financial_metrics[].gross_margin / operating_margin / net_margin | Profitability 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_coverage | Liquidity 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_growth | Growth 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_share | Per share figures for the period. |
financial_metrics[].asset_turnover / inventory_turnover / days_sales_outstanding / operating_cycle | Efficiency measures for how the company uses assets, inventory, and receivables. |
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.report_period filters to select by period end date and filing_date filters to select by SEC filing date. Both use YYYY-MM-DD.exchange to LSE for London listings. Price-based values are not yet available for those.$0.02 per successful call. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
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 '{
"limit": 2,
"period": "annual",
"ticker": "AAPL"
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
periodstringआवश्यकThe time period for the financial data.
संभावित मान: annual, quarterly, ttm
cikstringThe Central Index Key (CIK) of the company. Can be used instead of ticker.
cursorstringOpaque 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.
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
filing_datestringFilter by exact SEC filing date in YYYY-MM-DD format. Rows without a known filing date are excluded.
filing_date_gtstringFilter by SEC filing date greater than date in YYYY-MM-DD format. Rows without a known filing date are excluded.
filing_date_gtestringFilter 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_ltstringFilter by SEC filing date less than date in YYYY-MM-DD format. Rows without a known filing date are excluded.
filing_date_ltestringFilter 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.
isinstringThe ISIN (International Securities Identification Number) of a non-US listing. An alternative to `ticker` and `exchange`.
limitintegerThe 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_periodstringFilter by exact report period date in YYYY-MM-DD format.
report_period_gtstringFilter by report period greater than date in YYYY-MM-DD format.
report_period_gtestringFilter by report period greater than or equal to date in YYYY-MM-DD format.
report_period_ltstringFilter by report period less than date in YYYY-MM-DD format.
report_period_ltestringFilter by report period less than or equal to date in YYYY-MM-DD format.
tickerstringThe ticker symbol of the company. Required if cik is not provided.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए 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 पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.02 प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: period (annual, quarterly, ttm में से एक)। वैकल्पिक: cik (string), cursor (string), exchange (LSE में से एक), filing_date (string), filing_date_gt (string) और filing_date_gte (string) और 10 और। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। Financial Datasets Get Financial Metrics SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Financial Datasets API access के लिए आवेदन करने की आवश्यकता नहीं है।