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.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 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
- Reddit
- X (Twitter)
- Google Trends
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.listendpoint (part=id,type=video,order=relevance,maxResults=50,publishedAfterset to 24 hours ago,q={keyword}) to find the 50 most relevant videos published over the last 24 hours. This call also returnstotalResults, YouTube’s estimate of how many videos match, which we use in our calculations below. - Metrics: We use the
videos.listendpoint (part=statistics,id={video IDs}) to find each video’sviewCount,likeCount, andcommentCount, and sum each across the videos.
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
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: where:- = the latest Raw Index value (see “Raw Combination” above)
- = the previous smoothed index value
- = the smoothing factor (see below)
- = time elapsed since the last update (in hours)
- = the half-life (12 hours)
Smoothing Factor
The smoothing factor controls how much weight each new observation carries. It is derived from the half-life and the time between updates: Currently, the index updates every hours (see “Frequency” above). With hours: A smaller 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.
Backfill Methodology
Backfill Methodology
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 , 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.
