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.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
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.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
limitstringlimit
periodstringperiod
tickerstringticker
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Financial Datasets Get Analyst EstimatesQuesta API Financial Datasets | $0.02 per chiamata | JSON |
Financial Datasets | $0.02 per chiamata | JSON |
Financial Datasets | $0.02 per chiamata | JSON |
Financial Datasets | $0.02 per chiamata | JSON |
Financial Datasets | $0.02 per chiamata | JSON |
Financial Datasets | $0.02 per chiamata | JSON |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/financial-datasets/analyst-estimates con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
$0.02 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Nessun parametro richiesto. Facoltativi: limit (string), period (string) e ticker (string). La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Una risposta JSON restituita nella stessa richiesta HTTP (sincrona). Il README di questa pagina include una risposta di esempio.
No. Financial Datasets Get Analyst Estimates funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Financial Datasets.