---
title: "TikTok ユーザープロフィール API (V1)"
description: "公開ユーザー名またはsecUidで識別したTikTokユーザープロフィールを取得します。クリエイターの調査、プロフィールのレビュー、またはユーザーが投稿した内容の取得を続けるために使用します。"
lastUpdated: false
aiUsagePrompt: true
---

# TikTok ユーザープロフィール API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/tiktok/get-user-detail/v1\"")'
  :summary='JSON.parse("\"ユーザープロフィール (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/tiktok/user-profile-v1-ja.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"APIアクセス用のセキュリティトークン。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"uniqueId\",\"in\":\"query\",\"description\":\"ユーザーの公開TikTokハンドルまたはユーザー名。\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"\"}},{\"name\":\"secUid\",\"in\":\"query\",\"description\":\"ユーザーのユニークセキュリティID。\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"OK\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"TikTokプロフィールの検索結果。プロフィールが利用できない場合、応答には状態情報のみが含まれることがあります。\",\"properties\":{\"statusCode\":{\"type\":\"integer\",\"description\":\"TikTokがプロフィール検索で報告するステータスコード。 userInfoなしでも応答に非零コードが含まれることがあります。\"},\"statusMsg\":{\"type\":\"string\",\"description\":\"TikTokがプロフィール検索で報告するステータスメッセージ。\"},\"userInfo\":{\"type\":\"object\",\"description\":\"プロフィールおよび報告されたアカウントメトリクス（利用可能な場合）。\",\"properties\":{\"user\":{\"type\":\"object\",\"description\":\"公開ユーザープロフィールの詳細。\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"TikTokアカウントIDがテキストとして返される。\"},\"shortId\":{\"type\":\"string\",\"description\":\"プロフィールの報告された短いアカウント識別子。\"},\"uniqueId\":{\"type\":\"string\",\"description\":\"公開TikTokユーザー名またはハンドル。\"},\"nickname\":{\"type\":\"string\",\"description\":\"プロフィールの表示名。\"},\"secUid\":{\"type\":\"string\",\"description\":\"プロフィール検索のsecUidとして使用できる不透明なアカウント識別子。\"},\"avatarLarger\":{\"type\":\"string\",\"description\":\"大サイズプロフィールアバターのURL。\"},\"avatarMedium\":{\"type\":\"string\",\"description\":\"中サイズプロフィールアバターのURL。\"},\"avatarThumb\":{\"type\":\"string\",\"description\":\"プロフィールアバターのサムネイルURL。\"},\"createTime\":{\"type\":\"integer\",\"description\":\"ユニックスエット期間からのアカウント作成時刻（秒）。\"},\"nickNameModifyTime\":{\"type\":\"integer\",\"description\":\"最後にニックネームを変更した時刻（Unix 秒）。ゼロの場合があります。\"},\"verified\":{\"type\":\"boolean\",\"description\":\"TikTokがプロフィールを認証済みとしてマークするかどうか。\"},\"privateAccount\":{\"type\":\"boolean\",\"description\":\"TikTokがアカウントをプライベートとしてマークするかどうか。\"},\"language\":{\"type\":\"string\",\"description\":\"プロフィールに報告された言語コード。\"},\"roomId\":{\"type\":\"string\",\"description\":\"アカウントに報告されたライブルームの識別子、テキスト形式。\"},\"ttSeller\":{\"type\":\"boolean\",\"description\":\"TikTokがアカウントに報告した販売者インジケーター。\"},\"commerceUserInfo\":{\"type\":\"object\",\"description\":\"アカウントに報告された商業情報。\",\"properties\":{\"commerceUser\":{\"type\":\"boolean\",\"description\":\"TikTokが報告した商業アカウントインジケーター。\"},\"category\":{\"type\":\"string\",\"description\":\"アカウントに報告された商業カテゴリー。\"}}},\"bioLink\":{\"type\":\"object\",\"description\":\"公開プロフィールからのリンク情報、提供されている場合。\",\"properties\":{\"link\":{\"type\":\"string\",\"description\":\"公開プロフィールのプロフィールライブラリに関連するURL。\"},\"risk\":{\"type\":\"integer\",\"description\":\"プロフィールリンクに報告されたリスクコード。\"}}},\"eventList\":{\"type\":\"array\",\"description\":\"公開プロフィールにリストされているイベント、提供されている場合。リストは空になることがあります。\",\"items\":{\"type\":\"object\",\"description\":\"プロフィールにリストされている一つのイベント。\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"テキスト形式で返されるイベントID。\"},\"title\":{\"type\":\"string\",\"description\":\"イベントタイトル。\"},\"desc\":{\"type\":\"string\",\"description\":\"イベント説明。\"},\"start_time\":{\"type\":\"string\",\"description\":\"報告されたイベントの開始時刻スタンプ、テキスト形式。\"},\"duration\":{\"type\":\"string\",\"description\":\"報告されたイベントの持続時間、テキスト形式。\"},\"status\":{\"type\":\"integer\",\"description\":\"報告されたイベントのステータスコード。\"},\"type\":{\"type\":\"integer\",\"description\":\"報告されたイベントのタイプコード。\"},\"subscriber_count\":{\"type\":\"string\",\"description\":\"報告されたイベントの購読者数、テキスト形式。\"},\"is_paid_event\":{\"type\":\"boolean\",\"description\":\"イベントが有料としてマークされているかどうか。\"},\"ticket_amount\":{\"type\":\"string\",\"description\":\"報告されたチケットの金額、テキスト形式。\"}}}}}},\"stats\":{\"type\":\"object\",\"description\":\"アカウントのメトリクスが整数として返される。\",\"properties\":{\"followerCount\":{\"type\":\"integer\",\"description\":\"アカウントのフォロワー数（報告値）。\"},\"followingCount\":{\"type\":\"integer\",\"description\":\"このアカウントがフォローしているアカウントの数、報告された数。\"},\"heart\":{\"type\":\"integer\",\"description\":\"アカウントが受け取った総いいね数。\"},\"heartCount\":{\"type\":\"integer\",\"description\":\"アカウントの受信に似た数のいいね数。\"},\"videoCount\":{\"type\":\"integer\",\"description\":\"アカウントの動画数（報告値）。\"},\"diggCount\":{\"type\":\"integer\",\"description\":\"このアカウントがいいねされた投稿数。\"},\"friendCount\":{\"type\":\"integer\",\"description\":\"このアカウントの友達数。\"}}},\"statsV2\":{\"type\":\"object\",\"description\":\"十進数文字列として返されるアカウントのメトリクス。値は同じレスポンス内の統計データの対応する値とは異なる場合があります。\",\"properties\":{\"followerCount\":{\"type\":\"string\",\"description\":\"このアカウントのフォロワー数、十進数テキストとして。\"},\"followingCount\":{\"type\":\"string\",\"description\":\"このアカウントがフォローするアカウント数、十進数テキストとして。\"},\"heart\":{\"type\":\"string\",\"description\":\"アカウントが受け取った総いいね数、十進数テキストとして。\"},\"heartCount\":{\"type\":\"string\",\"description\":\"アカウントの受信に似た数のいいね数、十進数テキストとして。\"},\"videoCount\":{\"type\":\"string\",\"description\":\"アカウントの動画数、十進数テキストとして。\"},\"diggCount\":{\"type\":\"string\",\"description\":\"このアカウントがいいねされた投稿数、十進数テキストとして。\"},\"friendCount\":{\"type\":\"string\",\"description\":\"このアカウントの友達数、十進数テキストとして。\"}}},\"itemList\":{\"type\":\"array\",\"description\":\"プロフィールに含まれる項目、提供された場合。リストは空になることがあります。\"}}},\"shareMeta\":{\"type\":\"object\",\"description\":\"プロフィールの共有プレビュー情報。\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"プロフィールの共有プレビューテーマ。\"},\"desc\":{\"type\":\"string\",\"description\":\"プロフィールの共有プレビューデスクリプション。\"}}}}}}},\"allOf\":[{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}]}}}},\"400\":{\"description\":\"有効でないリクエストパラメータまたはボディ。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"401\":{\"description\":\"有効でないまたは無効なアクセストークン。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"403\":{\"description\":\"権限拒否。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"429\":{\"description\":\"リクエストレートまたは日次クォーターリミットを超過。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"500\":{\"description\":\"内部サーバーエラー。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}},\"503\":{\"description\":\"サービスが一時的に利用できない。\",\"content\":{\"application/json\":{\"schema\":{\"type\":\"object\",\"properties\":{\"code\":{\"type\":\"integer\",\"format\":\"int32\",\"enum\":[0,100,101,202,300,301,302,303,400,404,500,503,600,601,602]},\"message\":{\"type\":[\"string\",\"null\"]},\"data\":{},\"recordTime\":{\"type\":[\"string\",\"null\"]},\"requestId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"requestParams\":{\"type\":\"object\",\"properties\":{\"query\":{\"type\":\"object\",\"additionalProperties\":{\"type\":\"object\"}},\"body\":{\"type\":\"object\",\"properties\":{\"empty\":{\"type\":\"boolean\"},\"array\":{\"type\":\"boolean\"},\"null\":{\"type\":\"boolean\"},\"object\":{\"type\":\"boolean\"},\"float\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"type\":\"boolean\"},\"valueNode\":{\"type\":\"boolean\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"string\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"pojo\":{\"type\":\"boolean\"},\"short\":{\"type\":\"boolean\"},\"int\":{\"type\":\"boolean\"},\"long\":{\"type\":\"boolean\"},\"double\":{\"type\":\"boolean\"},\"bigDecimal\":{\"type\":\"boolean\"},\"bigInteger\":{\"type\":\"boolean\"},\"textual\":{\"type\":\"boolean\",\"deprecated\":true},\"boolean\":{\"type\":\"boolean\"},\"binary\":{\"type\":\"boolean\"},\"number\":{\"type\":\"boolean\"},\"embeddedValue\":{\"type\":\"boolean\"}}}}}},\"required\":[\"code\",\"data\",\"message\",\"recordTime\"]}}}}}")'
  :servers='JSON.parse("[{\"url\":\"https://api.justoneapi.com\",\"description\":\"グローバルプロダクションAPI（デフォルト）\"}]")'
  :security='JSON.parse("[]")'
  :securitySchemes='JSON.parse("{}")'
  :schemas='JSON.parse("{}")'
