Sand AISand AI MAGI-2MAGI-2 が SandBase に登場しました: ネイティブ音声付き 1080p 動画今すぐ試す

Douyin Index User ID Encryption

APIドキュメント
https://api.sandbase.ai/v1/api/douyin/index/encrypt-user-id

Converts a standard numeric Douyin uid into the encrypted user_id required by Douyin Index endpoints for debugging or custom queries.

料金
$0.001USD / 回
メソッド
POST
レスポンス
JSON
パラメータ
必須 1 件 · 任意 0 件

プレイグラウンド

入力
Douyin uid, numeric string
出力準備完了

出力はここに表示されます

入力を完了してから[実行]をクリックしてください。

API README

Douyin Index User ID Encryption API

This API converts a numeric Douyin uid into the encrypted user_id string used by Douyin Index endpoints. It needs one input, the uid as a numeric string, and returns both values.

Use cases

  • Get the encrypted user_id for a creator before you build a custom Douyin Index query.
  • Check that your own uid-to-user_id conversion matches the value this API returns.
  • Convert a list of numeric creator uids into the IDs that Douyin Index creator endpoints expect.

Request

curl -X POST "https://api.sandbase.ai/v1/api/douyin/index/encrypt-user-id" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"uid": "92769419069"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
uidstringYesDouyin uid, numeric string

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "uid": "92769419069",
  "user_id": "jchgjebjagj"
}

Response fields

FieldMeaning
uidThe numeric Douyin uid you sent in the request, returned unchanged.
user_idThe encrypted form of the uid. Pass this value to Douyin Index endpoints that ask for an encrypted user ID.

Notes

  • Send uid as a string of digits, for example 92769419069. Do not send it as a number.
  • The response has only two keys, uid and user_id. The call returns no creator profile data.
  • Use the returned user_id in creator endpoints such as Douyin Creator Top Videos or Douyin Daren Fan Analysis, if their parameters ask for an encrypted ID.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

さらに探索

関連 APIs

すべての APIs
API価格レスポンス
Douyin$0.001 / 回JSON
Douyin$0.001 / 回JSON
Douyin$0.001 / 回JSON
Douyin$0.001 / 回JSON
Douyin$0.001 / 回JSON
Douyin$0.001 / 回JSON

ガイド:Best Douyin API in 2026: Pricing Compared

質問

FAQ

Douyin Index User ID Encryption API はどのように使いますか?

Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/index/encrypt-user-id に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。

Douyin Index User ID Encryption API の料金はいくらですか?

1回あたり $0.001、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。

Douyin Index User ID Encryption API はどのパラメータを受け付けますか?

必須: uid (string)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。

Douyin Index User ID Encryption API は何を返しますか?

同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。

Douyin の開発者アカウントまたは API key は必要ですか?

いいえ。Douyin Index User ID Encryption は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。