# yt-dlp fails on a TikTok user profile with "[tiktok:user] Failed to parse JSON": how do I fix it?

Update yt-dlp: the `[tiktok:user]` "Failed to parse JSON" error (issue 3776, May 2022, 135 comments) was closed in May 2024 by a rewrite of the TikTok user extractor (pull request 9661), and in between single videos often worked while whole-profile downloads didn't. A March 2024 wave on single videos (issue 9506, 97 comments) drew `device_id` and API-host workarounds that stopped working by 20 May 2024. If you need a profile's video list as data, XTikAPI's `tiktok.videos.list` returns it, $0.002 a page.

Updated 2026-11-23

## History of the error

| When | What happened |
| --- | --- |
| May 2022 (3776) | `[tiktok:user] Failed to parse JSON` from many machines and IPs; a custom user agent didn't help on profile and short URLs |
| Sep 2022 | A patch fixed 720p single videos; "whole-account extraction still exhibits the same errors" |
| Mar 2024 (9506) | Failed to parse JSON / No video formats found on single videos, even with cookies |
| May 2024 | Workarounds with your own `device_id` and `api_hostname`; maintainers said on 20 May they no longer worked |
| 26 May 2024 | `[ie/tiktok:user] Fix extractor` (#9661) closes 3776 |

On a current yt-dlp, run with `-v` and `-U` before filing anything; the maintainers ask for a verbose log first.

## The profile as data

1. `tiktok.videos.list` with `unique_id` (the @handle) or `id`; `cursor` for more, `sort` to order.
2. `tiktok.videos.detail` with a video `id` for its counts and caption.
3. Feed the video URLs to yt-dlp one by one if you need the files.

Cost: listing 500 profiles, 3 pages each = 1,500 calls × $0.002 = $3.

## Why XTikAPI

- XTikAPI reads TikTok with 24 endpoints from $0.002 a call, and a failed call is not charged.
- Fewer tokens for AI: across 14 recorded live TikTok calls (2026-11-18), raw platform JSON is ~1.21M tokens vs ~35k via XTikAPI REST (97.1% fewer) and ~35k via MCP (97.1% fewer).
- See before you pay: 192 of 229 endpoints show a recorded real response on their page (22 of 24 for TikTok).
- One shape: posts, comments and accounts from 19 platforms come back as the same objects, author in author and counts in metrics, so another platform needs no new parser.
- Free trial: a verified account gets $0.50, no card.

## Endpoints

- [TikTok video list API](https://xtikapi.com/apis/tiktok/videos/list) ($0.002 a call): Videos posted by one TikTok account.
- [TikTok video details API](https://xtikapi.com/apis/tiktok/videos/detail) ($0.002 a call): One TikTok video by ID: caption, author, plays, likes, comments and shares.
- [TikTok account details API](https://xtikapi.com/apis/tiktok/accounts/detail) ($0.002 a call): A TikTok account profile.

## More about TikTok

- [TikTok API](https://xtikapi.com/apis/tiktok)
- [f2 TikTok user posts return status 200 with an empty response: why?](https://xtikapi.com/answers/f2-tiktok-user-post-empty)
- [TikTok-Api errors (EmptyResponseException, 200 empty body, Captcha, statusCode): how do I fix them?](https://xtikapi.com/answers/tiktok-api-errors-and-fixes)
- [Can the TikTok Display API read other users' videos?](https://xtikapi.com/answers/tiktok-display-api-other-users)
- [Can I use the TikTok Research API for commercial work?](https://xtikapi.com/answers/tiktok-research-api-commercial-use)
- [Why does the Douyin video URL I parsed return 403 Forbidden?](https://xtikapi.com/answers/douyin-video-url-403-forbidden)

## Sources

What this page says about other products comes from their own pages and docs, read on 2026-11-23.

- [yt-dlp issue #3776 ([tiktok:user] Failed to parse JSON)](https://github.com/yt-dlp/yt-dlp/issues/3776)
- [yt-dlp issue #9506 ([TikTok] Failed to parse JSON / No video formats found)](https://github.com/yt-dlp/yt-dlp/issues/9506)
- [yt-dlp pull request #9661 (fix tiktok:user extractor)](https://github.com/yt-dlp/yt-dlp/pull/9661)

## Questions

### Does XTikAPI download the video files?

No. It returns the list and the data for each video; download files with your own tool.

---

XTikAPI: one API key for public social media data, prepaid per call. [HTML version](https://xtikapi.com/answers/yt-dlp-tiktok-user-failed-parse-json) · [llms.txt](https://xtikapi.com/llms.txt) · [OpenAPI](https://xtikapi.com/openapi.json)