/>

<ApiHealthSection :api='JSON.parse("\"/api/tiktok/get-user-detail/v1\"")' />

<p>公開ユーザー名またはsecUidで識別したTikTokユーザープロフィールを取得します。クリエイターの調査、プロフィールのレビュー、またはユーザーが投稿した内容の取得を続けるために使用します。</p>

## パラメータ

<div class="api-doc-table api-doc-table--params">

| 名前 | パラメーターの場所 | タイプ | 必須 | デフォルト | 説明 |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | はい | - | APIアクセス用のセキュリティトークン。 |
| <code>uniqueId</code> | query | <code>string</code> | いいえ | <code></code> | ユーザーの公開TikTokハンドルまたはユーザー名。 |
| <code>secUid</code> | query | <code>string</code> | いいえ | <code></code> | ユーザーのユニークセキュリティID。 |

</div>

## コードサンプル

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/tiktok/get-user-detail/v1?token=YOUR_API_KEY'
```

```text [🤖 AIプロンプト]
私はJustOneAPIの"ユーザープロフィール (V1)" APIを使用したいです。
基本URL: https://api.justoneapi.com.
APIパス: /api/tiktok/get-user-detail/v1?token=YOUR_API_KEY
APIエンドポイント: BASE_URL + /api/tiktok/get-user-detail/v1?token=YOUR_API_KEY
HTTPメソッド: GET
認証: "token"クエリパラメーターをURLに追加します。
OpenAPI定義: https://docs.justoneapi.com/openapi/tiktok/user-profile-v1-ja.json

