Repository: yt-dlp
Issue: [TikTok] 403 Forbidden on all friends-only videos
Labels: account-needed,site-bug,triage

### DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

- [x] I understand that I will be **blocked** if I *intentionally* remove or skip any mandatory\* field

### Checklist

- [x] I'm reporting that yt-dlp is broken on a **supported** site
- [x] I've verified that I have **updated yt-dlp to nightly or master** ([update instructions](https://github.com/yt-dlp/yt-dlp#update-channels))
- [x] I've checked that all provided URLs are playable in a browser with the same IP and same login details
- [x] I've checked that all URLs and arguments with special characters are [properly quoted or escaped](https://github.com/yt-dlp/yt-dlp/wiki/FAQ#video-url-contains-an-ampersand--and-im-getting-some-strange-output-1-2839-or-v-is-not-recognized-as-an-internal-or-external-command)
- [x] I've searched [known issues](https://github.com/yt-dlp/yt-dlp/issues/3766) and the [bugtracker](https://github.com/yt-dlp/yt-dlp/issues?q=) for similar issues **including closed ones**. DO NOT post duplicates
- [x] I've read the [guidelines for opening an issue](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#opening-an-issue)
- [ ] I've read about [sharing account credentials](https://github.com/yt-dlp/yt-dlp/blob/master/CONTRIBUTING.md#are-you-willing-to-share-account-details-if-needed) and I'm willing to share it if required

### Region

_No response_

### Provide a description that is worded well enough to be understood

(I censored the username and video id from the output log)

I suspect TikTok has changed something in their API, as both yt-dlp and a separate TikTok Scrapper I've been using refuse to download friends-only videos now.

Doesn't work on other friends-only videos on neither the same user, or from another user.
Doesn't work on videos that used to work before. 

Tried using a VPN in case of region lock, however it also doesn't work (and the video plays normally from the app, so it's not an IP issue).

### Provide verbose output that clearly demonstrates the problem

- [x] Run **your** yt-dlp command with **-vU** flag added (`yt-dlp -vU <your command line>`)
- [ ] If using API, add `'verbose': True` to `YoutubeDL` params instead
- [x] Copy the WHOLE output (starting with `[debug] Command-line config`) and insert it below

### Complete Verbose Output

```shell
[debug] Command-line config: ['-vU', 'https://www.tiktok.com/@ju********lc/video/7463************414', '--cookies', 'cookies.txt']
[debug] Encodings: locale cp1250, fs utf-8, pref cp1250, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version nightly@2025.01.23.232810 from yt-dlp/yt-dlp-nightly-builds [de82acf87] (win_exe)
[debug] Python 3.10.11 (CPython AMD64 64bit) - Windows-10-10.0.14393-SP0 (OpenSSL 1.1.1t  7 Feb 2023)
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.21.0, brotli-1.1.0, certifi-2024.12.14, curl_cffi-0.5.10, mutagen-1.47.0, requests-2.32.3, sqlite3-3.40.1, urllib3-2.3.0, websockets-14.2
[debug] Proxy map: {}
[debug] Request Handlers: urllib, requests, websockets, curl_cffi
[debug] Loaded 1844 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp-nightly-builds/releases/latest
Latest version: nightly@2025.01.23.232810 from yt-dlp/yt-dlp-nightly-builds
yt-dlp is up to date (nightly@2025.01.23.232810 from yt-dlp/yt-dlp-nightly-builds)
[TikTok] Extracting URL: https://www.tiktok.com/@ju********lc/video/7463************414
[TikTok] 7463************414: Downloading webpage
[debug] [TikTok] Found universal data for rehydration
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec, channels, acodec, size, br, asr, proto, vext, aext, hasaud, source, id
[debug] Default format spec: best/bestvideo+bestaudio
[info] 7463************414: Downloading 1 format(s): h264_540p_1859833-1
[debug] Invoking http downloader on "https://v16-web-newkey.tiktokcdn.com/caaaed6374c9c9c98f138265d65ccf37/6796785c/tos-no1a-ve-0068-no/ooIJGezrIIWIRcpxKAPALDOOgej1AT0AZLeNqz?a=1988&bti=ODszNWYuMDE6&ch=0&cr=3&dr=0&lr=all&cd=0%7C0%7C0%7C&br=3632&bt=1816&cs=0&ds=6&ft=bL4kamaRPD12NHyZtE-UxQv5SY3W3wv25xcAp&mime_type=video_mp4&qs=0&rc=cnF8b2hsc2d3SkBwaHIxaDFybndmOTc1aWlpZWg2ZWU1Z2c5O0BpM2ZkO3Y5cjh0eDMzbzczNUBjRl5Nc3FePmJKYSNvYF90aHFmOiNfNGIuNV9gNi8xLmItMTNfYSM1bnFtMmRjZjZgLS1kMTFzcw%3D%3D&l=20250124180044FD1A996A24987634921B&btag=2000b8000&ply_type=3&policy=eyJ2bSI6MywidWlkIjoiNjg2ODY3NzA5MzI5MjYzOTIzNyJ9"
ERROR: unable to download video data: HTTP Error 403: Forbidden
Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 3492, in process_info
  File "yt_dlp\YoutubeDL.py", line 3212, in dl
  File "yt_dlp\downloader\common.py", line 464, in download
  File "yt_dlp\downloader\http.py", line 367, in real_download
  File "yt_dlp\downloader\http.py", line 118, in establish_connection
  File "yt_dlp\YoutubeDL.py", line 4175, in urlopen
  File "yt_dlp\networking\common.py", line 117, in send
  File "yt_dlp\networking\_helper.py", line 208, in wrapper
  File "yt_dlp\networking\common.py", line 340, in send
  File "yt_dlp\networking\_requests.py", line 365, in _send
yt_dlp.networking.exceptions.HTTPError: HTTP Error 403: Forbidden
```