---
title: "抖音创作者市场（Xingtu） クリエイターのホームページビデオ API (V1)"
description: "キーワード、動画タイプ、割り当て、日付、ページフィルターで指定されたクリエイターのDouyin Creator Marketplace (Xingtu)ホームページ動画を一覧表示します。キャンペーン選択前に関連コンテンツをレビューするために使用します。"
lastUpdated: false
aiUsagePrompt: true
---

# 抖音创作者市场（Xingtu） クリエイターのホームページビデオ API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin-xingtu/gw/api/aggregator/get_author_homepage_videos/v1\"")'
  :summary='JSON.parse("\"クリエイターのホームページビデオ (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-creator-marketplace-xingtu/creator-homepage-videos-v1-ja.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"ユーザー認証トークン。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"oAuthorId\",\"in\":\"query\",\"description\":\"著者のユニークなXingtu ID。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"page\",\"in\":\"query\",\"description\":\"ページ番号、1から始まる。\",\"required\":false,\"schema\":{\"type\":\"integer\",\"format\":\"int32\",\"default\":1}},{\"name\":\"keyword\",\"in\":\"query\",\"description\":\"クリエイターのホームページのビデオを検索するために使用されるキーワード。\",\"required\":false,\"schema\":{\"type\":\"string\"}},{\"name\":\"videoType\",\"in\":\"query\",\"description\":\"ホームページのビデオの種類のフィルター。\\n\\n利用可能な値：\\n- `ALL`: すべてのビデオ\\n- `PERSONAL`: 個人ビデオ\\n- `XINGTU`: Xingtuビデオ\",\"required\":false,\"schema\":{\"type\":\"string\",\"default\":\"ALL\",\"description\":\"クリエイターのホームページ動画の種類\",\"enum\":[\"ALL\",\"PERSONAL\",\"XINGTU\"]}},{\"name\":\"onlyAssign\",\"in\":\"query\",\"description\":\"割り当てられたビデオのみを含めるかどうか。`videoType`が`XINGTU`の場合、このオプションが表示されます。\",\"required\":false,\"schema\":{\"type\":\"boolean\",\"default\":false}},{\"name\":\"startDate\",\"in\":\"query\",\"description\":\"公開日の開始日を yyyyMMdd 形式で指定します。Asia/Shanghai の 00:00:00 から対象となります。\",\"required\":false,\"schema\":{\"type\":\"string\"}},{\"name\":\"endDate\",\"in\":\"query\",\"description\":\"公開日の終了日を yyyyMMdd 形式で指定します。Asia/Shanghai の 23:59:59 までが対象です。\",\"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\",\"null\"],\"description\":\"選択されたXingtuクリエイターのホームページ動画とページ情報。\",\"properties\":{\"base_resp\":{\"type\":\"object\",\"description\":\"この要求に対してXingtuが返すステータス情報。\",\"properties\":{\"status_code\":{\"type\":\"integer\",\"description\":\"結果内のXingtuステータスコード。\"},\"status_message\":{\"type\":\"string\",\"description\":\"Xingtuステータスと共に返されるメッセージで、空の場合もあります。\"}}},\"items\":{\"type\":\"array\",\"description\":\"このページで返される動画。空のページの場合は空の配列が返される。\",\"items\":{\"type\":\"object\",\"description\":\"一つの動画エントリ。エントリで利用可能なフィールドのみが返される。\",\"properties\":{\"item_id\":{\"type\":\"string\",\"description\":\"Douyin投稿の識別子で、テキストとして返されます。\"},\"title\":{\"type\":\"string\",\"description\":\"提供されている場合の動画のタイトル。\"},\"video_id\":{\"type\":\"string\",\"description\":\"ビデオアセットの報告された識別子で、テキストとして返されます。\"},\"create_time\":{\"type\":\"string\",\"description\":\"報告された動画の作成日時。秒単位の Unix タイムスタンプを文字列で返します。\"},\"duration\":{\"type\":\"number\",\"description\":\"報告されたビデオの長さが数値として返されます。\"},\"url\":{\"type\":\"string\",\"description\":\"ビデオのシェアリンクが返されます。\"},\"cover_uri\":{\"type\":\"string\",\"description\":\"ビデオのカバー画像URIが返されます。パスである可能性があります。\"},\"content_theme_labels\":{\"type\":\"array\",\"description\":\"動画のトピックラベル。リストは空である可能性がある。\",\"items\":{\"type\":\"string\",\"description\":\"ビデオに関する報告された一つのトピックラベル。\"}},\"watch_cnt\":{\"type\":\"string\",\"description\":\"再生回数が表示テキストとして報告されます。\"},\"like_cnt\":{\"type\":\"string\",\"description\":\"ビデオのいいね数が表示テキストとして報告されます。\"},\"comment_cnt\":{\"type\":\"string\",\"description\":\"ビデオのコメント数が表示テキストとして報告されます。\"},\"finish_rate\":{\"type\":\"number\",\"description\":\"報告されたビデオの完了率が数値として報告されます。\"},\"interact_rate\":{\"type\":\"number\",\"description\":\"報告されたビデオの相互作用率が数値として報告されます。\"}}}},\"pagination\":{\"type\":\"object\",\"description\":\"動画リストのページング情報。\",\"properties\":{\"page\":{\"type\":\"integer\",\"description\":\"リクエストの現在のページ番号。\"},\"limit\":{\"type\":\"integer\",\"description\":\"リクエストのページサイズ。一ページには少ない動画が含まれる可能性がある。\"},\"total_count\":{\"type\":\"integer\",\"description\":\"現在のフィルターによる合計数。空のページの場合、数値は正のままである可能性がある。\"},\"has_more\":{\"type\":\"boolean\",\"description\":\"Xingtuがさらに動画ページを報告するかどうか。\"}}}}}}},\"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-xingtu/gw/api/aggregator/get_author_homepage_videos/v1\"")' />