パラメーター:
- token (query): APIアクセス用のセキュリティトークン。 (必須)
- uniqueId (query): ユーザーの公開TikTokハンドルまたはユーザー名。
- secUid (query): ユーザーのユニークセキュリティID。

返信形式：実際のContent-Typeに応じて、JSONまたはテキストを安全に処理する。

レスポンスの処理とエラーコード：
1. API の処理結果はレスポンス本文の「code」フィールドで判定します。code が 0 なら成功です。
2. 推奨タイムアウト：リクエストのタイムアウトは 120 秒に設定してください。120 秒が長すぎる場合でも、最低 60 秒を確保してください。一部のリクエストは、結果を受け取る前にタイムアウトすることがあります。
3. 処理結果コード：
   - 0: 成功
   - 100: 無効または停止中のトークン
   - 301: データの取得に失敗しました。再試行してください。
   - 302: 呼び出し頻度の上限を超えました
   - 303: 日次の利用上限を超えました
   - 400: パラメーターが無効です
   - 500: サーバー内部エラー
   - 600: アクセス権限がありません
   - 601: 残高不足
   - 602: トークンの予算上限に達しました
4. コード 601 はアカウントの共有残高不足を示します。コード 602 は使用中の API トークン固有の累積予算上限に達したことを示します。トークンに予算上限を設定しても、共有残高から資金が移動することはありません。

