limitstring
limit
https://api.sandbase.ai/v1/api/financial-datasets/analyst-estimatesGet Analyst Estimates from Financial Datasets. Returns the official Financial Datasets API response unchanged.
您的输出将显示在这里
完成输入,然后点击运行。
Returns analyst consensus estimates for a public company. Each row has an estimated earnings per share and revenue for one future fiscal period. You pass a stock ticker, and you can set period and limit.
earnings_per_share for the next two fiscal years of a stock such as AAPL.revenue values across fiscal periods.curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/analyst-estimates" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"limit": "2", "period": "annual", "ticker": "AAPL"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
limit | string | No | limit |
period | string | No | period |
ticker | string | No | ticker |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"analyst_estimates": [
{
"earnings_per_share": 9.3,
"fiscal_period": "2027-09-30",
"period": "annual",
"revenue": 499734519018
}
]
}
| Field | Meaning |
|---|---|
analyst_estimates[] | List of estimate rows, one per fiscal period. The request used limit set to 2, and the response holds two rows. |
analyst_estimates[].fiscal_period | End date of the fiscal period the estimate covers, in YYYY-MM-DD format, for example 2027-09-30. |
analyst_estimates[].period | Length of the period. The value is annual in this response, which matches the period request value. |
analyst_estimates[].earnings_per_share | Estimated earnings per share for that fiscal period, for example 9.3. |
analyst_estimates[].revenue | Estimated revenue for that fiscal period, given as a plain number, for example 499734519018. |
ticker, for example AAPL.period set to annual. Rows are ordered by fiscal_period, earliest first.limit to cap the number of rows returned. It is sent as a string, such as "2".$0.02 per successful call. Failed calls are not charged.
开始构建
具备统一身份验证和使用情况跟踪的平台 API 端点。
curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/analyst-estimates" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": "2",
"period": "annual",
"ticker": "AAPL"
}'将您的 SandBase API 密钥设置到服务器环境中。请求使用 Bearer 身份验证。
export SANDBASE_API_KEY="YOUR_API_KEY"请将密钥保存在服务器端。不要在浏览器代码中暴露它。
limitstringlimit
periodstringperiod
tickerstringticker
这是该 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/analyst-estimates 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。
每次调用 $0.02,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。
无需参数。 可选:limit (string), period (string) 和 ticker (string)。 Parameters 表和本页的 Playground 列出了每个字段。
在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。
不需要。Financial Datasets Get Analyst Estimates 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Financial Datasets API 访问权限。