GET /v1/douyin/index/fetch_encrypt_user_id
Encrypt Douyin uid to user_id
stable · 2 credits per success
Convert a Douyin uid (numeric) to the encrypted user_id used internally by Douyin Index API;The daren-related endpoints already handle this conversion automatically,;so you usually do NOT need to call this endpoint manually;Only useful for debugging or when you need the encrypted user_id directly;uid: Douyin uid, numeric string;uid: Original input uid;user_id: Encrypted user_id
Request parameters
| Name | Type | In | Required | Description | Example |
|---|---|---|---|---|---|
| uid | string | query | yes | 抖音 uid (纯数字) | 3100268042915212 |
Response fields
Field dictionary coming soon — the executable panel shows the live shape.
Errors
| code | HTTP | Meaning | Billed |
|---|---|---|---|
| 40001 | 400 | Invalid parameters | no |
| 40102 | 401 | Invalid or revoked API Key | no |
| 40201 | 402 | Insufficient credits | no |
| 40402 | 404 | Resource not found | no |
| 42201 | 422 | Quality gate failed | no |
| 42901 | 429 | Rate limit exceeded | no |
| 50401 | 504 | Upstream timeout | no |
| 50201 | 502 | Upstream error | no |
Billing
Success costs 2 credits. Any failure — including a 200 from upstream that fails the quality gate — costs 0.