お手伝いください。私が好むプログラミング言語でこのAPIを呼び出し、レスポンスを処理するスクリプトを作成してください。
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # オープンAPIサーバーによって提供される

url = BASE_URL + "/api/tiktok/get-user-detail/v1?token=YOUR_API_KEY"
response = requests.get(url, timeout=120)
print(response.status_code)
if response.content:
    content_type = response.headers.get("content-type", "").lower()
    if "json" in content_type:
        try:
            print(response.json())
        except ValueError:
            print(response.text)
    elif content_type.startswith("text/") or "xml" in content_type or content_type.split(";", 1)[0].strip() in {"application/javascript", "application/x-www-form-urlencoded", "application/graphql"}:
        print(response.text)
    else:
        with open("response.bin", "wb") as output:
            output.write(response.content)
        print(f"Saved {len(response.content)} bytes to response.bin")
```

```js [🌐 JavaScript]
const BASE_URL = "https://api.justoneapi.com"; // オープンAPIサーバーによって提供される
const url = BASE_URL + "/api/tiktok/get-user-detail/v1?token=YOUR_API_KEY";

const response = await fetch(url, {
  method: "GET",
  signal: AbortSignal.timeout(120000)
});
console.log(response.status);
const responseBytes = await response.arrayBuffer();
if (responseBytes.byteLength) {
  const contentType = (response.headers.get("content-type") || "").toLowerCase();
  const mediaType = contentType.split(";", 1)[0].trim();
  const textual = contentType.startsWith("text/") || contentType.includes("json") || contentType.includes("xml") || ["application/javascript", "application/x-www-form-urlencoded", "application/graphql"].includes(mediaType);
  if (textual) {
    const responseText = new TextDecoder().decode(responseBytes);
    let data = responseText;
    if (contentType.includes("json")) {
      try { data = JSON.parse(responseText); } catch { /* Keep the raw body. */ }
    }
    console.log(data);
  } else {
    console.log(`Received ${responseBytes.byteLength} binary bytes`);
  }
}
```

```java [☕ Java]
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.time.Duration;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;

