Market data and fundamentals
Analyst estimates and revisions
Consensus estimates and their recorded revisions by company and fiscal period
2 endpoints4 to 10 credits per listing
Try it
curl "https://api.gloom.sh/v1/analyst-estimates?symbols=AAPL" \
-H "Authorization: Bearer $GLOOM_DATASETS_KEY"import os
import requests
response = requests.get(
"https://api.gloom.sh/v1/analyst-estimates?symbols=AAPL",
headers={"Authorization": f"Bearer {os.environ['GLOOM_DATASETS_KEY']}"},
)
response.raise_for_status()
print(response.json())const response = await fetch(
"https://api.gloom.sh/v1/analyst-estimates?symbols=AAPL",
{ headers: { Authorization: `Bearer ${process.env.GLOOM_DATASETS_KEY}` } },
)
if (!response.ok) throw new Error(await response.text())
console.log(await response.json())Response
{
"data": [
{
"symbol": "AAPL",
"name": "Apple Inc.",
"currency": "USD",
"exchange": "NasdaqGS",
"shareBasis": null,
"adrRatio": null,
"priceTarget": {
"high": 425,
"median": 356.5,
"low": 250,
"average": 347.35843,
"current": 345.87,
"currency": "USD",
"currentAt": "2026-12-04T22:14:55.534Z"
},
"recommendationRating": 7.102275,
"recommendations": [
{
"period": "current month",
"strongBuy": 6,
"buy": 20,
"hold": 12,
"sell": 3,
"strongSell": 3
},
{
"period": "last month",
"strongBuy": 6,
"buy": 20,
"hold": 12,
"sell": 3,
"strongSell": 3
},
// … 2 more items
],
"ratings": [
{
"date": "2026-11-11",
"firm": "China Renaissance",
"action": "Upgrade",
"current": "Buy",
"prior": "Hold",
"currentPriceTarget": 425
},
{
"date": "2026-11-04",
"firm": "Bernstein",
"action": "Raises",
"current": "Buy",
"prior": "Buy",
"currentPriceTarget": 380,
"priorPriceTarget": 370
},
// … 3 more items
],
"earningsEstimates": [
{
"date": "2026-12-31",
"period": "current quarter",
"analysts": 25,
"currency": "USD",
"average": 2.91173,
"low": 2.83,
"high": 3.18,
"yearAgo": 2.84,
"growth": 0.0253,
"revisions": {
"up7Days": 10,
"down7Days": 4,
"up30Days": 14,
"down30Days": 6,
"currency": "USD"
},
"trend": {
"current": 2.91173,
"sevenDaysAgo": 2.91173,
"thirtyDaysAgo": 2.91012,
"sixtyDaysAgo": 2.90586,
"ninetyDaysAgo": 2.89268
},
"trendCurrency": "USD"
},
{
"date": "2027-03-31",
"period": "next quarter",
"analysts": 23,
"currency": "USD",
"average": 2.15037,
"low": 1.83,
"high": 2.48998,
"yearAgo": 2.01,
"growth": 0.0698,
"revisions": {
"up7Days": 1,
"down7Days": 13,
"up30Days": 2,
"down30Days": 13,
"currency": "USD"
},
"trend": {
"current": 2.15037,
"sevenDaysAgo": 2.15037,
"thirtyDaysAgo": 2.22401,
"sixtyDaysAgo": 2.23415,
"ninetyDaysAgo": 2.2226
},
"trendCurrency": "USD"
},
// … 2 more items
],
"revenueEstimates": [
{
"date": "2026-12-31",
"period": "current quarter",
"analysts": 23,
"currency": "USD",
"average": 156429989490,
"low": 154257600000,
"high": 158132000000,
"yearAgo": 143756000000,
"growth": 0.088199995
},
{
"date": "2027-03-31",
"period": "next quarter",
"analysts": 21,
"currency": "USD",
"average": 124000418700,
"low": 110770000000,
"high": 142811158840,
"yearAgo": 111184000000,
"growth": 0.1153
},
// … 2 more items
]
}
],
"meta": {
"dataset": "analyst-estimates",
"requestId": "sample-request",
"asOf": null,
"dataThrough": "2026-12-04T22:14:55.534Z",
"historyStart": null,
"updatedAt": "2026-12-04T22:14:55.534Z",
"page": null,
"next": null,
"coverage": null,
"symbols": [
{
"input": "AAPL",
"symbol": "AAPL",
"status": "ok"
}
],
"sampledAt": "2026-12-05T12:06:10.904Z",
"source": [
{
"attribution": "Exchange and market data providers"
}
]
}
}Trimmed · 2026-12-04
Run it without a key:GET /v1 /datasets /analyst-estimates /sampleEndpoints
Scheduled prices are for one page. See how to quote a request with GET /v1/datasets/cost.
GET /v1 /analyst-estimates10 credits per listingAnalyst earnings and revenue estimates
Parameters
symbolsstringrequired- Listings, comma-separated, at most 50, in any notation: AAPL, BRK-B, AIR.PA, VOD:XLON, AAPL.O. Each costs one call's price; one the dataset holds nothing for (empty) or no listing Gloom knows (not_found) is free. On Free: AAPL, MSFT, NVDA, AMZN, GOOGL, META, TSLA, AMD, NFLX and JPM only.
ratingsLimitinteger- Rating changes to give, newest first, 0 to 100. Default: every one the source gives, at most 100. On Free: at most 25.
fieldslist- Comma list of the fields to keep in each row; the rest are left out. A company route's rows keep
symbol. Default: every field.symbolnamecurrencyexchangeshareBasisadrRatiopriceTargetrecommendationRatingrecommendationsratingsearningsEstimatesrevenueEstimates
GET /v1 /analyst-estimates /revisions4 credits per listingAnalyst estimate revision history
Parameters
symbolsstringrequired- Listings, comma-separated, at most 50, in any notation: AAPL, BRK-B, AIR.PA, VOD:XLON, AAPL.O. Each costs one call's price; one the dataset holds nothing for (empty) or no listing Gloom knows (not_found) is free. On Free: AAPL, MSFT, NVDA, AMZN, GOOGL, META, TSLA, AMD, NFLX and JPM only.
fromstring- Calendar date:
YYYY-MM-DD. First day, YYYY-MM-DD; 365 days before to by default. At most 366 days before to: for an older from, send a to within 366 days of it. On Free: no earlier than 30 days back, and 30 days back when left out. tostring- Calendar date:
YYYY-MM-DD. Last day, YYYY-MM-DD; today (UTC) by default. On Free: within the last 30 days. periodstring- Only this period's consensus: one row a day instead of four.
current quarternext quartercurrent yearnext year limitinteger- Rows a page, newest first, 1 to 1,000. On Free: at most 25, and 25 when left out or more.
cursorstring- Opaque: meta.page.nextCursor of the previous page. Bound to this route and query. Not on Free: it reads the first page.
asOfstring- What Gloom knew at this moment: YYYY-MM-DD, through the end of that UTC day, or an RFC 3339 time such as 2026-10-01T14:30:00Z. Each day keeps the consensus as it stood at the end of that day: asOf keeps the days Gloom had by then, and leaves out a day updated or filled in since, as a derived day is. On Free: within the last 30 days.
fieldslist- Comma list of the fields to keep in each row; the rest are left out. A company route's rows keep
symbol. Default: every field.symbolobservedOnperiodperiodEndepsAverageepsLowepsHighanalystscurrencyrevenueAveragerevenueLowrevenueHighrevenueAnalystsrevenueCurrencyrecordedAtderivedpublishedAtobservedAt
from must be on or before to.
Good to know
recommendationRating runs from 0 to 10, 10 strong buy and 0 strong sell. ratingsLimit=5 keeps a company's answer near 4 KB, about 1,000 tokens; /analyst-estimates/revisions takes period=current quarter and pages with limit.
Syncing nightly
Read /analyst-estimates/revisions from seven days before your last run, upserting by observedOn and period, and the last 90 days weekly for derived days, by Syncing estimates.