tickerstring
The stock ticker symbol (e.g. AAPL, MSFT).
https://api.sandbase.ai/v1/api/financial-datasets/prices-snapshotGet the real-time price snapshot for a stock, including the current price, day change, and day change percent.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns the latest price snapshot for one stock: the current price, the change since the previous close, and the time of the quote. It needs a stock ticker symbol such as AAPL.
curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/prices-snapshot" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"ticker": "AAPL"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
ticker | string | No | The stock ticker symbol (e.g. AAPL, MSFT). |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"snapshot": {
"day_change": -13.93,
"day_change_percent": -4.04,
"price": 330.7,
"ticker": "AAPL",
"time": "2026-11-03T00:37:12Z",
"time_milliseconds": 1793666232299
}
}
| Field | Meaning |
|---|---|
snapshot.ticker | The stock ticker symbol the snapshot is for. |
snapshot.price | The current stock price in the response, for example 330.7. |
snapshot.day_change | The price change for the day. A negative value means the stock is down. |
snapshot.day_change_percent | The day change as a percent. The example value -4.04 matches a drop of about 4 percent. |
snapshot.time | The quote time as an ISO 8601 timestamp in UTC, for example 2026-11-03T00:37:12Z. |
snapshot.time_milliseconds | The same quote time as a Unix timestamp in milliseconds. |
ticker parameter. Use the exchange symbol, such as AAPL or MSFT.ticker parameter is marked optional in the schema, but the request needs it to return a snapshot for a stock.$0.02 per successful call. Failed calls are not charged.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/financial-datasets/prices-snapshot" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"ticker": "AAPL"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
tickerstringThe stock ticker symbol (e.g. AAPL, MSFT).
この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/prices-snapshot に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.02、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須パラメータはありません。 任意: ticker (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Financial Datasets Get Stock Price Snapshot は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Financial Datasets の API アクセスを別途申請する必要はありません。