---
title: "抖音（TikTok China） ユーザー検索 API (V2)"
description: "キーワードでDouyin（TikTok China）ユーザーを検索し、ページベースのページングとオプションのアカウントタイプフィルターを使用します。研究のためのクリエイター、ブランド、または認証されたアカウントを発見するために使用します。"
lastUpdated: false
aiUsagePrompt: true
---

# 抖音（TikTok China） ユーザー検索 API \(V2\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin/search-user/v2\"")'
  :summary='JSON.parse("\"ユーザー検索 (V2)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-tiktok-china/user-search-v2-ja.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"このAPIサービスのアクセストークン。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"keyword\",\"in\":\"query\",\"description\":\"検索キーワード。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"ページ番号（1から始まる）。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":1}},{\"name\":\"userType\",\"in\":\"query\",\"description\":\"ユーザータイプによるフィルタリング。\\n\\n利用可能な値:\\n- `common_user`: 一般ユーザー\\n- `enterprise_user`: 企業ユーザー\\n- `personal_user`: 認証済み個人ユーザー\",\"required\":false,\"schema\":{\"type\":\"string\",\"description\":\"抖音 - ユーザー検索タイプフィルター\",\"enum\":[\"common_user\",\"enterprise_user\",\"personal_user\"]}}]")'
  :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\":\"抖音アカウント検索の一つの結果ページ。\",\"properties\":{\"business_data\":{\"type\":\"array\",\"description\":\"このページの検索結果カード。カードにはユーザープロフィールや表示用コンテンツが含まれることがあります。アカウントの結果はページ間で重複する可能性があります。\",\"items\":{\"type\":\"object\",\"description\":\"検索結果の一つのカード。\",\"properties\":{\"data_id\":{\"type\":\"string\",\"description\":\"このカードをその結果エントリにリンクするテキスト識別子。\"},\"card_id\":{\"type\":\"string\",\"description\":\"検索結果に報告されたカード識別子。\"},\"type\":{\"type\":\"integer\",\"description\":\"検索結果に報告されたカードの数値型タイプコード。\"},\"data\":{\"type\":\"object\",\"description\":\"この結果カードが持つデータ。\",\"properties\":{\"raw_data\":{\"type\":\"string\",\"contentMediaType\":\"application/json\",\"contentSchema\":{\"type\":\"object\",\"description\":\"結果のJSON文字列の解析内容。\",\"properties\":{\"user_info\":{\"type\":\"object\",\"description\":\"ユーザーの結果に対して返される公開Douyinアカウントプロフィール。\",\"properties\":{\"uid\":{\"type\":\"string\",\"description\":\"テキスト形式のDouyinアカウントID。この値を使用して、ページ間でアカウントの結果を重複排除します。\"},\"sec_uid\":{\"type\":\"string\",\"description\":\"プロフィールリンクで使用される公開Douyinアカウント識別子。\"},\"unique_id\":{\"type\":\"string\",\"description\":\"アカウントに対して報告された公開Douyinハンドル。\"},\"nickname\":{\"type\":\"string\",\"description\":\"アカウントの表示名。\"},\"follower_count\":{\"type\":\"integer\",\"description\":\"アカウントの報告されたフォロワー数。\"},\"verification_type\":{\"type\":\"integer\",\"description\":\"アカウントに対して報告された数値型検証タイプコード。\"},\"enterprise_verify_reason\":{\"type\":\"string\",\"description\":\"表示される企業認証テキストで、空の場合もあります。\"},\"account_cert_info\":{\"type\":\"string\",\"contentMediaType\":\"application/json\",\"contentSchema\":{\"type\":\"object\",\"description\":\"デコードされた認証バッジ情報。オブジェクトは空の場合もあります。\",\"properties\":{\"label_style\":{\"type\":\"integer\",\"description\":\"認証バッジの表示スタイル数値コード。\"},\"label_text\":{\"type\":\"string\",\"description\":\"認証バッジに表示されるテキスト。\"},\"is_biz_account\":{\"type\":\"integer\",\"description\":\"認証バッジと共に報告される数値型ビジネスアカウントインジケータ。\"}}},\"description\":\"認証バッジ情報のオプションJSONテキスト。別のJSON値として解析してください。\"},\"is_star\":{\"type\":\"boolean\",\"description\":\"アカウントが星マークアカウント指定でマークされているかどうか。\"},\"live_status\":{\"type\":\"integer\",\"description\":\"アカウントに対して報告される数値型ライブ放送ステータスコード。\"},\"avatar_thumb\":{\"type\":\"object\",\"description\":\"アバターのサムネイルバリアント。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"このアバターのプラットフォームリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"このサイズのバリアントに対して返されるアバターURL。\",\"items\":{\"type\":\"string\",\"description\":\"一つのアバターURL。\"}},\"width\":{\"type\":\"integer\",\"description\":\"報告されたアバターのピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"報告されたアバターのピクセル単位の高さ。\"}}},\"avatar_medium\":{\"type\":\"object\",\"description\":\"中サイズのアバターバリアント。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"このアバターのプラットフォームリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"このサイズのバリアントに対して返されるアバターURL。\",\"items\":{\"type\":\"string\",\"description\":\"一つのアバターURL。\"}},\"width\":{\"type\":\"integer\",\"description\":\"報告されたアバターのピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"報告されたアバターのピクセル単位の高さ。\"}}},\"avatar_larger\":{\"type\":\"object\",\"description\":\"大サイズのアバターバリアント。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"このアバターのプラットフォームリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"このサイズのバリアントに対して返されるアバターURL。\",\"items\":{\"type\":\"string\",\"description\":\"一つのアバターURL。\"}},\"width\":{\"type\":\"integer\",\"description\":\"報告されたアバターのピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"報告されたアバターのピクセル単位の高さ。\"}}},\"versatile_display\":{\"type\":\"string\",\"description\":\"アカウントに対して返される追加の表示テキスト。\"},\"display_info\":{\"type\":\"array\",\"description\":\"アカウントの結果と共に表示される情報行。\",\"items\":{\"type\":\"object\",\"description\":\"一つの表示情報行。\",\"properties\":{\"title\":{\"type\":\"string\",\"description\":\"表示される情報行のタイトル。\"},\"text\":{\"type\":\"string\",\"description\":\"表示される情報行のテキスト。\"},\"tag\":{\"type\":\"array\",\"description\":\"この情報行に表示されるタグ。\",\"items\":{\"type\":\"object\",\"description\":\"情報行に表示される一つのタグ。\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"このタグのテキスト型。\"},\"description\":{\"type\":\"string\",\"description\":\"このタグの表示説明。\"},\"icon_url\":{\"type\":\"string\",\"description\":\"このタグのアイコンURL（利用可能な場合）。\"}}}}}}},\"user_tags\":{\"type\":\"array\",\"description\":\"このアカウントに関して報告されたタグ。\",\"items\":{\"type\":\"object\",\"description\":\"一つのアカウントタグ。\",\"properties\":{\"type\":{\"type\":\"string\",\"description\":\"このタグのテキスト型。\"},\"description\":{\"type\":\"string\",\"description\":\"このタグの表示説明。\"},\"icon_url\":{\"type\":\"string\",\"description\":\"このタグのアイコンURL（利用可能な場合）。\"}}}}}},\"display\":{\"type\":\"object\",\"description\":\"アカウントプロフィールがない場合でも結果に付随する表示内容。\",\"properties\":{\"card_rank\":{\"type\":\"integer\",\"description\":\"この表示カードに関して報告されたランク。\"},\"is_last_item\":{\"type\":\"integer\",\"description\":\"表示カードの最終項目の数値インジケータ。\"},\"feedback\":{\"type\":\"object\",\"description\":\"表示カードに付随するフィードバックメタデータ。\"}}}}},\"description\":\"JSONテキストとして返される結果データ。この文字列をまず解析してください。表示用カードではuser_infoが省略されることがあります。\"}}}}}},\"business_config\":{\"type\":\"object\",\"description\":\"結果ページに関する報告されたクエリとページング情報。\",\"properties\":{\"keyword\":{\"type\":\"string\",\"description\":\"現在のページに関して報告された検索キーワード。\"},\"card_count\":{\"type\":\"integer\",\"description\":\"このページで報告される結果カードの数。\"},\"has_more\":{\"type\":\"integer\",\"description\":\"ページングフラグ。値1は別のページが報告されていることを示します。ページングは0で終了します。\"},\"next_page\":{\"type\":\"object\",\"description\":\"追加のページングメタデータ。ページリクエストパラメータを増やして続行します。\",\"properties\":{\"cursor\":{\"type\":\"integer\",\"description\":\"レスポンスに報告されるページング位置。\"},\"keyword\":{\"type\":\"string\",\"description\":\"ページングメタデータに含まれるキーワード。\"}}}}},\"status_code\":{\"type\":\"integer\",\"description\":\"検索レスポンスによって報告される内部ステータスコード。\"},\"success\":{\"type\":\"boolean\",\"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/douyin/search-user/v2\"")' />

