1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to sent http request to youtube stats server

Discussion in 'C, C++, C#' started by IZpk-A, Aug 28, 2016.

Tags:
  1. IZpk-A

    IZpk-A Newbie

    Joined:
    Aug 28, 2016
    Messages:
    30
    Likes Received:
    1
    Gender:
    Male
    Hello guys, can someone show how make http request to youtube video stats server.
     
  2. daigia123

    daigia123 Regular Member

    Joined:
    Nov 24, 2010
    Messages:
    256
    Likes Received:
    25
    It means you want to send a request to a youtube video ?
    I dont know youtube video stats server
     
  3. IZpk-A

    IZpk-A Newbie

    Joined:
    Aug 28, 2016
    Messages:
    30
    Likes Received:
    1
    Gender:
    Male
    Youtube video stats server are s.youtube
     
  4. SebWgnr

    SebWgnr Registered Member

    Joined:
    Apr 19, 2016
    Messages:
    75
    Likes Received:
    57
    Home Page:
    I just checked in 2 minutes so I have no idea if this actually work and do update the stats for a video but here is the 2 requests:
    Code:
    GET /api/stats/watchtime?ns=yt&el=detailpage&cpn=55THP-FBiyz8gYbR&docid=KK9bwTlAvgo&ver=2&referrer=https%3A%2F%2Fwww.youtube.com%2Fresults%3Fsearch_query%3Dyoutube&cmt=8.464&plid=AAU7GsPncZPfgayG&ei=QXLCV9TeEoKNc6-Lq6gF&fmt=244&fs=0&rt=14.004&of=_yHdjssy_6ZYXLDSpB9XQA&euri&lact=148&cl=131234152&q=youtube&state=playing&vm=CAEQAA&c=WEB&cver=1.20160824&cplayer=UNIPLAYER&cbr=Chrome&cbrver=41.0.2227.0&cos=X11&hl=en_US&cr=FR&len=399.621&rtn=24&afmt=251&idpj=-7&ldpj=-34&rti=14&st=0.812&et=8.464 HTTP/1.1
    Host: s.youtube.com
    
    So it send a get request to: https://s.youtube.com/api/stats/watchtime with the following parameters:
    Code:
    ns:yt
    el:detailpage
    cpn:55THP-FBiyz8gYbR
    docid:KK9bwTlAvgo
    ver:2
    referrer:https://www.youtube.com/results?search_query=youtube
    cmt:8.464
    plid:AAU7GsPncZPfgayG
    ei:QXLCV9TeEoKNc6-Lq6gF
    fmt:244
    fs:0
    rt:14.004
    of:_yHdjssy_6ZYXLDSpB9XQA
    euri:
    lact:148
    cl:131234152
    q:youtube
    state:playing
    vm:CAEQAA
    c:WEB
    cver:1.20160824
    cplayer:UNIPLAYER
    cbr:Chrome
    cbrver:41.0.2227.0
    cos:X11
    hl:en_US
    cr:FR
    len:399.621
    rtn:24
    afmt:251
    idpj:-7
    ldpj:-34
    rti:14
    st:0.812
    et:8.464
    
    -----------
    Code:
    GET /api/stats/qoe?event=streamingstats&fmt=244&afmt=251&cpn=55THP-FBiyz8gYbR&ei=QXLCV9TeEoKNc6-Lq6gF&el=detailpage&docid=KK9bwTlAvgo&ns=yt&fexp=3300103%2C3300134%2C3313267%2C9422596%2C9428398%2C9431012%2C9433096%2C9433221%2C9433946%2C9435526%2C9438662%2C9439580%2C9442424%2C9442426%2C9442919&cl=131234152&html5=1&c=WEB&cver=1.20160824&cplayer=UNIPLAYER&cbr=Chrome&cbrver=41.0.2227.0&cos=X11&cmt=14.064:8.524,20.000:8.534018&vps=14.064:PA&bwm=20.000:1968668:1.289&bwe=20.000:1665546&bh=20.000:66.206&bat=20.000:1:0 HTTP/1.1
    Host: s.youtube.com
    
    So it send a get request to: https://s.youtube.com/api/stats/qoe with the following parameters:
    Code:
    event:streamingstats
    fmt:244
    afmt:251
    cpn:55THP-FBiyz8gYbR
    ei:QXLCV9TeEoKNc6-Lq6gF
    el:detailpage
    docid:KK9bwTlAvgo
    ns:yt
    fexp:3300103,3300134,3313267,9422596,9428398,9431012,9433096,9433221,9433946,9435526,9438662,9439580,9442424,9442426,9442919
    cl:131234152
    html5:1
    c:WEB
    cver:1.20160824
    cplayer:UNIPLAYER
    cbr:Chrome
    cbrver:41.0.2227.0
    cos:X11
    cmt:14.064:8.524,20.000:8.534018
    vps:14.064:PA
    bwm:20.000:1968668:1.289
    bwe:20.000:1665546
    bh:20.000:66.206
    bat:20.000:1:0
    

    Up to you to make sense out of that and test it.
     
  5. tb303

    tb303 Power Member

    Joined:
    Dec 18, 2011
    Messages:
    766
    Likes Received:
    436
    Remember you are going to need to fake all of them params with legit info - but then you have the problem of using a valid plid. Just so you know this is a lot harder than it was a few years ago.
     
  6. ekapek

    ekapek Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 2, 2010
    Messages:
    273
    Likes Received:
    48
    Home Page:
    First what language you use. For c# you can use httpclient in 4.5 or simple webclient
     
  7. IZpk-A

    IZpk-A Newbie

    Joined:
    Aug 28, 2016
    Messages:
    30
    Likes Received:
    1
    Gender:
    Male
    Thanks i have make a test but views deleted after 11-12 hour. Maybe s.youtube are not a right video stats server
     
  8. IZpk-A

    IZpk-A Newbie

    Joined:
    Aug 28, 2016
    Messages:
    30
    Likes Received:
    1
    Gender:
    Male
    I use plid and others paramater exactly like that generate when play the video but views deleted..
     
  9. tb303

    tb303 Power Member

    Joined:
    Dec 18, 2011
    Messages:
    766
    Likes Received:
    436
    Are you scraping or generating the plid?
     
  10. IZpk-A

    IZpk-A Newbie

    Joined:
    Aug 28, 2016
    Messages:
    30
    Likes Received:
    1
    Gender:
    Male
    No scraping .
     
  11. Rock_Shock

    Rock_Shock Regular Member

    Joined:
    Sep 11, 2016
    Messages:
    477
    Likes Received:
    65
    Occupation:
    Nothing
    Location:
    Nowhere

    Nice username you got there.. I see you are trying to use the spk method..

    Were you able to make headway with this ?

    I am working on a mobile views method and am willing to pay for insider info.. I will deal with the coding bit..that's not the issue.

    Just need the method and will do the rest myself !
    Would appreciate help sincerely :)
     
  12. IZpk-A

    IZpk-A Newbie

    Joined:
    Aug 28, 2016
    Messages:
    30
    Likes Received:
    1
    Gender:
    Male
    I have a few method and make a lot of try and error. Sometime i can make views added aometime the views got deleted after 4~5 hour show in realtime state.

    If you can code, maybe we can have a private chat .

    Let me know what a best connection platform should i have with you

     
  13. longlijer

    longlijer Newbie

    Joined:
    Dec 2, 2016
    Messages:
    21
    Likes Received:
    4
    Gender:
    Female
    Anybody progress with this type of script? And is it still possible to increase views by sending POST requests with valid parameters to YouTube ?
     
  14. longlijer

    longlijer Newbie

    Joined:
    Dec 2, 2016
    Messages:
    21
    Likes Received:
    4
    Gender:
    Female
    Anybody?
     
  15. skeleton977

    skeleton977 Registered Member

    Joined:
    Mar 16, 2014
    Messages:
    68
    Likes Received:
    6
    I know it's an old topic but I have some info from 2 providers:
    - First one told me you need traffic
    - Second one told me you need pop UNDER traffic

    I think their methods is an updated version of this one, so there is the way to make this work.
    Basically I think that traffic (or pop under traffic) is used in order to trigger the youtube server's request with different IPs.
    Hope this can help !
     
    Last edited: Jun 20, 2017