Douyin-Index-API

抖音 uid 转加密 user_id/Encrypt Douyin uid to user_id

Changed on

[中文]

用途:

  • 将抖音 uid(纯数字)转换为抖音指数 API 内部使用的加密 user_id
  • 达人相关接口(如 fetch_daren_similar_users、fetch_daren_great_item_mile_info 等) 已自动处理此转换,通常无需手动调用本接口
  • 本接口仅用于调试或需要直接拿到加密 user_id 的特殊场景

参数:

  • uid: 抖音 uid,纯数字字符串

返回:

  • uid: 原始输入的抖音 uid
  • user_id: 加密后的 user_id

[English]

Purpose:

  • 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

Parameters:

  • uid: Douyin uid, numeric string

Return:

  • uid: Original input uid
  • user_id: Encrypted user_id

[示例/Example]

uid = "3100268042915212"

get/api/v1/douyin/index/fetch_encrypt_user_id

Request

  • Base URL
    https://api.tikhub.io (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Query parameters

uidstring required

抖音 uid (纯数字) / Douyin uid (numeric). Example: 3100268042915212

Response

Successful Response

codeinteger

HTTP status code | HTTP状态码

request_idstring nullable

Unique request identifier | 唯一请求标识符

messagestring

Response message (EN-US) | 响应消息 (English)

message_zhstring

Response message (ZH-CN) | 响应消息 (中文)

supportstring

Support message | 支持消息

timestring

The time the response was generated | 生成响应的时间

time_stampinteger

The timestamp the response was generated | 生成响应的时间戳

time_zonestring

The timezone of the response time | 响应时间的时区

docsstring nullable

Link to the API Swagger documentation for this endpoint | 此端点的 API Swagger 文档链接

cache_messagestring nullable

Cache message (EN-US) | 缓存消息 (English)

cache_message_zhstring nullable

Cache message (ZH-CN) | 缓存消息 (中文)

cache_urlstring nullable

The URL to access the cached result | 访问缓存结果的 URL

routerstring

The endpoint that generated this response | 生成此响应的端点

paramsunknown
dataunknown

Changes