public class Main {
    public static void main(String[] args) throws Exception {
        final String BASE_URL = "https://api.justoneapi.com"; // オープンAPIサーバーによって提供される
        final String url = BASE_URL + "/api/tiktok/get-user-detail/v1?token=YOUR_API_KEY";

        HttpClient client = HttpClient.newBuilder().connectTimeout(Duration.ofSeconds(120)).build();
        HttpRequest.Builder builder = HttpRequest.newBuilder()
            .uri(URI.create(url))
            .timeout(Duration.ofSeconds(120))
            .method("GET", HttpRequest.BodyPublishers.noBody());

        HttpRequest request = builder.build();

        HttpResponse<byte[]> response = client.send(request, HttpResponse.BodyHandlers.ofByteArray());
        System.out.println(response.statusCode());
        String contentType = response.headers().firstValue("content-type").orElse("").toLowerCase();
        String mediaType = contentType.split(";", 2)[0].trim();
        if (contentType.startsWith("text/") || contentType.contains("json") || contentType.contains("xml") || mediaType.equals("application/javascript") || mediaType.equals("application/x-www-form-urlencoded") || mediaType.equals("application/graphql")) {
            System.out.println(new String(response.body(), StandardCharsets.UTF_8));
        } else {
            Files.write(Path.of("response.bin"), response.body());
            System.out.println("Saved " + response.body().length + " bytes to response.bin");
        }
    }
}
```

```go [🐹 Go]
package main

import (
	"fmt"
	"io"
	"os"
	"strings"
	"net/http"
	"time"
)