<p>キーワード、動画タイプ、割り当て、日付、ページフィルターで指定されたクリエイターのDouyin Creator Marketplace (Xingtu)ホームページ動画を一覧表示します。キャンペーン選択前に関連コンテンツをレビューするために使用します。</p>

## パラメータ

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

| 名前 | パラメーターの場所 | タイプ | 必須 | デフォルト | 説明 |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | はい | - | ユーザー認証トークン。 |
| <code>oAuthorId</code> | query | <code>string</code> | はい | - | 著者のユニークなXingtu ID。 |
| <code>page</code> | query | <code>integer</code> | いいえ | <code>1</code> | ページ番号、1から始まる。 |
| <code>keyword</code> | query | <code>string</code> | いいえ | - | クリエイターのホームページのビデオを検索するために使用されるキーワード。 |
| <code>videoType</code> | query | <code>string</code> | いいえ | <code>ALL</code> | ホームページのビデオの種類のフィルター。<br /><br><br>利用可能な値：<br /><br>- <code>ALL</code>: すべてのビデオ<br /><br>- <code>PERSONAL</code>: 個人ビデオ<br /><br>- <code>XINGTU</code>: Xingtuビデオ |
| <code>onlyAssign</code> | query | <code>boolean</code> | いいえ | <code>false</code> | 割り当てられたビデオのみを含めるかどうか。<code>videoType</code>が<code>XINGTU</code>の場合、このオプションが表示されます。 |
| <code>startDate</code> | query | <code>string</code> | いいえ | - | 公開日の開始日を yyyyMMdd 形式で指定します。Asia/Shanghai の 00:00:00 から対象となります。 |
| <code>endDate</code> | query | <code>string</code> | いいえ | - | 公開日の終了日を yyyyMMdd 形式で指定します。Asia/Shanghai の 23:59:59 までが対象です。 |

</div>

## コードサンプル

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/douyin-xingtu/gw/api/aggregator/get_author_homepage_videos/v1?token=YOUR_API_KEY&oAuthorId=VALUE'
```

```text [🤖 AIプロンプト]
私はJustOneAPIの"クリエイターのホームページビデオ (V1)" APIを使用したいです。
基本URL: https://api.justoneapi.com.
APIパス: /api/douyin-xingtu/gw/api/aggregator/get_author_homepage_videos/v1?token=YOUR_API_KEY&oAuthorId=VALUE
APIエンドポイント: BASE_URL + /api/douyin-xingtu/gw/api/aggregator/get_author_homepage_videos/v1?token=YOUR_API_KEY&oAuthorId=VALUE
HTTPメソッド: GET
認証: "token"クエリパラメーターをURLに追加します。
OpenAPI定義: https://docs.justoneapi.com/openapi/douyin-creator-marketplace-xingtu/creator-homepage-videos-v1-ja.json

パラメーター:
- token (query): ユーザー認証トークン。 (必須)
- oAuthorId (query): 著者のユニークなXingtu ID。 (必須)
- page (query): ページ番号、1から始まる。
- keyword (query): クリエイターのホームページのビデオを検索するために使用されるキーワード。
- videoType (query): ホームページのビデオの種類のフィルター。

