traktok icon indicating copy to clipboard operation
traktok copied to clipboard

Requests need to be signed now

Open JBGruber opened this issue 2 years ago • 4 comments

Requests get 403 error messages, even with fresh tokens. The curl call on the website doesn't look different, but I also can't call it from within R.

JBGruber avatar Nov 15 '22 09:11 JBGruber

Maybe this is the problem: https://github.com/dfreelon/pyktok/issues/6#issuecomment-1320406439

JBGruber avatar Nov 19 '22 07:11 JBGruber

The missing piece is currently the X-Bogus parameter in the query to https://www.tiktok.com/api/comment/list/?. This parameter needs to be correct, or the api will not return any data. The repo over here seems to have already solved that problem.

JBGruber avatar Nov 25 '22 14:11 JBGruber

This now seems to affect the video download too.

JBGruber avatar Feb 14 '23 18:02 JBGruber

It does not affect the video download. Other functions had to be deprecated. It looks like X-Bogus is auto-generated from the request itself, which means one would have to reverse engineer the function that generates this parameter. The tiktok-signature repo looks as if it could solve the issue, but I did not get it to work.

JBGruber avatar Nov 29 '23 12:11 JBGruber