core_user_idany
User core ID (pick one with sec_uid)
https://api.sandbase.ai/v1/api/douyin/xingtu-v2/user-profile-qrcodeReturns a QR code for a Douyin Xingtu creator profile. Look up the profile QR code by providing either a user core ID or sec_uid.
出力はここに表示されます
入力を完了してから[実行]をクリックしてください。
Returns a link to a QR code image for a Douyin Xingtu creator profile. Pass either core_user_id or sec_uid to identify the creator.
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/user-profile-qrcode" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"core_user_id": "1113181577281568"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
core_user_id | string | No | User core ID (pick one with sec_uid) |
sec_uid | string | No | User sec_uid (pick one with core_user_id) |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"base_resp": {
"status_code": 0,
"status_message": "成功"
},
"qrcode": "https://p3.douyinpic.com/img/aweme-qrcode/TSQBWe7703844895601002240~c5_720x720.p…"
}
| Field | Meaning |
|---|---|
qrcode | URL of the QR code image (a PNG file) for the creator profile. Download or embed this URL to show the code. |
base_resp.status_code | Result code of the call. A value of 0 means the lookup succeeded. |
base_resp.status_message | Text message that goes with the status code. It reads 成功 (success) in the sample response. |
core_user_id or sec_uid. The request schema marks both as optional strings and describes them as pick one.core_user_id set to 1113181577281568.sec_uid into a Xingtu author ID, call Douyin XingTu kolId by sec_user_id (V2).$0.002 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
開発を始める
統一認証と使用状況の追跡を備えたプラットフォームAPIエンドポイントです。
curl -X POST "https://api.sandbase.ai/v1/api/douyin/xingtu-v2/user-profile-qrcode" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"core_user_id": "1113181577281568"
}'SandBaseのAPIキーをサーバー環境に設定してください。リクエストはBearer認証を使用します。
export SANDBASE_API_KEY="YOUR_API_KEY"キーはサーバー側で管理してください。ブラウザコードに公開しないでください。
core_user_idanyUser core ID (pick one with sec_uid)
sec_uidanyUser sec_uid (pick one with core_user_id)
このAPIの保存済みサンプルレスポンスです。表示時にライブリクエストは行われません。
保存済みレスポンスはまだ公開されていません。PlaygroundでAPIを実行し、レスポンスを確認してください。
さらに探索
| API | 価格 | レスポンス |
|---|---|---|
Douyin | $0.002 / 回 | JSON |
Douyin | $0.002 / 回 | JSON |
Douyin | $0.002 / 回 | JSON |
Douyin | $0.01 / 回 | JSON |
Douyin | $0.003 / 回 | JSON |
Douyin | $0.001 / 回 | JSON |
質問
Authorization ヘッダー(Bearer)に SandBase API key を指定し、パラメータを JSON ボディで送信して https://api.sandbase.ai/v1/api/douyin/xingtu-v2/user-profile-qrcode に POST リクエストを送ります。このページの Playground で、コードを書かずに試すこともできます。
1回あたり $0.002、SandBase 残高から課金されます。課金対象はご利用分のみで、サブスクリプションはありません。
必須パラメータはありません。 任意: core_user_id (any) と sec_uid (any)。 このページの Parameters テーブルと Playground に、すべてのフィールドが一覧表示されています。
同じ HTTP リクエスト内で返される JSON レスポンスです(同期)。 このページの README にサンプルレスポンスがあります。
いいえ。Douyin Xingtu User Profile QR Code は SandBase 経由で動作するため、SandBase の API key 1つでこのエンドポイントと、カタログ内の他のすべての API とモデルを利用できます。Douyin の API アクセスを別途申請する必要はありません。