You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I made a fetch_user_post request to the above tiktok api and got this response
After that I get the first one resp["video"]["bitrateInfo"][0]["PlayAddr"]["UrlList"][0] and try to download it, but I got 403 error ( I used the same header request which includes my cookies and user agent of fetch_user_post function but still get the same error)
So I tried to debug and realized that seems like a relationship between the device_id and my cookie (login already) if I use the default (hard-coded one) of the BaseRequestModel device_id: int = 7380187414842836523 then cannot download the video (403 access denied) but if I use my real device_id (get from browser) and with my cookie then I can access and download the video
Correct me if I am wrong thanks !
The text was updated successfully, but these errors were encountered:
Yes, in an update of TikTok Web about half a year ago, they added this restriction. Your summary and analysis are very accurate. This restriction is associated with device_id, but the APP interface is still available, so I did not deal with this issue. However, we can discuss how to solve this problem elegantly. Thank you for your feedback and summary!
Platform where the error occurred?
TikTok
The endpoint where the error occurred?
https://www.tiktok.com/api/post/item_list
Submitted input value?
I made a fetch_user_post request to the above tiktok api and got this response
After that I get the first one
resp["video"]["bitrateInfo"][0]["PlayAddr"]["UrlList"][0]
and try to download it, but I got 403 error ( I used the same header request which includes my cookies and user agent offetch_user_post
function but still get the same error)So I tried to debug and realized that seems like a relationship between the device_id and my cookie (login already) if I use the default (hard-coded one) of the BaseRequestModel
device_id: int = 7380187414842836523
then cannot download the video (403 access denied) but if I use my real device_id (get from browser) and with my cookie then I can access and download the videoCorrect me if I am wrong thanks !
The text was updated successfully, but these errors were encountered: