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

May 2022 (3776)

What happened: [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

What happened: A patch fixed 720p single videos; "whole-account extraction still exhibits the same errors"

Mar 2024 (9506)

What happened: Failed to parse JSON / No video formats found on single videos, even with cookies

May 2024

What happened: Workarounds with your own device_id and api_hostname; maintainers said on 20 May they no longer worked

26 May 2024

What happened: [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

Each with its price; the endpoint page has parameters, fields and a recorded response.

Sources

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

More about TikTok

Questions

Does XTikAPI download the video files?

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

One key. Start now.

19 platforms, 229 endpoints, from $0.002 a call. Errors and timeouts are free.

Start free