TufayelLUS / TikTok-Video-Downloader-PHP

A simple but effective one page TikTok video downloader(watermark free) script developed by Tufayel
305 stars 164 forks source link

api2.musical.ly not working? #4

Closed acedigibits closed 4 years ago

acedigibits commented 4 years ago

not able to get watermark free video as api2.musical.ly does not give any response. is it down? any workaround?

Inzilkin commented 4 years ago

same thing

TufayelLUS commented 4 years ago

Thanks for informing the issue. Since this is the concern about api developer, we can wait for the api to come back online, or maybe I will keep looking for other ways around.

Inzilkin commented 4 years ago

Ok, waiting your fix for this problem :)

Ayesh commented 4 years ago

I'm fairly certain that the api2.musical.ly is gone for good, and one would need to use signed URLs to get the video download URLs.

Inzilkin commented 4 years ago

Is it possible in more detail about the signature of the link?

I'm fairly certain that the api2.musical.ly is gone for good, and one would need to use signed URLs to get the video download URLs.

TufayelLUS commented 4 years ago

Yeah, seems like the developer of musically/TikTok has been notified about this and they planned to remove the API from public use. I will keep my eyes open to find some other ways around as currently, we do not have any such API at hand as backup other than that official old API.

rifatozkancomtr commented 4 years ago

Can you be an example?

http://v19.tiktokcdn.com/52ae54a7314f2c8101c3ec1076b3bd7f/5eee953e/video/tos/useast2a/tos-useast2a-ve-0068c004/e863392c2bbf4e2eb503213f2e2984cd/?a=1180&br=2216&bt=1108&cr=0&cs=0&dr=0&ds=6&er=&l=20200620170054010115069030074605E9&lr=tiktok&mime_type=video_mp4&qs=0&rc=anRsdW92cXFzdDMzNjczM0ApO2c2Njs3Zjs7NzY2O2Y3O2dhMWkuajMwY3FfLS0tMTZzczBgYWIzMDE2Y2NgMy5gNGM6Yw%3D%3D&vl=&vr=

Ayesh commented 4 years ago

That's the video URL, not the one that gives this video URL. https://tiktokoff.com, this site is still working with the watermark-less videos.

TikTok is quickly detecting the api2.musical.ly access, and you all will need to use signed URLs with verifyFp and signature parameters to properly access their APIs.

drdexter1989 commented 4 years ago

Any updates about this?

notela commented 4 years ago

Some sites still work how they did it

dutchtom91 commented 4 years ago

You can use https://api.tiktokv.com/aweme/v1/playwm/?video_id=$videoKey if you want a watermark free video.

I also found this: $video["links"][0]["url"] = $this->get_redirect_url("https://api.tiktokv.com/aweme/v1/playwm/?video_id=" . $matches[1]); $video["links"][0]["size"] = get_file_size($video["links"][0]["url"]); } else { $video["links"][0]["url"] = $video_url; $video["links"][0]["size"] = get_file_size($video["links"][0]["url"]);

TufayelLUS commented 4 years ago

Thank you very much @dutchtom91 for the API. It seems to work, but sometimes does not redirect to watermark-free videos. I added one more additional HTTP request from the server-side and the script will not reveal the conversion API anymore.