DEV Community

Sunyeon Heo
Sunyeon Heo

Posted on AI-assisted

Two people's YouTube subscriptions as a data source: what surprised me

I built a small tool that compares two people's YouTube taste, and I learned more from the data model than from the UI. It doesn't ask a quiz and it doesn't read a horoscope. It takes the channels you actually subscribe to and the videos you actually liked, and works out how much those two sets overlap.

Here is what surprised me.

The subscription list is a much better signal than the liked list

A subscription list is small and chosen on purpose. A liked-videos list is larger, noisier, and full of impulse clicks - a video someone half-watched while eating. When I weighted subscriptions above likes, results moved much closer to what people said "felt right" when I showed them the output. The liked list is still useful, but as a tiebreaker rather than as half the model.

Raw overlap is really a popularity score

Counting shared channels without normalising means two people who both subscribe to a big music channel look compatible, and two people with genuinely similar niche taste look unrelated. The fix that helped most was weighting each shared channel by 1/log(subscriber count): a shared 4,000-subscriber channel says much more about two people than a shared 40M one.

Jaccard similarity gives numbers that feel wrong

Plain Jaccard on two subscription sets lands in the low teens even for people who clearly have the same taste, because set sizes differ and any one person's list is a small slice of YouTube. I ended up blending a weighted Jaccard with a cosine over the same channel vectors and mapping the result onto a range that behaves sensibly on screen. The percentage is cosmetic; the ranking between pairs is what has to be right.

Comparing inputs beats comparing recommendations

Most "taste match" features compare outputs - your recommended feed. But a recommended feed is already blended with what the platform wants you to watch next, so comparisons converge: everyone who watched the same popular video ends up with overlapping recommendations. Comparing the input set keeps individual differences visible, which is the whole point.

The unglamorous wall is quota

YouTube Data API v3 gives 10,000 units a day. subscriptions.list and videos.list are cheap per page but not free, and a comparison needs both users' lists plus channel metadata for whatever is shared. At a few dozen comparisons a day that is fine; the moment it isn't, caching saves you, not a better algorithm. Cache channel metadata by ID, snapshot a user's list when they ask for a comparison instead of polling it, and fetch metadata only for the intersection when you render.

Privacy shapes the product more than the maths

The only scope the app asks for is youtube.readonly. Whoever opens a comparison link sees the overlap and the score, not the other person's raw subscription list, because the list is the private part - it says more about someone than most profiles do.

I'm curious how others handle the normalisation step, especially the channel-size weighting. Is log(subscribers) the right curve, or does average engagement per channel work better for you?

If you want to see what the output looks like without signing in, there's a sample comparison of six preset pairs at https://maolrate.com/en/demo/ (the first lands at 84.5%). It's my own project, so take the framing with the usual grain of salt - the method notes above are the part worth arguing with.

Top comments (0)