利用可能な値：
- `ALL`: すべてのビデオ
- `PERSONAL`: 個人ビデオ
- `XINGTU`: Xingtuビデオ
- onlyAssign (query): 割り当てられたビデオのみを含めるかどうか。`videoType`が`XINGTU`の場合、このオプションが表示されます。
- startDate (query): 公開日の開始日を yyyyMMdd 形式で指定します。Asia/Shanghai の 00:00:00 から対象となります。
- endDate (query): 公開日の終了日を yyyyMMdd 形式で指定します。Asia/Shanghai の 23:59:59 までが対象です。

返信形式：実際の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-xingtu/gw/api/aggregator/get_author_homepage_videos/v1?token=YOUR_API_KEY&oAuthorId=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-xingtu/gw/api/aggregator/get_author_homepage_videos/v1?token=YOUR_API_KEY&oAuthorId=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-xingtu/gw/api/aggregator/get_author_homepage_videos/v1?token=YOUR_API_KEY&oAuthorId=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-xingtu/gw/api/aggregator/get_author_homepage_videos/v1?token=YOUR_API_KEY&oAuthorId=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-xingtu/gw/api/aggregator/get_author_homepage_videos/v1?token=YOUR_API_KEY&oAuthorId=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-creator-marketplace-xingtu/creator-homepage-videos-v1-ja.json" target="_blank" style="font-size: 12px; color: var(--vp-c-text-3); text-decoration: none; opacity: 0.8;">[OpenAPI定義 (JSON)]</a>
</div>

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

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

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

| フィールドパス | タイプ | 説明 |
| --- | --- | --- |
| <code>data</code> | <code>object &#124; null</code> | 選択されたXingtuクリエイターのホームページ動画とページ情報。 |
| <code>data.base_resp</code> | <code>object</code> | この要求に対してXingtuが返すステータス情報。 |
| <code>data.base_resp.status_code</code> | <code>integer</code> | 結果内のXingtuステータスコード。 |
| <code>data.base_resp.status_message</code> | <code>string</code> | Xingtuステータスと共に返されるメッセージで、空の場合もあります。 |
| <code>data.items</code> | <code>array</code> | このページで返される動画。空のページの場合は空の配列が返される。 |
| <code>data.items[]</code> | <code>object</code> | 一つの動画エントリ。エントリで利用可能なフィールドのみが返される。 |
| <code>data.items[].item_id</code> | <code>string</code> | Douyin投稿の識別子で、テキストとして返されます。 |
| <code>data.items[].title</code> | <code>string</code> | 提供されている場合の動画のタイトル。 |
| <code>data.items[].video_id</code> | <code>string</code> | ビデオアセットの報告された識別子で、テキストとして返されます。 |
| <code>data.items[].create_time</code> | <code>string</code> | 報告された動画の作成日時。秒単位の Unix タイムスタンプを文字列で返します。 |
| <code>data.items[].duration</code> | <code>number</code> | 報告されたビデオの長さが数値として返されます。 |
| <code>data.items[].url</code> | <code>string</code> | ビデオのシェアリンクが返されます。 |
| <code>data.items[].cover_uri</code> | <code>string</code> | ビデオのカバー画像URIが返されます。パスである可能性があります。 |
| <code>data.items[].content_theme_labels</code> | <code>array</code> | 動画のトピックラベル。リストは空である可能性がある。 |
| <code>data.items[].content_theme_labels[]</code> | <code>string</code> | ビデオに関する報告された一つのトピックラベル。 |
| <code>data.items[].watch_cnt</code> | <code>string</code> | 再生回数が表示テキストとして報告されます。 |
| <code>data.items[].like_cnt</code> | <code>string</code> | ビデオのいいね数が表示テキストとして報告されます。 |
| <code>data.items[].comment_cnt</code> | <code>string</code> | ビデオのコメント数が表示テキストとして報告されます。 |
| <code>data.items[].finish_rate</code> | <code>number</code> | 報告されたビデオの完了率が数値として報告されます。 |
| <code>data.items[].interact_rate</code> | <code>number</code> | 報告されたビデオの相互作用率が数値として報告されます。 |
| <code>data.pagination</code> | <code>object</code> | 動画リストのページング情報。 |
| <code>data.pagination.page</code> | <code>integer</code> | リクエストの現在のページ番号。 |
| <code>data.pagination.limit</code> | <code>integer</code> | リクエストのページサイズ。一ページには少ない動画が含まれる可能性がある。 |
| <code>data.pagination.total_count</code> | <code>integer</code> | 現在のフィルターによる合計数。空のページの場合、数値は正のままである可能性がある。 |
| <code>data.pagination.has_more</code> | <code>boolean</code> | Xingtuがさらに動画ページを報告するかどうか。 |

</div>

## レスポンス例

<ApiExampleSection :api='JSON.parse("\"/api/douyin-xingtu/gw/api/aggregator/get_author_homepage_videos/v1\"")' />

