---
title: "抖音（TikTok China） 動画検索 API (V4)"
description: "キーワードでDouyin（TikTok China）動画を検索し、ソート、公開時間、長さ、ページフィルターを使用します。後のページでは、前の検索IDが必要です。コンテンツの発見とトレンドの研究をサポートするために使用します。"
lastUpdated: false
aiUsagePrompt: true
---

# 抖音（TikTok China） 動画検索 API \(V4\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin/search-video/v4\"")'
  :summary='JSON.parse("\"動画検索 (V4)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-tiktok-china/video-search-v4-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\":\"sortType\",\"in\":\"query\",\"description\":\"検索結果のソート基準。\\n\\n利用可能値：\\n- `_0`: 一般\\n- `_1`: より多くのいいね\\n- `_2`: 最新\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"_0\",\"description\":\"抖音 - 動画検索ソートタイプ\",\"enum\":[\"_0\",\"_1\",\"_2\"]}},{\"name\":\"publishTime\",\"in\":\"query\",\"description\":\"動画の公開時間範囲でフィルタリング。\\n\\n利用可能値：\\n- `_0`: 制限なし\\n- `_1`: 過去24時間\\n- `_7`: 過去7日間\\n- `_180`: 過去6ヶ月\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"_0\",\"description\":\"抖音 - 動画検索公開時間フィルター\",\"enum\":[\"_0\",\"_1\",\"_7\",\"_180\"]}},{\"name\":\"duration\",\"in\":\"query\",\"description\":\"動画の長さでフィルタリング。\\n\\n利用可能値：\\n- `_0`: 制限なし\\n- `_1`: 1分未満\\n- `_2`: 1-5分\\n- `_3`: 5分以上\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"_0\",\"description\":\"抖音 - 動画検索持続時間フィルター\",\"enum\":[\"_0\",\"_1\",\"_2\",\"_3\"]}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"ページ番号（1から始まる）。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":1}},{\"name\":\"searchId\",\"in\":\"query\",\"description\":\"検索 ID。page &gt; 1 のリクエストで必須です。直前のレスポンスの data.business_config.next_page.search_id を渡します。data.business_config.has_more が 0 のときは取得を終了します。\",\"required\":false,\"schema\":{\"type\":\"string\"}}]")'
  :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\":\"Douyinキーワードクエリに対する検索結果とページング詳細。\",\"properties\":{\"business_data\":{\"type\":\"array\",\"description\":\"検索結果カード。同じビデオが複数のページに表示される可能性があります。aweme_idを使用してビデオ結果の重複を排除します。\",\"items\":{\"type\":\"object\",\"description\":\"検索結果リストで返される一枚のカード。\",\"properties\":{\"data_id\":{\"type\":\"string\",\"description\":\"現在のレスポンス内のカードの識別子。\"},\"type\":{\"type\":\"integer\",\"description\":\"結果の種類コード。観察された種類には、ビデオ結果の1と関連検索の66667が含まれる。\"},\"data\":{\"type\":\"object\",\"description\":\"結果カードの内容。フィールドはカードの種類に依存する。\",\"properties\":{\"aweme_info\":{\"type\":\"object\",\"description\":\"カードにビデオが含まれる場合のDouyinビデオ結果。\",\"properties\":{\"aweme_id\":{\"type\":\"string\",\"description\":\"安定したDouyinビデオIDが文字列としてエンコードされたもの。この値を使用して、検索ページ全体でビデオを識別する。\"},\"group_id\":{\"type\":\"string\",\"description\":\"投稿のグループ識別子。\"},\"author_user_id\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"投稿アカウントの数値ID。\"},\"desc\":{\"type\":\"string\",\"description\":\"Douyinが提供する投稿の説明。\"},\"caption\":{\"type\":\"string\",\"description\":\"Douyinが提供する投稿のキャプション。\"},\"item_title\":{\"type\":\"string\",\"description\":\"提供されている場合の投稿のタイトル。\"},\"preview_title\":{\"type\":\"string\",\"description\":\"投稿プレビューのタイトル。\"},\"create_time\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"ビデオの公開時間、Unixタイムスタンプで秒単位。\"},\"duration\":{\"type\":\"integer\",\"description\":\"ビデオの持続時間、ミリ秒単位。\"},\"aweme_type\":{\"type\":\"integer\",\"description\":\"Douyinが報告する投稿のタイプコード。\"},\"media_type\":{\"type\":\"integer\",\"description\":\"Douyinが報告するメディアタイプコード。\"},\"ip_attribution\":{\"type\":\"string\",\"description\":\"Douyinが報告するIP地域ラベル（利用可能な場合）。\"},\"share_url\":{\"type\":\"string\",\"description\":\"ビデオのDouyin共有URL。\"},\"share_info\":{\"type\":\"object\",\"description\":\"ビデオを共有するためのメタデータ。\",\"properties\":{\"share_url\":{\"type\":\"string\",\"description\":\"ビデオを共有するためのURL。\"},\"share_title\":{\"type\":\"string\",\"description\":\"ビデオを共有するためのタイトル。\"},\"share_desc\":{\"type\":\"string\",\"description\":\"ビデオを共有するための説明。\"}}},\"text_extra\":{\"type\":[\"array\",\"null\"],\"description\":\"投稿テキストに関連するハッシュタグとユーザー言及。このリストはnullの場合もある。\",\"items\":{\"type\":\"object\",\"description\":\"一枚のテキストアノテーション。\",\"properties\":{\"type\":{\"type\":\"integer\",\"description\":\"Douyinが報告するアノテーションのタイプコード。\"},\"hashtag_id\":{\"type\":\"string\",\"description\":\"アノテーションがハッシュタグを表す場合のハッシュタグのID。\"},\"hashtag_name\":{\"type\":\"string\",\"description\":\"アノテーションが付いたハッシュタグの名前。\"},\"user_id\":{\"type\":\"string\",\"description\":\"アノテーションでユーザーが言及されている場合のDouyinアカウントID。\"},\"sec_uid\":{\"type\":\"string\",\"description\":\"言及されたユーザーのための二次的なDouyinアカウントID。\"},\"is_commerce\":{\"type\":\"boolean\",\"description\":\"アノテーションされたハッシュタグがDouyinによって商業的と判断されるかどうか。\"}}}},\"cha_list\":{\"type\":[\"array\",\"null\"],\"description\":\"投稿に関連するトピックまたはチャレンジの詳細。このリストはnullの場合もあります。\",\"items\":{\"type\":\"object\",\"description\":\"一つのトピックまたは課題。\",\"properties\":{\"cid\":{\"type\":\"string\",\"description\":\"DouyinのトピックまたはチャレンジID。\"},\"cha_name\":{\"type\":\"string\",\"description\":\"トピックまたはチャレンジの名前。\"},\"desc\":{\"type\":\"string\",\"description\":\"トピックまたはチャレンジの説明。\"},\"is_commerce\":{\"type\":\"boolean\",\"description\":\"トピックまたはチャレンジがDouyinによって商業的と判断されるかどうか。\"}}}},\"author\":{\"type\":\"object\",\"description\":\"動画と共に返される著者プロフィール情報。\",\"properties\":{\"uid\":{\"type\":\"string\",\"description\":\"文字列としてエンコードされたDouyinアカウントID。\"},\"sec_uid\":{\"type\":\"string\",\"description\":\"ユーザープロフィールエンドポイントで使用される二次的なDouyinアカウント識別子。\"},\"nickname\":{\"type\":\"string\",\"description\":\"著者の表示名。\"},\"unique_id\":{\"type\":\"string\",\"description\":\"利用可能な場合の公開Douyinアカウントハンドル。\"},\"short_id\":{\"type\":\"string\",\"description\":\"Douyinが報告する短いアカウント識別子。\"},\"follower_count\":{\"type\":\"integer\",\"description\":\"著者のフォロワー数。\"},\"is_verified\":{\"type\":\"boolean\",\"description\":\"Douyinが著者を検証済みとして報告するかどうか。\"},\"verification_type\":{\"type\":\"integer\",\"description\":\"著者に関する検証カテゴリコード。\"},\"avatar_thumb\":{\"type\":\"object\",\"description\":\"著者のアバターサムネイル。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Douyinが報告するリソース識別子。\"},\"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\":\"Douyinが報告するリソース識別子。\"},\"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\":\"Douyinが報告するリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"リソースのための提供されたURL。\",\"items\":{\"type\":\"string\",\"description\":\"リソースのための提供されたURL。\"}},\"width\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の高さ。\"}}}}},\"statistics\":{\"type\":\"object\",\"description\":\"動画のエンゲージメント数の報告。\",\"properties\":{\"aweme_id\":{\"type\":\"string\",\"description\":\"これらの統計情報に関連するDouyin動画ID。\"},\"digg_count\":{\"type\":\"integer\",\"description\":\"動画のいいね数（報告値）。\"},\"comment_count\":{\"type\":\"integer\",\"description\":\"動画のコメント数（報告値）。\"},\"collect_count\":{\"type\":\"integer\",\"description\":\"動画の保存数（報告値）。\"},\"share_count\":{\"type\":\"integer\",\"description\":\"動画のシェア数（報告値）。\"},\"forward_count\":{\"type\":\"integer\",\"description\":\"応答に含まれる転送数。\"},\"download_count\":{\"type\":\"integer\",\"description\":\"動画のダウンロード数（報告値）。\"}}},\"video\":{\"type\":\"object\",\"description\":\"動画のメタデータと再生可能なリソース。\",\"properties\":{\"duration\":{\"type\":\"integer\",\"description\":\"ビデオの持続時間、ミリ秒単位。\"},\"width\":{\"type\":\"integer\",\"description\":\"Douyinが報告する動画の幅（ピクセル）。\"},\"height\":{\"type\":\"integer\",\"description\":\"Douyinが報告する動画の高さ（ピクセル）。\"},\"format\":{\"type\":\"string\",\"description\":\"Douyinが報告する動画の形式。\"},\"ratio\":{\"type\":\"string\",\"description\":\"Douyinが報告する解像度ラベル。\"},\"has_watermark\":{\"type\":\"boolean\",\"description\":\"動画メタデータからのウォーターマークフラグ。\"},\"play_addr\":{\"type\":\"object\",\"description\":\"動画の主要な再生アドレス。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Douyinが報告するリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"リソースのための提供されたURL。\",\"items\":{\"type\":\"string\",\"description\":\"リソースのための提供されたURL。\"}},\"width\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の高さ。\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"メタデータで報告されるリソースファイルのサイズ（バイト）。\"}}},\"play_addr_h264\":{\"type\":\"object\",\"description\":\"H.264バリアントの提供アドレス。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Douyinが報告するリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"リソースのための提供されたURL。\",\"items\":{\"type\":\"string\",\"description\":\"リソースのための提供されたURL。\"}},\"width\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の高さ。\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"メタデータで報告されるリソースファイルのサイズ（バイト）。\"}}},\"play_addr_265\":{\"type\":\"object\",\"description\":\"H.265再生フィールドで提供されるアドレス。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Douyinが報告するリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"リソースのための提供されたURL。\",\"items\":{\"type\":\"string\",\"description\":\"リソースのための提供されたURL。\"}},\"width\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の高さ。\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"メタデータで報告されるリソースファイルのサイズ（バイト）。\"}}},\"download_addr\":{\"type\":\"object\",\"description\":\"動画のダウンロードアドレス。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Douyinが報告するリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"リソースのための提供されたURL。\",\"items\":{\"type\":\"string\",\"description\":\"リソースのための提供されたURL。\"}},\"width\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の高さ。\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"メタデータで報告されるリソースファイルのサイズ（バイト）。\"}}},\"cover\":{\"type\":\"object\",\"description\":\"動画のカバー画像。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Douyinが報告するリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"リソースのための提供されたURL。\",\"items\":{\"type\":\"string\",\"description\":\"リソースのための提供されたURL。\"}},\"width\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の高さ。\"}}},\"origin_cover\":{\"type\":\"object\",\"description\":\"元のカバーフィールドのカバー画像。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Douyinが報告するリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"リソースのための提供されたURL。\",\"items\":{\"type\":\"string\",\"description\":\"リソースのための提供されたURL。\"}},\"width\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の高さ。\"}}},\"dynamic_cover\":{\"type\":\"object\",\"description\":\"利用可能な場合の動くカバーリソース。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Douyinが報告するリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"リソースのための提供されたURL。\",\"items\":{\"type\":\"string\",\"description\":\"リソースのための提供されたURL。\"}},\"width\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の高さ。\"}}},\"animated_cover\":{\"type\":\"object\",\"description\":\"利用可能な場合のアニメーションカバーリソース。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Douyinが報告するリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"リソースのための提供されたURL。\",\"items\":{\"type\":\"string\",\"description\":\"リソースのための提供されたURL。\"}}}},\"bit_rate\":{\"type\":\"array\",\"description\":\"動画の再生エンコーディングとビットレートメタデータ。\",\"items\":{\"type\":\"object\",\"description\":\"ビデオ用の一つの再生エンコーディング。\",\"properties\":{\"bit_rate\":{\"type\":\"integer\",\"description\":\"エンコーディングのビットレート（ビット/秒）。\"},\"FPS\":{\"type\":\"integer\",\"description\":\"フレームレート（フレーム/秒）。\"},\"format\":{\"type\":\"string\",\"description\":\"このエンコーディングのメディア形式の報告。\"},\"gear_name\":{\"type\":\"string\",\"description\":\"このバリアントに関するエンコーダプリセットラベルの報告値。\"},\"quality_type\":{\"type\":\"integer\",\"description\":\"このエンコーディングに関する品質カテゴリコードの報告値。\"},\"is_h265\":{\"type\":\"integer\",\"description\":\"このバリアントに関するH.265エンコーディングフラグの報告値。\"},\"HDR_type\":{\"type\":\"string\",\"description\":\"エンコーディングに関するHDRカテゴリラベルの返信値。\"},\"HDR_bit\":{\"type\":\"string\",\"description\":\"エンコーディングに関するHDRビット深度ラベルの返信値。\"},\"play_addr\":{\"type\":\"object\",\"description\":\"このエンコーディングの再生アドレス。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Douyinが報告するリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"リソースのための提供されたURL。\",\"items\":{\"type\":\"string\",\"description\":\"リソースのための提供されたURL。\"}},\"width\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の高さ。\"},\"data_size\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"メタデータで報告されるリソースファイルのサイズ（バイト）。\"}}}}}}}},\"music\":{\"type\":\"object\",\"description\":\"ビデオに関連する音楽またはサウンドのメタデータ。\",\"properties\":{\"id\":{\"type\":\"integer\",\"format\":\"int64\",\"description\":\"数値の音楽ID。JavaScriptで完全な値を保持するために無損失JSONパーサを使用する。\"},\"id_str\":{\"type\":\"string\",\"description\":\"文字列としてエンコードされた音楽ID。\"},\"mid\":{\"type\":\"string\",\"description\":\"ミッドフィールドで返される音楽ID。\"},\"title\":{\"type\":\"string\",\"description\":\"音楽または音のトラックのタイトル。\"},\"author\":{\"type\":\"string\",\"description\":\"トラックと共に返されるアーティストまたは音の作成者名。\"},\"album\":{\"type\":\"string\",\"description\":\"提供された場合のアルバムタイトル。\"},\"is_original_sound\":{\"type\":\"boolean\",\"description\":\"Douyinがトラックをオリジナルサウンドとしてマークするかどうか。\"},\"cover_thumb\":{\"type\":\"object\",\"description\":\"音楽または音のトラックのサムネイルカバー。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Douyinが報告するリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"リソースのための提供されたURL。\",\"items\":{\"type\":\"string\",\"description\":\"リソースのための提供されたURL。\"}},\"width\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の幅。\"},\"height\":{\"type\":\"integer\",\"description\":\"メタデータで報告されるリソースのピクセル単位の高さ。\"}}},\"play_url\":{\"type\":\"object\",\"description\":\"音楽または音のトラックの再生リソース。\",\"properties\":{\"uri\":{\"type\":\"string\",\"description\":\"Douyinが報告するリソース識別子。\"},\"url_list\":{\"type\":\"array\",\"description\":\"リソースのための提供されたURL。\",\"items\":{\"type\":\"string\",\"description\":\"リソースのための提供されたURL。\"}}}}}}}},\"related_word_list\":{\"type\":\"array\",\"description\":\"カードに関連検索語が含まれる場合の推奨関連検索語。\",\"items\":{\"type\":\"object\",\"description\":\"一つの関連検索提案。\",\"properties\":{\"related_word\":{\"type\":\"string\",\"description\":\"推奨関連検索語。\"}}}}}}}}},\"business_config\":{\"type\":\"object\",\"description\":\"ページングとクエリ情報。\",\"properties\":{\"keyword\":{\"type\":\"string\",\"description\":\"この検索に関するキーワードの報告値。\"},\"card_count\":{\"type\":\"integer\",\"description\":\"結果ページのカード数（報告値）。\"},\"has_more\":{\"type\":[\"integer\",\"string\"],\"description\":\"このフラグが0の場合、検索IDがまだ存在している場合を含め、停止する。結果終了応答にはページングフラグのみが含まれる場合がある。\"},\"next_page\":{\"type\":\"object\",\"description\":\"提供された場合の続行情報。\",\"properties\":{\"search_id\":{\"type\":\"string\",\"description\":\"次のページの検索 ID。searchId にそのまま指定し、page を一つ進めます。キーワードとフィルターは変更しません。連続するページで同じ検索 ID が返る場合があります。\"}}}}},\"status_code\":{\"type\":[\"number\",\"string\"],\"description\":\"提供された場合のDouyin検索ステータスコード。\"}}}}},\"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-video/v4\"")' />

