Field reference / analyst
analyst_consensus_direction
Direction of the analyst recommendation trend: upgrading, stable or downgrading. Stocks only.
| Level | Per stock, ETF and coin, one value per date |
| Type | string (band) |
| Can be null | Yes |
| Category | analyst |
| Returned by | /v1/history, /v1/search |
Values
One of these, in order:
upgrading stable downgrading
Change markers
Every row also says how long this band has held its value and what it was before. Ask for these by name like any field. See Diff.
| Field | Type | What it says |
|---|---|---|
analyst_consensus_direction_stability | string (band) | How settled analyst_consensus_direction is: volatile when it changed often in the last 30 days (12 weeks on weekly rows); otherwise fresh (just changed), holding, or established (unchanged for a long time). |
analyst_consensus_direction_periods | integer | Daily or weekly rows, including this one, that analyst_consensus_direction has held its current value; 1 means it changed on this row. |
analyst_consensus_direction_flips_recent_count | integer | How many times analyst_consensus_direction changed value in the last 30 days (12 weeks on weekly rows). |
analyst_consensus_direction_flips_lookback | string | The window analyst_consensus_direction_flips_recent_count covers: 30d on daily rows, 12w on weekly. |
analyst_consensus_direction_prev | string (band) | The value analyst_consensus_direction had before it changed, on the row where it changed (when _periods = 1); null otherwise. |
Getting it
Its history for one ticker:
curl -G "https://api.tickerdb.com/v1/history" \
--data-urlencode 'tickers=AAPL' \
--data-urlencode 'fields=analyst_consensus_direction' \
--data-urlencode 'start=2025-01-01' \
-H "Authorization: Bearer YOUR_API_KEY"
Stocks matching it today:
curl -G "https://api.tickerdb.com/v1/search" \
--data-urlencode 'filters=[{"field":"analyst_consensus_direction","op":"eq","value":"upgrading"}]' \
--data-urlencode 'fields=["ticker","analyst_consensus_direction"]' \
-H "Authorization: Bearer YOUR_API_KEY"
Related fields
Every field, with its type and values, is also in /v1/schema/fields.