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.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
tickerstringThe stock ticker symbol (e.g. AAPL, MSFT).
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Financial Datasets | $0.02 par appel | JSON |
Financial Datasets | $0.02 par appel | JSON |
Financial Datasets | $0.02 par appel | JSON |
Financial Datasets | $0.02 par appel | JSON |
Financial Datasets | $0.02 par appel | JSON |
Financial Datasets | $0.02 par appel | JSON |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/financial-datasets/prices-snapshot avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
$0.02 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Aucun paramètre n’est requis. Facultatif : ticker (string). Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.
Non. Financial Datasets Get Stock Price Snapshot fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Financial Datasets séparément.