<p>キーワードでDouyin（TikTok China）動画を検索し、ソート、公開時間、長さ、ページフィルターを使用します。後のページでは、前の検索IDが必要です。コンテンツの発見とトレンドの研究をサポートするために使用します。</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>sortType</code> | query | <code>string</code> | いいえ | <code>_0</code> | 検索結果のソート基準。<br /><br><br>利用可能値：<br /><br>- <code>_0</code>: 一般<br /><br>- <code>_1</code>: より多くのいいね<br /><br>- <code>_2</code>: 最新 |
| <code>publishTime</code> | query | <code>string</code> | いいえ | <code>_0</code> | 動画の公開時間範囲でフィルタリング。<br /><br><br>利用可能値：<br /><br>- <code>_0</code>: 制限なし<br /><br>- <code>_1</code>: 過去24時間<br /><br>- <code>_7</code>: 過去7日間<br /><br>- <code>_180</code>: 過去6ヶ月 |
| <code>duration</code> | query | <code>string</code> | いいえ | <code>_0</code> | 動画の長さでフィルタリング。<br /><br><br>利用可能値：<br /><br>- <code>_0</code>: 制限なし<br /><br>- <code>_1</code>: 1分未満<br /><br>- <code>_2</code>: 1-5分<br /><br>- <code>_3</code>: 5分以上 |
| <code>page</code> | query | <code>integer</code> | いいえ | <code>1</code> | ページ番号（1から始まる）。 |
| <code>searchId</code> | query | <code>string</code> | いいえ | - | 検索 ID。page &gt; 1 のリクエストで必須です。直前のレスポンスの data.business_config.next_page.search_id を渡します。data.business_config.has_more が 0 のときは取得を終了します。 |

