symbolstring必填
Stock ticker symbol (e.g. 'AAPL', 'MSFT', 'NVDA').
https://api.sandbase.ai/v1/api/stockanalysis/stock-financials-incomeDetailed income statement for a stock. Returns annual financial data including revenue, gross profit, operating income, net income, EPS, margins, and growth rates organized in a financialData object with arrays per.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Returns the annual income statement for a stock, including revenue, gross profit, operating income, net income, EPS, margins and cash flow figures. It needs one input, the ticker symbol, such as AAPL.
curl -X POST "https://api.sandbase.ai/v1/api/stockanalysis/stock-financials-income" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"symbol": "AAPL"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
symbol | string | Yes | Stock ticker symbol (e.g. 'AAPL', 'MSFT', 'NVDA'). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"availableSources": [
"spg"
],
"classicStatementLayout": false,
"defaultSource": "spg",
"details": {
"fiscalYear": "October - September",
"fiscalYearShort": "Oct - Sep",
"lastTradingDay": "Nov 2, 2026",
"lastTrailingDate": "Sep 26, 2026",
"reportingFrequency": null,
"source": "spg"
},
"financialData": {
"cor": [
245232000000
],
"datekey": [
"TTM"
],
"depAmorEbitda": [
13423000000
],
"dps": [
null
],
"ebit": [
158063000000
],
"ebitMargin": [
0.3301
],
"ebitda": [
171486000000
],
"ebitdaMargin": [
0.35813
],
"epsBasic": [
9.01484
],
"epsdil": [
8.98
],
"fcf": [
136056000000
],
"fcfMargin": [
0.28414
]
},
"financialState": null,
"fullWidthFinancials": false,
"full_count": 10,
"head": {
"description": "Detailed annual and quarterly income statement for Apple (AAPL). See many years …",
"heading": "Income Statement",
"title": "Apple (AAPL) Income Statement",
"url": "/stocks/aapl/financials/income-statement/"
},
"map": [
{
"id": "operatingRevenue",
"title": "Operating Revenue"
}
],
"overrideSource": null,
"overviewLeftToRight": false
},
"status": "success"
}
| Field | Meaning |
|---|---|
data.financialData.datekey[] | Period label for each position in the arrays. The first value is TTM for trailing twelve months, and the others are period end dates such as 2025-09-27. |
data.financialData.revenue[] | Revenue for each period, in the same order as datekey. |
data.financialData.gp[] / data.financialData.opinc[] / data.financialData.netinc[] | Gross profit, operating income and net income for each period. |
data.financialData.grossMargin[] / data.financialData.operatingMargin[] / data.financialData.profitMargin[] | Margins as decimal ratios. For example, 0.48786 is a gross margin of about 48.8%. |
data.financialData.epsdil[] / data.financialData.epsBasic[] | Diluted and basic earnings per share for each period. |
data.financialData.ebitda[] / data.financialData.fcf[] | EBITDA and free cash flow for each period. |
data.financialData.rnd[] / data.financialData.sgna[] / data.financialData.opex[] | Research and development, selling, general and administrative, and total operating expenses. |
data.financialData.sharesDiluted[] / data.financialData.sharesBasic[] | Diluted and basic weighted share counts for each period. |
data.financialData.fiscalYear[] / data.financialData.fiscalQuarter[] | Fiscal year and fiscal quarter that each period belongs to. |
data.prior | Same income statement fields for an older period (fiscal year 2021 in this response), held in single-item arrays. |
data.financialData lines up by index with data.financialData.datekey. Read the same index across arrays to get one period.null, for example interestExpense and interestIncome in the current periods.period field is annual in this response. data.details.fiscalYear gives the company fiscal year range, such as October - September.$0.01 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/stockanalysis/stock-financials-income" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"symbol": "AAPL"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
symbolstring必填Stock ticker symbol (e.g. 'AAPL', 'MSFT', 'NVDA').
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
StockAnalysis | 每次呼叫 $0.01 | 非同步 JSON |
StockAnalysis | 每次呼叫 $0.01 | 非同步 JSON |
StockAnalysis | 每次呼叫 $0.01 | 非同步 JSON |
StockAnalysis | 每次呼叫 $0.01 | 非同步 JSON |
StockAnalysis | 每次呼叫 $0.01 | 非同步 JSON |
StockAnalysis | 每次呼叫 $0.01 | 非同步 JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/stockanalysis/stock-financials-income。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次 $0.01,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:symbol (string)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
JSON 結果。此端點為非同步執行,因此回應會告訴您如何取得完成的結果。 本頁的 README 包含範例回應。
不需要。StockAnalysis Stock Financials Income 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 StockAnalysis API 存取權。