> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.beatapi.io/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.beatapi.io/_mcp/server.

# What are msToken, ttwid, and verifyFp on Douyin (and how to skip them via API)?

> Technical reference on Douyin's msToken, ttwid, and verifyFp / s_v_web_id browser-state parameters, why scrapers return empty payloads when they desync, and stateless BeatAPI replacements from $0.003/request.

`msToken`, `ttwid`, and `verifyFp` (`s_v_web_id`) are Douyin web session and browser-fingerprint tokens that must stay synchronized with `a_bogus` and the client TLS fingerprint on direct web requests. When any token expires or comes from a mismatched IP or User-Agent, Douyin returns an empty JSON response or redirects to a verification gate.

BeatAPI handles Douyin session state and signing behind `POST https://api.beatapi.io/v1/social-data/call` and `https://beatapi.io/mcp`. Your caller passes only `BEATAPI_API_KEY` plus the target Douyin video ID, share link, or `sec_user_id`, with core Douyin actions starting at `$0.003` per request (checked 2026-11-24; failed gateway calls cost `$0`).

## What Douyin checks in msToken, ttwid, verifyFp, and a_bogus

| Parameter                     | Location                | Purpose on Douyin                                                          | Common failure mode in scrapers                                                                               |
| ----------------------------- | ----------------------- | -------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| **`msToken`**                 | Query string and cookie | Short-lived environment token issued by ByteDance's web SDK (`mssdk`)      | Static or synthetic values fail on search, comment, and user-feed actions                                     |
| **`ttwid`**                   | Cookie (`ttwid=...`)    | Visitor session cookie issued by `ttwid/check`                             | Ties sequential requests to one visitor state; datacenter IPs trigger rapid invalidation                      |
| **`verifyFp` / `s_v_web_id`** | Query string and cookie | Browser fingerprint token linked to slider-captcha verification state      | Once challenged, reusing the token returns empty responses until solved in a browser                          |
| **`a_bogus`**                 | Query string            | Dynamic JS signature (`bdms.js`) computed over query params and User-Agent | Breaks when Douyin rotates its obfuscated web bundle (see [a_bogus breakdown](/faq/douyin-a-bogus-signature)) |

## How to call BeatAPI Douyin actions without web tokens

BeatAPI provides 317 Douyin actions (App v3, Web, Search, Hot Search, and 73 Douyin Xingtu actions) without requiring `msToken`, `ttwid`, `verifyFp`, or `a_bogus`:

**`Resolve a v.douyin.com share link ($0.003)`**

```bash title="Resolve a v.douyin.com share link ($0.003)"
curl -sS https://api.beatapi.io/v1/social-data/call \
  -H "Authorization: Bearer $BEATAPI_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"action":"douyin.app.v3.fetch_one_video_by_share_url","params":{"share_url":"https://v.douyin.com/example/"}}'
```

**`Fetch video comments ($0.003)`**

```bash title="Fetch video comments ($0.003)"
curl -sS https://api.beatapi.io/v1/social-data/call \
  -H "Authorization: Bearer $BEATAPI_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"action":"douyin.app.v3.fetch_video_comments","params":{"aweme_id":"7364837462110","cursor":0}}'
```

**`Fetch creator videos ($0.003)`**

```bash title="Fetch creator videos ($0.003)"
curl -sS https://api.beatapi.io/v1/social-data/call \
  -H "Authorization: Bearer $BEATAPI_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"action":"douyin.app.v3.fetch_user_post_videos","params":{"sec_user_id":"<sec_user_id>","max_cursor":0,"count":20}}'
```

### Example comment response (live-sampled 2026-11-23, anonymized)

```json
{
  "object": "social_data.call",
  "status": "succeeded",
  "request_id": "task_example_01",
  "action": "douyin.app.v3.fetch_video_comments",
  "data": {
    "total": 6303,
    "has_more": 1,
    "cursor": 20,
    "comments": [
      {
        "cid": "7645931630120960805",
        "text": "Sample viewer comment text",
        "create_time": 1780207183,
        "digg_count": 133,
        "reply_comment_total": 7,
        "ip_label": "天津",
        "user": {
          "nickname": "example_user",
          "sec_uid": "MS4wLjABAAAA..."
        }
      }
    ]
  }
}
```

## Related

* [Douyin a_bogus signing vs. API](/faq/douyin-a-bogus-signature)
* [Fetch Douyin video comments](/guides/douyin-video-comments)
* [Scraper vs. data API cost](/faq/scraper-vs-social-data-api)