</div>

## コードサンプル

::: code-group

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

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

パラメーター:
- token (query): このAPIサービスのアクセストークン。 (必須)
- keyword (query): 検索キーワード。 (必須)
- sortType (query): 検索結果のソート基準。

利用可能値：
- `_0`: 一般
- `_1`: より多くのいいね
- `_2`: 最新
- publishTime (query): 動画の公開時間範囲でフィルタリング。

利用可能値：
- `_0`: 制限なし
- `_1`: 過去24時間
- `_7`: 過去7日間
- `_180`: 過去6ヶ月
- duration (query): 動画の長さでフィルタリング。

利用可能値：
- `_0`: 制限なし
- `_1`: 1分未満
- `_2`: 1-5分
- `_3`: 5分以上
- page (query): ページ番号（1から始まる）。
- searchId (query): 検索 ID。page > 1 のリクエストで必須です。直前のレスポンスの data.business_config.next_page.search_id を渡します。data.business_config.has_more が 0 のときは取得を終了します。

返信形式：実際の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-video/v4?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-video/v4?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-video/v4?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-video/v4?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-video/v4?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/video-search-v4-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> | Douyinキーワードクエリに対する検索結果とページング詳細。 |
| <code>data.business_data</code> | <code>array</code> | 検索結果カード。同じビデオが複数のページに表示される可能性があります。aweme_idを使用してビデオ結果の重複を排除します。 |
| <code>data.business_data[]</code> | <code>object</code> | 検索結果リストで返される一枚のカード。 |
| <code>data.business_data[].data_id</code> | <code>string</code> | 現在のレスポンス内のカードの識別子。 |
| <code>data.business_data[].type</code> | <code>integer</code> | 結果の種類コード。観察された種類には、ビデオ結果の1と関連検索の66667が含まれる。 |
| <code>data.business_data[].data</code> | <code>object</code> | 結果カードの内容。フィールドはカードの種類に依存する。 |
| <code>data.business_data[].data.aweme_info</code> | <code>object</code> | カードにビデオが含まれる場合のDouyinビデオ結果。 |
| <code>data.business_data[].data.aweme_info.aweme_id</code> | <code>string</code> | 安定したDouyinビデオIDが文字列としてエンコードされたもの。この値を使用して、検索ページ全体でビデオを識別する。 |
| <code>data.business_data[].data.aweme_info.group_id</code> | <code>string</code> | 投稿のグループ識別子。 |
| <code>data.business_data[].data.aweme_info.author_user_id</code> | <code>integer</code> | 投稿アカウントの数値ID。 |
| <code>data.business_data[].data.aweme_info.desc</code> | <code>string</code> | Douyinが提供する投稿の説明。 |
| <code>data.business_data[].data.aweme_info.caption</code> | <code>string</code> | Douyinが提供する投稿のキャプション。 |
| <code>data.business_data[].data.aweme_info.item_title</code> | <code>string</code> | 提供されている場合の投稿のタイトル。 |
| <code>data.business_data[].data.aweme_info.preview_title</code> | <code>string</code> | 投稿プレビューのタイトル。 |
| <code>data.business_data[].data.aweme_info.create_time</code> | <code>integer</code> | ビデオの公開時間、Unixタイムスタンプで秒単位。 |
| <code>data.business_data[].data.aweme_info.duration</code> | <code>integer</code> | ビデオの持続時間、ミリ秒単位。 |
| <code>data.business_data[].data.aweme_info.aweme_type</code> | <code>integer</code> | Douyinが報告する投稿のタイプコード。 |
| <code>data.business_data[].data.aweme_info.media_type</code> | <code>integer</code> | Douyinが報告するメディアタイプコード。 |
| <code>data.business_data[].data.aweme_info.ip_attribution</code> | <code>string</code> | Douyinが報告するIP地域ラベル（利用可能な場合）。 |
| <code>data.business_data[].data.aweme_info.share_url</code> | <code>string</code> | ビデオのDouyin共有URL。 |
| <code>data.business_data[].data.aweme_info.share_info</code> | <code>object</code> | ビデオを共有するためのメタデータ。 |
| <code>data.business_data[].data.aweme_info.share_info.share_url</code> | <code>string</code> | ビデオを共有するためのURL。 |
| <code>data.business_data[].data.aweme_info.share_info.share_title</code> | <code>string</code> | ビデオを共有するためのタイトル。 |
| <code>data.business_data[].data.aweme_info.share_info.share_desc</code> | <code>string</code> | ビデオを共有するための説明。 |
| <code>data.business_data[].data.aweme_info.text_extra</code> | <code>array &#124; null</code> | 投稿テキストに関連するハッシュタグとユーザー言及。このリストはnullの場合もある。 |
| <code>data.business_data[].data.aweme_info.text_extra[]</code> | <code>object</code> | 一枚のテキストアノテーション。 |
| <code>data.business_data[].data.aweme_info.text_extra[].type</code> | <code>integer</code> | Douyinが報告するアノテーションのタイプコード。 |
| <code>data.business_data[].data.aweme_info.text_extra[].hashtag_id</code> | <code>string</code> | アノテーションがハッシュタグを表す場合のハッシュタグのID。 |
| <code>data.business_data[].data.aweme_info.text_extra[].hashtag_name</code> | <code>string</code> | アノテーションが付いたハッシュタグの名前。 |
| <code>data.business_data[].data.aweme_info.text_extra[].user_id</code> | <code>string</code> | アノテーションでユーザーが言及されている場合のDouyinアカウントID。 |
| <code>data.business_data[].data.aweme_info.text_extra[].sec_uid</code> | <code>string</code> | 言及されたユーザーのための二次的なDouyinアカウントID。 |
| <code>data.business_data[].data.aweme_info.text_extra[].is_commerce</code> | <code>boolean</code> | アノテーションされたハッシュタグがDouyinによって商業的と判断されるかどうか。 |
| <code>data.business_data[].data.aweme_info.cha_list</code> | <code>array &#124; null</code> | 投稿に関連するトピックまたはチャレンジの詳細。このリストはnullの場合もあります。 |
| <code>data.business_data[].data.aweme_info.cha_list[]</code> | <code>object</code> | 一つのトピックまたは課題。 |
| <code>data.business_data[].data.aweme_info.cha_list[].cid</code> | <code>string</code> | DouyinのトピックまたはチャレンジID。 |
| <code>data.business_data[].data.aweme_info.cha_list[].cha_name</code> | <code>string</code> | トピックまたはチャレンジの名前。 |
| <code>data.business_data[].data.aweme_info.cha_list[].desc</code> | <code>string</code> | トピックまたはチャレンジの説明。 |
| <code>data.business_data[].data.aweme_info.cha_list[].is_commerce</code> | <code>boolean</code> | トピックまたはチャレンジがDouyinによって商業的と判断されるかどうか。 |
| <code>data.business_data[].data.aweme_info.author</code> | <code>object</code> | 動画と共に返される著者プロフィール情報。 |
| <code>data.business_data[].data.aweme_info.author.uid</code> | <code>string</code> | 文字列としてエンコードされたDouyinアカウントID。 |
| <code>data.business_data[].data.aweme_info.author.sec_uid</code> | <code>string</code> | ユーザープロフィールエンドポイントで使用される二次的なDouyinアカウント識別子。 |
| <code>data.business_data[].data.aweme_info.author.nickname</code> | <code>string</code> | 著者の表示名。 |
| <code>data.business_data[].data.aweme_info.author.unique_id</code> | <code>string</code> | 利用可能な場合の公開Douyinアカウントハンドル。 |
| <code>data.business_data[].data.aweme_info.author.short_id</code> | <code>string</code> | Douyinが報告する短いアカウント識別子。 |
| <code>data.business_data[].data.aweme_info.author.follower_count</code> | <code>integer</code> | 著者のフォロワー数。 |
| <code>data.business_data[].data.aweme_info.author.is_verified</code> | <code>boolean</code> | Douyinが著者を検証済みとして報告するかどうか。 |
| <code>data.business_data[].data.aweme_info.author.verification_type</code> | <code>integer</code> | 著者に関する検証カテゴリコード。 |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb</code> | <code>object</code> | 著者のアバターサムネイル。 |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.width</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の幅。 |
| <code>data.business_data[].data.aweme_info.author.avatar_thumb.height</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の高さ。 |
| <code>data.business_data[].data.aweme_info.author.avatar_medium</code> | <code>object</code> | 著者のミディアムサイズのアバター。 |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.width</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の幅。 |
| <code>data.business_data[].data.aweme_info.author.avatar_medium.height</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の高さ。 |
| <code>data.business_data[].data.aweme_info.author.avatar_larger</code> | <code>object</code> | 著者の大きなアバター。 |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.width</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の幅。 |
| <code>data.business_data[].data.aweme_info.author.avatar_larger.height</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の高さ。 |
| <code>data.business_data[].data.aweme_info.statistics</code> | <code>object</code> | 動画のエンゲージメント数の報告。 |
| <code>data.business_data[].data.aweme_info.statistics.aweme_id</code> | <code>string</code> | これらの統計情報に関連するDouyin動画ID。 |
| <code>data.business_data[].data.aweme_info.statistics.digg_count</code> | <code>integer</code> | 動画のいいね数（報告値）。 |
| <code>data.business_data[].data.aweme_info.statistics.comment_count</code> | <code>integer</code> | 動画のコメント数（報告値）。 |
| <code>data.business_data[].data.aweme_info.statistics.collect_count</code> | <code>integer</code> | 動画の保存数（報告値）。 |
| <code>data.business_data[].data.aweme_info.statistics.share_count</code> | <code>integer</code> | 動画のシェア数（報告値）。 |
| <code>data.business_data[].data.aweme_info.statistics.forward_count</code> | <code>integer</code> | 応答に含まれる転送数。 |
| <code>data.business_data[].data.aweme_info.statistics.download_count</code> | <code>integer</code> | 動画のダウンロード数（報告値）。 |
| <code>data.business_data[].data.aweme_info.video</code> | <code>object</code> | 動画のメタデータと再生可能なリソース。 |
| <code>data.business_data[].data.aweme_info.video.duration</code> | <code>integer</code> | ビデオの持続時間、ミリ秒単位。 |
| <code>data.business_data[].data.aweme_info.video.width</code> | <code>integer</code> | Douyinが報告する動画の幅（ピクセル）。 |
| <code>data.business_data[].data.aweme_info.video.height</code> | <code>integer</code> | Douyinが報告する動画の高さ（ピクセル）。 |
| <code>data.business_data[].data.aweme_info.video.format</code> | <code>string</code> | Douyinが報告する動画の形式。 |
| <code>data.business_data[].data.aweme_info.video.ratio</code> | <code>string</code> | Douyinが報告する解像度ラベル。 |
| <code>data.business_data[].data.aweme_info.video.has_watermark</code> | <code>boolean</code> | 動画メタデータからのウォーターマークフラグ。 |
| <code>data.business_data[].data.aweme_info.video.play_addr</code> | <code>object</code> | 動画の主要な再生アドレス。 |
| <code>data.business_data[].data.aweme_info.video.play_addr.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.video.play_addr.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.play_addr.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.play_addr.width</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の幅。 |
| <code>data.business_data[].data.aweme_info.video.play_addr.height</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の高さ。 |
| <code>data.business_data[].data.aweme_info.video.play_addr.data_size</code> | <code>integer</code> | メタデータで報告されるリソースファイルのサイズ（バイト）。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264</code> | <code>object</code> | H.264バリアントの提供アドレス。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.width</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の幅。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.height</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の高さ。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_h264.data_size</code> | <code>integer</code> | メタデータで報告されるリソースファイルのサイズ（バイト）。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_265</code> | <code>object</code> | H.265再生フィールドで提供されるアドレス。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.width</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の幅。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.height</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の高さ。 |
| <code>data.business_data[].data.aweme_info.video.play_addr_265.data_size</code> | <code>integer</code> | メタデータで報告されるリソースファイルのサイズ（バイト）。 |
| <code>data.business_data[].data.aweme_info.video.download_addr</code> | <code>object</code> | 動画のダウンロードアドレス。 |
| <code>data.business_data[].data.aweme_info.video.download_addr.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.video.download_addr.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.download_addr.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.download_addr.width</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の幅。 |
| <code>data.business_data[].data.aweme_info.video.download_addr.height</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の高さ。 |
| <code>data.business_data[].data.aweme_info.video.download_addr.data_size</code> | <code>integer</code> | メタデータで報告されるリソースファイルのサイズ（バイト）。 |
| <code>data.business_data[].data.aweme_info.video.cover</code> | <code>object</code> | 動画のカバー画像。 |
| <code>data.business_data[].data.aweme_info.video.cover.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.video.cover.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.cover.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.cover.width</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の幅。 |
| <code>data.business_data[].data.aweme_info.video.cover.height</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の高さ。 |
| <code>data.business_data[].data.aweme_info.video.origin_cover</code> | <code>object</code> | 元のカバーフィールドのカバー画像。 |
| <code>data.business_data[].data.aweme_info.video.origin_cover.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.video.origin_cover.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.origin_cover.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.origin_cover.width</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の幅。 |
| <code>data.business_data[].data.aweme_info.video.origin_cover.height</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の高さ。 |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover</code> | <code>object</code> | 利用可能な場合の動くカバーリソース。 |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.width</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の幅。 |
| <code>data.business_data[].data.aweme_info.video.dynamic_cover.height</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の高さ。 |
| <code>data.business_data[].data.aweme_info.video.animated_cover</code> | <code>object</code> | 利用可能な場合のアニメーションカバーリソース。 |
| <code>data.business_data[].data.aweme_info.video.animated_cover.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.video.animated_cover.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.animated_cover.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate</code> | <code>array</code> | 動画の再生エンコーディングとビットレートメタデータ。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[]</code> | <code>object</code> | ビデオ用の一つの再生エンコーディング。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].bit_rate</code> | <code>integer</code> | エンコーディングのビットレート（ビット/秒）。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].FPS</code> | <code>integer</code> | フレームレート（フレーム/秒）。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].format</code> | <code>string</code> | このエンコーディングのメディア形式の報告。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].gear_name</code> | <code>string</code> | このバリアントに関するエンコーダプリセットラベルの報告値。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].quality_type</code> | <code>integer</code> | このエンコーディングに関する品質カテゴリコードの報告値。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].is_h265</code> | <code>integer</code> | このバリアントに関するH.265エンコーディングフラグの報告値。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].HDR_type</code> | <code>string</code> | エンコーディングに関するHDRカテゴリラベルの返信値。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].HDR_bit</code> | <code>string</code> | エンコーディングに関するHDRビット深度ラベルの返信値。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr</code> | <code>object</code> | このエンコーディングの再生アドレス。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.width</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の幅。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.height</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の高さ。 |
| <code>data.business_data[].data.aweme_info.video.bit_rate[].play_addr.data_size</code> | <code>integer</code> | メタデータで報告されるリソースファイルのサイズ（バイト）。 |
| <code>data.business_data[].data.aweme_info.music</code> | <code>object</code> | ビデオに関連する音楽またはサウンドのメタデータ。 |
| <code>data.business_data[].data.aweme_info.music.id</code> | <code>integer</code> | 数値の音楽ID。JavaScriptで完全な値を保持するために無損失JSONパーサを使用する。 |
| <code>data.business_data[].data.aweme_info.music.id_str</code> | <code>string</code> | 文字列としてエンコードされた音楽ID。 |
| <code>data.business_data[].data.aweme_info.music.mid</code> | <code>string</code> | ミッドフィールドで返される音楽ID。 |
| <code>data.business_data[].data.aweme_info.music.title</code> | <code>string</code> | 音楽または音のトラックのタイトル。 |
| <code>data.business_data[].data.aweme_info.music.author</code> | <code>string</code> | トラックと共に返されるアーティストまたは音の作成者名。 |
| <code>data.business_data[].data.aweme_info.music.album</code> | <code>string</code> | 提供された場合のアルバムタイトル。 |
| <code>data.business_data[].data.aweme_info.music.is_original_sound</code> | <code>boolean</code> | Douyinがトラックをオリジナルサウンドとしてマークするかどうか。 |
| <code>data.business_data[].data.aweme_info.music.cover_thumb</code> | <code>object</code> | 音楽または音のトラックのサムネイルカバー。 |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.width</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の幅。 |
| <code>data.business_data[].data.aweme_info.music.cover_thumb.height</code> | <code>integer</code> | メタデータで報告されるリソースのピクセル単位の高さ。 |
| <code>data.business_data[].data.aweme_info.music.play_url</code> | <code>object</code> | 音楽または音のトラックの再生リソース。 |
| <code>data.business_data[].data.aweme_info.music.play_url.uri</code> | <code>string</code> | Douyinが報告するリソース識別子。 |
| <code>data.business_data[].data.aweme_info.music.play_url.url_list</code> | <code>array</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.aweme_info.music.play_url.url_list[]</code> | <code>string</code> | リソースのための提供されたURL。 |
| <code>data.business_data[].data.related_word_list</code> | <code>array</code> | カードに関連検索語が含まれる場合の推奨関連検索語。 |
| <code>data.business_data[].data.related_word_list[]</code> | <code>object</code> | 一つの関連検索提案。 |
| <code>data.business_data[].data.related_word_list[].related_word</code> | <code>string</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 &#124; string</code> | このフラグが0の場合、検索IDがまだ存在している場合を含め、停止する。結果終了応答にはページングフラグのみが含まれる場合がある。 |
| <code>data.business_config.next_page</code> | <code>object</code> | 提供された場合の続行情報。 |
| <code>data.business_config.next_page.search_id</code> | <code>string</code> | 次のページの検索 ID。searchId にそのまま指定し、page を一つ進めます。キーワードとフィルターは変更しません。連続するページで同じ検索 ID が返る場合があります。 |
| <code>data.status_code</code> | <code>number &#124; string</code> | 提供された場合のDouyin検索ステータスコード。 |

</div>

## レスポンス例

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

