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.
Sua saída aparecerá aqui
Preencha as entradas e clique em Executar.
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.
Comece a construir
Endpoint da API da plataforma com autenticação unificada e rastreamento de uso.
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"
}'Defina sua chave da API SandBase no ambiente do seu servidor. As requisições usam autenticação Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Mantenha sua chave no servidor. Não a exponha em código do navegador.
limitstringlimit
periodstringperiod
tickerstringticker
Resposta de exemplo salva para esta API; nenhuma requisição ao vivo é feita ao visualizá-la.
Nenhuma resposta salva foi publicada. Execute a API no Playground para inspecionar a resposta.
Explorar mais
| API | Preço | Resposta |
|---|---|---|
Financial Datasets | $0.02 por chamada | JSON |
Financial Datasets | $0.02 por chamada | JSON |
Financial Datasets | $0.02 por chamada | JSON |
Financial Datasets | $0.02 por chamada | JSON |
Financial Datasets | $0.02 por chamada | JSON |
Financial Datasets | $0.02 por chamada | JSON |
Perguntas
Envie uma solicitação POST para https://api.sandbase.ai/v1/api/financial-datasets/analyst-estimates com sua chave de API da SandBase no cabeçalho Authorization (Bearer) e os parâmetros no corpo JSON. Você também pode testar no Playground desta página sem escrever código.
$0.02 por chamada, cobrado do seu saldo SandBase. Você paga apenas pelas chamadas que fizer; não há assinatura.
Nenhum parâmetro é obrigatório. Opcionais: limit (string), period (string) e ticker (string). A tabela de Parâmetros e o Playground nesta página listam todos os campos.
Uma resposta JSON retornada na mesma solicitação HTTP (síncrona). O README desta página inclui um exemplo de resposta.
Não. Financial Datasets Get Analyst Estimates funciona via SandBase, então uma única chave de API da SandBase cobre este endpoint e todas as outras APIs e modelos do catálogo. Você não precisa solicitar acesso à API do Financial Datasets separadamente.