# f2 TikTok user posts return status 200 with an empty response: why?

TikTok answers 200 with no data when the request's tokens don't add up, even if the cookie is valid. In f2 issue 384 (September 2025, 16 comments) a user with a working cookie and device_id only got videos after generating a 152-character msToken and signing with X-Gnarly and X-Bogus, another found two msToken values in their cookie, and a TikTokDownloader maintainer said X-Gnarly itself isn't required. XTikAPI's `tiktok.videos.list` takes the @username and returns the account's videos, $0.002 a page.

Updated 2026-11-25

## Things users checked

| Check | Where it came up |
|---|---|
| The cookie in the YAML config is wrapped in double quotes | Issue 198 (Nov 2024), "JSON interface failed, empty response" |
| device_id matches the cookie it was issued with | Issue 384 |
| msToken is 152 characters, and there is only one in the cookie | Issue 384 |
| X-Gnarly / X-Bogus signing | Issue 384; disputed by a TikTokDownloader maintainer |
| Only one of `fetch_one_video` and `fetch_user_post_videos` fails | Two users in issue 384 saw opposite cases |

No single fix worked for everyone, which is typical when TikTok changes its web signing.

## Without tokens

1. Call `tiktok.videos.list` with `id` (the username in tiktok.com/@username, or a secUid); `cursor` pages, `sort` orders.
2. Profile numbers: `tiktok.accounts.detail` with `uniqueId`.
3. One video: `tiktok.videos.detail`.

Cost: 200 accounts, 2 pages a week = 1,600 calls a month × $0.002 = $3.20.

## 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 account details API](https://xtikapi.com/apis/tiktok/accounts/detail) ($0.002 a call): A TikTok account profile.
- [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.

## More about TikTok

- [TikTok API](https://xtikapi.com/apis/tiktok)
- [TikTok-Api errors (EmptyResponseException, 200 empty body, Captcha, statusCode): how do I fix them?](https://xtikapi.com/answers/tiktok-api-errors-and-fixes)
- [yt-dlp fails on a TikTok user profile with "[tiktok:user] Failed to parse JSON": how do I fix it?](https://xtikapi.com/answers/yt-dlp-tiktok-user-failed-parse-json)
- [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-25.

- [f2 issue #384 (TikTok user_post empty response, status 200)](https://github.com/Johnserf-Seed/f2/issues/384)
- [f2 issue #198 (TikTok user videos: JSON interface failed)](https://github.com/Johnserf-Seed/f2/issues/198)

## Questions

### Does a proxy in another country fix it?

The reporter in issue 384 could view the profile in a browser through Singapore and US nodes, so the IP was not the cause there.

---

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