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 |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/financial-datasets/analyst-estimates に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.02、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須パラメータはありません。 任意: limit (string), period (string) と ticker (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Financial Datasets Get Analyst Estimates は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Financial Datasets の API アクセスを別途申請する必要はありません。