Skip to main content

Purpose

We aim to capture the volume of engagement around different topics across the internet. We use official and third-party APIs to obtain data. To most accurately measure attention, we prioritize active engagement over passive engagement and apply source-level weighting to down-weight signals susceptible to artificial inflation. The methodology for our general Attention Index is shown below.
The specific methodologies may vary depending on the index category. Be sure to check the methodology of each index before relying on it.

Data Collection

Raw metrics are aggregated at fixed intervals using keyword-based querying, log-transformed, and combined using predefined weights. The keyword we use is the name of the index in lowercase. For example, the “Claude Code” index uses “claude code” as its keyword. Most engagement data follows a power law, so we apply a ln⁡(x+1)\ln(x+1) transformation to each metric to stabilize variance and mitigate the impact of outliers.

Frequency

Each index publishes a new value every 30 minutes. Indices publish on a staggered schedule, so different indices update at different times and requests to our data providers are spread out. Each time an index publishes, it collects new data from any source that is due and reuses the most recent values from the others. X is collected every 30 minutes; YouTube, Reddit, and Google Trends are collected hourly. If a source fails or returns no usable data, the index keeps that source’s most recent value. A new index starts publishing only once every source has returned data.

Sources

Our general index uses data from four platforms. Metrics that count activity over the past 24 hours are normalized to a 15-minute baseline so that every source is measured on the same scale.

YouTube Data API v3 (Public)

  • Frequency: Data collected hourly.
  • Normalization: Since each collection covers 24 hours of data, we divide raw metrics by 96 (the number of 15-minute intervals in 24 hours).
  • Discovery: We use the search.list endpoint (part=id, type=video, order=relevance, maxResults=50, publishedAfter set to 24 hours ago, q={keyword}) to find the 50 most relevant videos published over the last 24 hours. This call also returns totalResults, YouTube’s estimate of how many videos match, which we use in our calculations below.
  • Metrics: We use the videos.list endpoint (part=statistics, id={video IDs}) to find each video’s viewCount, likeCount, and commentCount, and sum each across the videos.
We apply a ln⁡(x+1)\ln(x+1) transformation to each metric and then apply the following weights:We sum these metrics to score YouTube’s contribution to the index.

Raw Combination

The Raw Index is the weighted combination of Google Trends and the Social Metric (YouTube, Reddit, and X), scaled by a factor of 10.

Formula

Raw Index=10⋅[0.30G+0.70(0.40Y+0.30R+0.30X)]Raw\ Index = 10 \cdot [0.30G + 0.70(0.40Y + 0.30R + 0.30X)]

Final Index (EMA)

To reduce short-term noise, we smooth the Raw Index using an exponential moving average (EMA). This dampens transient spikes while still letting the index follow sustained shifts in attention. We use a 12-hour half-life, meaning the weight of any single observation decays by half every 12 hours.

EMA Update Rule

Each time the index publishes, it updates as follows: Final Index=EMAt=EMAt−1+α⋅(Rawt−EMAt−1)Final\ Index = EMA_{t} = EMA_{t-1} + \alpha \cdot (Raw_{t} - EMA_{t-1}) where:
  • RawtRaw_t = the latest Raw Index value (see “Raw Combination” above)
  • EMAt−1EMA_{t-1} = the previous smoothed index value
  • α\alpha = the smoothing factor (see below)
  • dtdt = time elapsed since the last update (in hours)
  • hh = the half-life (12 hours)
On first calculation, EMAEMA is initialized to the current Raw Index value.

Smoothing Factor

The smoothing factor α\alpha controls how much weight each new observation carries. It is derived from the half-life and the time between updates: α=1−2−dt/h\alpha = 1 - 2^{-dt / h} Currently, the index updates every dt=0.5dt = 0.5 hours (see “Frequency” above). With h=12h = 12 hours: α≈0.028\alpha \approx 0.028 A smaller α\alpha means slower response to new data and a smoother index. In practice, ~2.8% of each update comes from the new Raw Index value, while ~97.2% carries forward from the previous EMA.
The final Attention Index is the EMA-smoothed value of a topic’s weighted engagement across YouTube, Reddit, X, and Google Trends.
History from before an index went live is backfilled from Google Trends alone.
1

Daily Series

We request the keyword’s daily interest alongside the two ladder rungs nearest its level and convert it to SU.
2

Score

Each day’s score is ln⁡(100⋅SU+1)\ln(100 \cdot SU + 1), as in the live calculation.
3

Anchor

We anchor the backfill on the index’s first live value: each day’s value is that value plus 5.5 times the change in score since the first live day.
Indexd=Indexfirst live+5.5⋅(Scored−Scorefirst live day)Index_{d} = Index_{first\ live} + 5.5 \cdot (Score_{d} - Score_{first\ live\ day})