const BASE_URL = "https://api.justoneapi.com" // オープンAPIサーバーによって提供される

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/tiktok/get-user-detail/v1?token=YOUR_API_KEY"
	req, _ := http.NewRequest("GET", url, nil)
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	fmt.Println(resp.StatusCode)
	bodyBytes, _ := io.ReadAll(resp.Body)
	contentType := strings.ToLower(resp.Header.Get("Content-Type"))
	mediaType := strings.TrimSpace(strings.SplitN(contentType, ";", 2)[0])
	if strings.HasPrefix(contentType, "text/") || strings.Contains(contentType, "json") || strings.Contains(contentType, "xml") || mediaType == "application/javascript" || mediaType == "application/x-www-form-urlencoded" || mediaType == "application/graphql" {
		fmt.Println(string(bodyBytes))
	} else {
		os.WriteFile("response.bin", bodyBytes, 0600)
		fmt.Printf("Saved %d bytes to response.bin\n", len(bodyBytes))
	}
}
```

```php [🐘 PHP]
<?php
$BASE_URL = 'https://api.justoneapi.com'; // オープンAPIサーバーによって提供される
$url = $BASE_URL . '/api/tiktok/get-user-detail/v1?token=YOUR_API_KEY';

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 120);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
$response = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
$contentType = strtolower((string) curl_getinfo($ch, CURLINFO_CONTENT_TYPE));
curl_close($ch);
echo $status . PHP_EOL;
$mediaType = trim(explode(';', $contentType, 2)[0]);
if (str_starts_with($contentType, 'text/') || str_contains($contentType, 'json') || str_contains($contentType, 'xml') || in_array($mediaType, ['application/javascript', 'application/x-www-form-urlencoded', 'application/graphql'], true)) {
    echo $response;
} else {
    file_put_contents('response.bin', $response);
    echo 'Saved ' . strlen($response) . ' bytes to response.bin' . PHP_EOL;
}
```

:::

<div style="text-align: right; margin-top: -20px; margin-bottom: 20px;">
<a href="/openapi/tiktok/user-profile-v1-ja.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI定義 (JSON)]</a>
</div>

## レスポンスフィールド

成功したレスポンスのキーフィールド（`code = 0`）。

<div class="api-doc-table api-doc-table--response">

| フィールドパス | タイプ | 説明 |
| --- | --- | --- |
| <code>data</code> | <code>object</code> | TikTokプロフィールの検索結果。プロフィールが利用できない場合、応答には状態情報のみが含まれることがあります。 |
| <code>data.statusCode</code> | <code>integer</code> | TikTokがプロフィール検索で報告するステータスコード。 userInfoなしでも応答に非零コードが含まれることがあります。 |
| <code>data.statusMsg</code> | <code>string</code> | TikTokがプロフィール検索で報告するステータスメッセージ。 |
| <code>data.userInfo</code> | <code>object</code> | プロフィールおよび報告されたアカウントメトリクス（利用可能な場合）。 |
| <code>data.userInfo.user</code> | <code>object</code> | 公開ユーザープロフィールの詳細。 |
| <code>data.userInfo.user.id</code> | <code>string</code> | TikTokアカウントIDがテキストとして返される。 |
| <code>data.userInfo.user.shortId</code> | <code>string</code> | プロフィールの報告された短いアカウント識別子。 |
| <code>data.userInfo.user.uniqueId</code> | <code>string</code> | 公開TikTokユーザー名またはハンドル。 |
| <code>data.userInfo.user.nickname</code> | <code>string</code> | プロフィールの表示名。 |
| <code>data.userInfo.user.secUid</code> | <code>string</code> | プロフィール検索のsecUidとして使用できる不透明なアカウント識別子。 |
| <code>data.userInfo.user.avatarLarger</code> | <code>string</code> | 大サイズプロフィールアバターのURL。 |
| <code>data.userInfo.user.avatarMedium</code> | <code>string</code> | 中サイズプロフィールアバターのURL。 |
| <code>data.userInfo.user.avatarThumb</code> | <code>string</code> | プロフィールアバターのサムネイルURL。 |
| <code>data.userInfo.user.createTime</code> | <code>integer</code> | ユニックスエット期間からのアカウント作成時刻（秒）。 |
| <code>data.userInfo.user.nickNameModifyTime</code> | <code>integer</code> | 最後にニックネームを変更した時刻（Unix 秒）。ゼロの場合があります。 |
| <code>data.userInfo.user.verified</code> | <code>boolean</code> | TikTokがプロフィールを認証済みとしてマークするかどうか。 |
| <code>data.userInfo.user.privateAccount</code> | <code>boolean</code> | TikTokがアカウントをプライベートとしてマークするかどうか。 |
| <code>data.userInfo.user.language</code> | <code>string</code> | プロフィールに報告された言語コード。 |
| <code>data.userInfo.user.roomId</code> | <code>string</code> | アカウントに報告されたライブルームの識別子、テキスト形式。 |
| <code>data.userInfo.user.ttSeller</code> | <code>boolean</code> | TikTokがアカウントに報告した販売者インジケーター。 |
| <code>data.userInfo.user.commerceUserInfo</code> | <code>object</code> | アカウントに報告された商業情報。 |
| <code>data.userInfo.user.commerceUserInfo.commerceUser</code> | <code>boolean</code> | TikTokが報告した商業アカウントインジケーター。 |
| <code>data.userInfo.user.commerceUserInfo.category</code> | <code>string</code> | アカウントに報告された商業カテゴリー。 |
| <code>data.userInfo.user.bioLink</code> | <code>object</code> | 公開プロフィールからのリンク情報、提供されている場合。 |
| <code>data.userInfo.user.bioLink.link</code> | <code>string</code> | 公開プロフィールのプロフィールライブラリに関連するURL。 |
| <code>data.userInfo.user.bioLink.risk</code> | <code>integer</code> | プロフィールリンクに報告されたリスクコード。 |
| <code>data.userInfo.user.eventList</code> | <code>array</code> | 公開プロフィールにリストされているイベント、提供されている場合。リストは空になることがあります。 |
| <code>data.userInfo.user.eventList[]</code> | <code>object</code> | プロフィールにリストされている一つのイベント。 |
| <code>data.userInfo.user.eventList[].id</code> | <code>string</code> | テキスト形式で返されるイベントID。 |
| <code>data.userInfo.user.eventList[].title</code> | <code>string</code> | イベントタイトル。 |
| <code>data.userInfo.user.eventList[].desc</code> | <code>string</code> | イベント説明。 |
| <code>data.userInfo.user.eventList[].start_time</code> | <code>string</code> | 報告されたイベントの開始時刻スタンプ、テキスト形式。 |
| <code>data.userInfo.user.eventList[].duration</code> | <code>string</code> | 報告されたイベントの持続時間、テキスト形式。 |
| <code>data.userInfo.user.eventList[].status</code> | <code>integer</code> | 報告されたイベントのステータスコード。 |
| <code>data.userInfo.user.eventList[].type</code> | <code>integer</code> | 報告されたイベントのタイプコード。 |
| <code>data.userInfo.user.eventList[].subscriber_count</code> | <code>string</code> | 報告されたイベントの購読者数、テキスト形式。 |
| <code>data.userInfo.user.eventList[].is_paid_event</code> | <code>boolean</code> | イベントが有料としてマークされているかどうか。 |
| <code>data.userInfo.user.eventList[].ticket_amount</code> | <code>string</code> | 報告されたチケットの金額、テキスト形式。 |
| <code>data.userInfo.stats</code> | <code>object</code> | アカウントのメトリクスが整数として返される。 |
| <code>data.userInfo.stats.followerCount</code> | <code>integer</code> | アカウントのフォロワー数（報告値）。 |
| <code>data.userInfo.stats.followingCount</code> | <code>integer</code> | このアカウントがフォローしているアカウントの数、報告された数。 |
| <code>data.userInfo.stats.heart</code> | <code>integer</code> | アカウントが受け取った総いいね数。 |
| <code>data.userInfo.stats.heartCount</code> | <code>integer</code> | アカウントの受信に似た数のいいね数。 |
| <code>data.userInfo.stats.videoCount</code> | <code>integer</code> | アカウントの動画数（報告値）。 |
| <code>data.userInfo.stats.diggCount</code> | <code>integer</code> | このアカウントがいいねされた投稿数。 |
| <code>data.userInfo.stats.friendCount</code> | <code>integer</code> | このアカウントの友達数。 |
| <code>data.userInfo.statsV2</code> | <code>object</code> | 十進数文字列として返されるアカウントのメトリクス。値は同じレスポンス内の統計データの対応する値とは異なる場合があります。 |
| <code>data.userInfo.statsV2.followerCount</code> | <code>string</code> | このアカウントのフォロワー数、十進数テキストとして。 |
| <code>data.userInfo.statsV2.followingCount</code> | <code>string</code> | このアカウントがフォローするアカウント数、十進数テキストとして。 |
| <code>data.userInfo.statsV2.heart</code> | <code>string</code> | アカウントが受け取った総いいね数、十進数テキストとして。 |
| <code>data.userInfo.statsV2.heartCount</code> | <code>string</code> | アカウントの受信に似た数のいいね数、十進数テキストとして。 |
| <code>data.userInfo.statsV2.videoCount</code> | <code>string</code> | アカウントの動画数、十進数テキストとして。 |
| <code>data.userInfo.statsV2.diggCount</code> | <code>string</code> | このアカウントがいいねされた投稿数、十進数テキストとして。 |
| <code>data.userInfo.statsV2.friendCount</code> | <code>string</code> | このアカウントの友達数、十進数テキストとして。 |
| <code>data.userInfo.itemList</code> | <code>array</code> | プロフィールに含まれる項目、提供された場合。リストは空になることがあります。 |
| <code>data.shareMeta</code> | <code>object</code> | プロフィールの共有プレビュー情報。 |
| <code>data.shareMeta.title</code> | <code>string</code> | プロフィールの共有プレビューテーマ。 |
| <code>data.shareMeta.desc</code> | <code>string</code> | プロフィールの共有プレビューデスクリプション。 |

</div>

## レスポンス例

<ApiExampleSection :api='JSON.parse("\"/api/tiktok/get-user-detail/v1\"")' />

