Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3712

Youtube API not categorizing "googlevideo.com" URLs

$
0
0

Youtube API is not categorizing "googlevideo.com" URLs.

We see some videos with googlevideos.com domain that cannot be categorized by the YouTube API v3, as described below:

Observed Behavior Overview

Requests to the "youtube.com" domain that include the respective video id in the format "https://www.youtube.com/watch?v=[video_ID]" are successfully categorized by the Youtube API.Requests to "googlevideo.com" are not categorized by the Youtube API and return a category of "none" or "unavailable".The reason this is significant is because the initial request from the client is directed to "googlevideo.com".

Detailed Example:

Client sends a request to "https://www.youtube.com/watch?v=iGWnOCDEsyk" via the browser

Keep note of the video ID which is "iGWnOCDEsyk"

The actual request initiated by the client is for a googlevideo server address that hosts the video and ad content:

GET https://r5---sn-5ualdnle.googlevideo.com/videoplayback?expire=1630371751&ei=RystYesC1Y7MtQ-ujpzwAQ&ip=24.160.105.145&id=iGWnOCDEsyk.1&itag=140&source=yt_live_broadcast&requiressl=yes&mh=po&mm=44,26&mn=sn-5ualdnle,sn-p5qs7n7z&ms=lva,onr&mv=m&mvi=5&pl=20&gcr=us&initcwndbps=1512500&vprv=1&live=1&hang=1&noclen=1&mime=audio/mp4&ns=0nvu3J6kfTlxtO86dd0qU9gG&gir=yes&mt=1630349796&fvip=5&keepalive=yes&fexp=24001373,24007246&c=WEB&n=_p0JicicPx7BIA&sparams=expire,ei,ip,id,itag,source,requiressl,gcr,vprv,live,hang,noclen,mime,ns,gir&lsparams=mh,mm,mn,ms,mv,mvi,pl,initcwndbps&lsig=AG3C_xAwRAIgHcBPm3o1E5hnA4t2wTFb70w7cpYaVQ0QtQTPgHMfcpYCIFyYRL2LUldIXntQlrrMyM81S2htFKF6GVPEekaQ9FfY&alr=yes&sig=AOq0QJ8wRAIgRB_0CU__zFViP1i1R7Bfkp2P_j9NdcCxnDKE7TemPckCIEC6E03zkpyU_eKWKHpUUTNPjo0OTq4CvaVE0v65kN0p&cpn=LVWs8SnsPQi_1Jm-&cver=2.20210830.00.00&headm=4&rn=2&rbuf=0

If you look at the URI path in the googlevideo.com request, you see the video ID: &id=iGWnOCDEsyk.1

From category testing via the Youtube API tester as well as on the proxies, it's evident that Google Video destinations are not categorized by the Youtube API:

url.category: none@Policy;none@YouTube;

When the client refreshes the page, the request sent to the proxy is the actual expected URL/URI pathIn this case the request sent to the proxy is a GET for 'https://www.youtube.com/watch?v=iGWnOCDEsyk", which is categorized by the Youtube APIurl.category: none@Policy;Music@YouTube;Mixed Content/Potentially Adult@Blue Coat;Audio/Video Clips@Blue Coat

Can someone help to get this fixed ?

Thanks !!!


Viewing all articles
Browse latest Browse all 3712

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>