8 ms·
Ask HN: Why is YouTube adding “&pp=sAQA” to video URLs?
YouTube started adding a new parameter "pp=sAQA" to video URLs on most index style pages (e.g. /feed/subscriptions, search results, the /videos page on any channel). The actual video pages (/watch) strip the pp= parameter, and it doesn't appear to be added to the URLs for the "recommended" videos.
Does anybody know what this parameter does and/or why it was added? It's really annoying; using YouTube URLs in the shell now requires quoting due to the "&".
- EE84M3i 5y agoSounds to me like a side effect of an A/B test.
- 20after4 5y agoMaybe it's A/B testing? if so, I'm in the same "sAQA" bucket ...
- have_faith 5y agoAn analyst somewhere who isn't aware that people are literally playing with the test buckets and jumping between them to figure out what the query parameters do is going to write a confident report on why A outperformed B.
- quickthrower2 5y agoWeird they need URL params when they know who you are anyway from the browser thumbprint :-)
- lmilcin 5y agoSometimes the intention is to detect the param on the way back, regardless of whom it came back from. For example, the param may point to specific time on the video. Or the param may point that the video is part of some playlist, so that when somebody clicks he is brought not just to the same video but also to same playlist. As we don't know anything about this particular param we don't know if it is the case.
- bserge 5y agoThey're 80% assumptions and fiction in any case, so it's OK.
- sltkr 5y agoWhat fraction of the YouTube userbase do you imagine manually edits URLs?
- lmilcin 5y agoI always strip youtube links of an ampersand and everything that follows when I give them to anybody.
- tester34 5y agoespecially fbclid
- Agent766 5y agoIf I forget to do that I like to say "pardon my url"
- EForEndeavour 5y agoI manually edit "utm_" URL parameters to at least feel like I'm sending harmless easter eggs to analysts somewhere. utm_campaign=helpimabot
- deleted 5y ago[deleted]
- tsywke44 5y agoCongrats, you’re in the 0.0001% of youtube users who actually does that
- warkdarrior 5y agoThat number is way too high.
- m-p-3 5y agoMost likely quite low. I let my addons handle that. https://gitlab.com/KevinRoebert/ClearUrls https://gitlab.com/KevinRoebert/ClearUrls
- ricardo81 5y agoI'm seeing them on the home page, channels, explore, subscriptions but not on searches and 'related videos' while viewing one. /edited for fullness
- sen 5y agoI'm seeing it on all pages... Home, Explore, Subscriptions, even History.
- themaninthedark 5y agoI see it on the front page, but not on left sidebar when watching a video or in the overlay that shows other videos once the one you watched is finished. I see it in Explore and in all Subscriptions categories(not Subscriptions feed/subscriptions). It is also not appended to mixes/playlists for me. Does show up in Library and History, not in Watch Later and Liked Videos. Shows up in: Movies & Shows, Gaming, Live, Fashion & Beauty, Learning and Sports.
- cesarb 5y agoIt's fairly annoying for other reasons than just shell quoting. For instance, I use the browser history to know whether I've already watched some video; this extra parameter makes all these video links appear to be unvisited to the browser (since back when I visited them, that useless extra parameter didn't exist).
- Zealotux 5y agoIt's not as good, but the history is pretty useful: https://www.youtube.com/feed/history https://www.youtube.com/feed/history
- Nowado 5y agoThe absolute future of a proprietary service-specific history.
- cesarb 5y agoThat link shows empty to me, since I've never logged into YouTube, and most of the time I'm not even logged into the Google account. (I don't know if it's still the case, but I've heard that if you log into YouTube, and Google for some reason decides your real name is not your real name, you could lose access to your whole Google account; and at least to me, the Google Talk account was more important than being able to comment on YouTube videos.)
- Kye 5y agoI don't think that's been a thing for a long time. https://en.wikipedia.org/wiki/Nymwars https://en.wikipedia.org/wiki/Nymwars
- elric 5y agoLast I checked, it was impossible to create a YT/Google account without providing a (working) phone number. Which is even worse than requiring "real names" (which can at least be spoofed).
- codegladiator 5y agoatob("sAQA") = "°\u0004\u0000" Although not happening for me
- q3k 5y agoShooting from the hip here, but this ("\xb0\x04\x00") could be interpreted as a protobuf with this IDL: message Foo { optional int32 bar = 70; } that decodes to the following value: bar: 0 (or bar could be bool of value false, or enum at value 0/UNSPECIFIED, or int of any other size) But with such a short message and without other samples it's difficult to prove or disprove that this is indeed a protobuf :). One could try to set &pp=sAQB (bar = true/1), &pp=sAQP (bar = 15), ... and observe what happens.
- mentat 5y agoThis seems the most like case to me. Google loves their query PBs.
- hollander 5y agoJust remove it. The video plays.
- scubbo 5y agoWhat an uncurious attitude.
- mikewarot 5y agoThat gives a plausible cause to my suspicion that I'm seeing a bunch of stuff I already watched showing up in suggestions again.
- HKH2 5y agoSo YouTube is setting environment variables for people who don't do shell quoting. Next they can add "&reboot" to all their URLs.
- hobos_delight 5y agoThis is how you append query params to a url - nothing to do with the shell.
- PaulDavisThe1st 5y ago....&foo=BAR sets a shell variable, not an environment variable. The value of $foo will not be available to shell-forked processes.
- coldpie 5y agoWhat? Look at the URL in your browser right now. It has a bunch of x=y parameters. That's how URLs work.
- Sophira 5y agoThe parent comment is talking about what would happen if, for example, you typed this in bash to try to download a video: $ youtube-dl https://www.youtube.com/watch?v=dQw4w9WgXcQ&pp=sAQA https://www.youtube.com/watch?v=dQw4w9WgXcQ&pp=sAQA In this case, bash would interpret it as "run youtube-dl in the background with the parameter 'https://www.youtube.com/watch?v=dQw4w9WgXcQ https://www.youtube.com/watch?v=dQw4w9WgXcQ', then execute the command 'pp=sAQA' to set the 'pp' variable". The comment is joking that if YouTube decided to replace "pp=sAWA" with "reboot", they could get a lot of people to accidentally reboot their machines instead because they didn't quote the URL.
- aaron695 5y agoFrom the source the pp is - "playerParams":"sAQA"
- rasz 5y agoIts being added server side. YT does a fetch to https://www.youtube.com/youtubei/v1/browse?key=xxxxx https://www.youtube.com/youtubei/v1/browse?key=xxxxx and the response is subscriptions list, all already with &pp=sAQA attached
- __henil 5y agoNot sure if its something related, I got a wikipedia link from someone which included `&wprov=sfti1` as query string as well.
- duskwuff 5y agoUnrelated. The Wikimedia Foundation has actually documented the wprov query parameter. It's used to track the source of a link; "sfti1" is "Share a Fact on iOS for text shares, feature version 1". https://wikitech.wikimedia.org/wiki/Provenance https://wikitech.wikimedia.org/wiki/Provenance
- __henil 5y agoTIL
- Brian_K_White 5y agoStripping is nice an all but I want a plugin or greasemonkey script to rewrite that to pp=random on every request.
- smw 5y agoWhy don’t we have better magic in shells for quoting pasted urls?
- deleted 5y ago[deleted]
- deleted 5y ago[deleted]
- glow1nthedark 5y agoSeems like it's being appended to video links shown on youtube that are not from either search results or related videos. I suspect this is a way for them to exclude click metrics, etc. from videos that were not shown as a result of machine learning/lexical analysis/whatever. I'm sure they've been identifying how videos propagate since forever, but my guess is that they recently decided it would be efficient to add some cryptic-looking parameter (that probably just corresponds to a boolean) to all video links shown on channels, the home page, etc.