Youtubeexplode: Returned video URLs are different depending upon the location?

Created on 11 Dec 2020  路  3Comments  路  Source: Tyrrrz/YoutubeExplode

Hello,

I've created an ASP.NET application based upon the latest version of your library and all works like a charm: for each video on YouTube I can obtain many information like thumbnails, author, etc. and the URL for each audio and video stream. Now the strange thing: if I run the ASP.NET application locally on my PC (in Italy) returned URLs are correct and I can use them for downloading the file. If I run the exact same ASP.NET application hosted on a Windows server located in the USA, while all of the other info are the same, the URL returned is different and, when used for downloading, YouTube returns an error 403. Do you have any idea about the reason for YouTube returning different URLs while the code is the same in both places?

Kind Regards

Severino

question

Most helpful comment

Thanks for confirming and keep up the good work :-)

Kind regards

Severino

All 3 comments

Hello again, I've the doubt that the URL returned by Youtube could be fixed for the IP of the client which generated the request because the IP of the client seems to be part of the URL's parameters: could this be the issue?

Kind regards

Severino

Yes, the URLs are bound to IP.

Thanks for confirming and keep up the good work :-)

Kind regards

Severino

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ShaiPreter picture ShaiPreter  路  3Comments

ac-lap picture ac-lap  路  7Comments

VahidN picture VahidN  路  8Comments

vsjtechnologies picture vsjtechnologies  路  7Comments

DavidBarishev picture DavidBarishev  路  8Comments