<p>キーワードでDouyin（TikTok China）ユーザーを検索し、ページベースのページングとオプションのアカウントタイプフィルターを使用します。研究のためのクリエイター、ブランド、または認証されたアカウントを発見するために使用します。</p>

## パラメータ

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

| 名前 | パラメーターの場所 | タイプ | 必須 | デフォルト | 説明 |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | はい | - | このAPIサービスのアクセストークン。 |
| <code>keyword</code> | query | <code>string</code> | はい | - | 検索キーワード。 |
| <code>page</code> | query | <code>integer</code> | いいえ | <code>1</code> | ページ番号（1から始まる）。 |
| <code>userType</code> | query | <code>string</code> | いいえ | - | ユーザータイプによるフィルタリング。<br /><br><br>利用可能な値:<br /><br>- <code>common_user</code>: 一般ユーザー<br /><br>- <code>enterprise_user</code>: 企業ユーザー<br /><br>- <code>personal_user</code>: 認証済み個人ユーザー |

</div>

## コードサンプル

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/douyin/search-user/v2?token=YOUR_API_KEY&keyword=VALUE'
```

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

パラメーター:
- token (query): このAPIサービスのアクセストークン。 (必須)
- keyword (query): 検索キーワード。 (必須)
- page (query): ページ番号（1から始まる）。
- userType (query): ユーザータイプによるフィルタリング。

利用可能な値:
- `common_user`: 一般ユーザー
- `enterprise_user`: 企業ユーザー
- `personal_user`: 認証済み個人ユーザー

返信形式：実際の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/douyin/search-user/v2?token=YOUR_API_KEY&keyword=VALUE"
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/douyin/search-user/v2?token=YOUR_API_KEY&keyword=VALUE";

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/douyin/search-user/v2?token=YOUR_API_KEY&keyword=VALUE";

        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/douyin/search-user/v2?token=YOUR_API_KEY&keyword=VALUE"
	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/douyin/search-user/v2?token=YOUR_API_KEY&keyword=VALUE';

$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/douyin-tiktok-china/user-search-v2-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> | 抖音アカウント検索の一つの結果ページ。 |
| <code>data.business_data</code> | <code>array</code> | このページの検索結果カード。カードにはユーザープロフィールや表示用コンテンツが含まれることがあります。アカウントの結果はページ間で重複する可能性があります。 |
| <code>data.business_data[]</code> | <code>object</code> | 検索結果の一つのカード。 |
| <code>data.business_data[].data_id</code> | <code>string</code> | このカードをその結果エントリにリンクするテキスト識別子。 |
| <code>data.business_data[].card_id</code> | <code>string</code> | 検索結果に報告されたカード識別子。 |
| <code>data.business_data[].type</code> | <code>integer</code> | 検索結果に報告されたカードの数値型タイプコード。 |
| <code>data.business_data[].data</code> | <code>object</code> | この結果カードが持つデータ。 |
| <code>data.business_data[].data.raw_data</code> | <code>string</code> | JSONテキストとして返される結果データ。この文字列をまず解析してください。表示用カードではuser_infoが省略されることがあります。 |
| <code>data.business_data[].data.raw_data (JSON)</code> | <code>object</code> | 結果のJSON文字列の解析内容。 |
| <code>data.business_data[].data.raw_data (JSON).user_info</code> | <code>object</code> | ユーザーの結果に対して返される公開Douyinアカウントプロフィール。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.uid</code> | <code>string</code> | テキスト形式のDouyinアカウントID。この値を使用して、ページ間でアカウントの結果を重複排除します。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.sec_uid</code> | <code>string</code> | プロフィールリンクで使用される公開Douyinアカウント識別子。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.unique_id</code> | <code>string</code> | アカウントに対して報告された公開Douyinハンドル。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.nickname</code> | <code>string</code> | アカウントの表示名。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.follower_count</code> | <code>integer</code> | アカウントの報告されたフォロワー数。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.verification_type</code> | <code>integer</code> | アカウントに対して報告された数値型検証タイプコード。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.enterprise_verify_reason</code> | <code>string</code> | 表示される企業認証テキストで、空の場合もあります。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.account_cert_info</code> | <code>string</code> | 認証バッジ情報のオプションJSONテキスト。別のJSON値として解析してください。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.account_cert_info (JSON)</code> | <code>object</code> | デコードされた認証バッジ情報。オブジェクトは空の場合もあります。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.account_cert_info (JSON).label_style</code> | <code>integer</code> | 認証バッジの表示スタイル数値コード。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.account_cert_info (JSON).label_text</code> | <code>string</code> | 認証バッジに表示されるテキスト。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.account_cert_info (JSON).is_biz_account</code> | <code>integer</code> | 認証バッジと共に報告される数値型ビジネスアカウントインジケータ。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.is_star</code> | <code>boolean</code> | アカウントが星マークアカウント指定でマークされているかどうか。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.live_status</code> | <code>integer</code> | アカウントに対して報告される数値型ライブ放送ステータスコード。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_thumb</code> | <code>object</code> | アバターのサムネイルバリアント。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_thumb.uri</code> | <code>string</code> | このアバターのプラットフォームリソース識別子。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_thumb.url_list</code> | <code>array</code> | このサイズのバリアントに対して返されるアバターURL。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_thumb.url_list[]</code> | <code>string</code> | 一つのアバターURL。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_thumb.width</code> | <code>integer</code> | 報告されたアバターのピクセル単位の幅。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_thumb.height</code> | <code>integer</code> | 報告されたアバターのピクセル単位の高さ。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_medium</code> | <code>object</code> | 中サイズのアバターバリアント。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_medium.uri</code> | <code>string</code> | このアバターのプラットフォームリソース識別子。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_medium.url_list</code> | <code>array</code> | このサイズのバリアントに対して返されるアバターURL。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_medium.url_list[]</code> | <code>string</code> | 一つのアバターURL。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_medium.width</code> | <code>integer</code> | 報告されたアバターのピクセル単位の幅。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_medium.height</code> | <code>integer</code> | 報告されたアバターのピクセル単位の高さ。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_larger</code> | <code>object</code> | 大サイズのアバターバリアント。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_larger.uri</code> | <code>string</code> | このアバターのプラットフォームリソース識別子。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_larger.url_list</code> | <code>array</code> | このサイズのバリアントに対して返されるアバターURL。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_larger.url_list[]</code> | <code>string</code> | 一つのアバターURL。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_larger.width</code> | <code>integer</code> | 報告されたアバターのピクセル単位の幅。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.avatar_larger.height</code> | <code>integer</code> | 報告されたアバターのピクセル単位の高さ。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.versatile_display</code> | <code>string</code> | アカウントに対して返される追加の表示テキスト。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info</code> | <code>array</code> | アカウントの結果と共に表示される情報行。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[]</code> | <code>object</code> | 一つの表示情報行。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].title</code> | <code>string</code> | 表示される情報行のタイトル。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].text</code> | <code>string</code> | 表示される情報行のテキスト。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].tag</code> | <code>array</code> | この情報行に表示されるタグ。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].tag[]</code> | <code>object</code> | 情報行に表示される一つのタグ。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].tag[].type</code> | <code>string</code> | このタグのテキスト型。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].tag[].description</code> | <code>string</code> | このタグの表示説明。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.display_info[].tag[].icon_url</code> | <code>string</code> | このタグのアイコンURL（利用可能な場合）。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.user_tags</code> | <code>array</code> | このアカウントに関して報告されたタグ。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.user_tags[]</code> | <code>object</code> | 一つのアカウントタグ。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.user_tags[].type</code> | <code>string</code> | このタグのテキスト型。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.user_tags[].description</code> | <code>string</code> | このタグの表示説明。 |
| <code>data.business_data[].data.raw_data (JSON).user_info.user_tags[].icon_url</code> | <code>string</code> | このタグのアイコンURL（利用可能な場合）。 |
| <code>data.business_data[].data.raw_data (JSON).display</code> | <code>object</code> | アカウントプロフィールがない場合でも結果に付随する表示内容。 |
| <code>data.business_data[].data.raw_data (JSON).display.card_rank</code> | <code>integer</code> | この表示カードに関して報告されたランク。 |
| <code>data.business_data[].data.raw_data (JSON).display.is_last_item</code> | <code>integer</code> | 表示カードの最終項目の数値インジケータ。 |
| <code>data.business_data[].data.raw_data (JSON).display.feedback</code> | <code>object</code> | 表示カードに付随するフィードバックメタデータ。 |
| <code>data.business_config</code> | <code>object</code> | 結果ページに関する報告されたクエリとページング情報。 |
| <code>data.business_config.keyword</code> | <code>string</code> | 現在のページに関して報告された検索キーワード。 |
| <code>data.business_config.card_count</code> | <code>integer</code> | このページで報告される結果カードの数。 |
| <code>data.business_config.has_more</code> | <code>integer</code> | ページングフラグ。値1は別のページが報告されていることを示します。ページングは0で終了します。 |
| <code>data.business_config.next_page</code> | <code>object</code> | 追加のページングメタデータ。ページリクエストパラメータを増やして続行します。 |
| <code>data.business_config.next_page.cursor</code> | <code>integer</code> | レスポンスに報告されるページング位置。 |
| <code>data.business_config.next_page.keyword</code> | <code>string</code> | ページングメタデータに含まれるキーワード。 |
| <code>data.status_code</code> | <code>integer</code> | 検索レスポンスによって報告される内部ステータスコード。 |
| <code>data.success</code> | <code>boolean</code> | 検索データに報告される成功フラグ。 |

</div>

## レスポンス例

<ApiExampleSection :api='JSON.parse("\"/api/douyin/search-user/v2\"")' />

