---
title: "抖音指數創作指南 API (V1)"
description: "從抖音創作者中心創作指南中獲取選定的排名、內容生產報告、內容消費報告或發佈日曆。使用內容垂類和已發佈的報告日期來研究熱門關鍵詞、話題、視頻和受衆趨勢。"
aiUsagePrompt: true
---

# 抖音指數創作指南 API \(V1\)

<ApiTester
  method="GET"
  :path='JSON.parse("\"/api/douyin-index/get-creation-guide/v1\"")'
  :summary='JSON.parse("\"創作指南 (V1)\"")'
  openapiDefinitionUrl="https://docs.justoneapi.com/openapi/douyin-index/creation-guide-v1-zh-hant.json"
  openapiVersion="3.1.0"
  :parameters='JSON.parse("[{\"name\":\"token\",\"in\":\"query\",\"description\":\"此API服務的鑑權令牌。\",\"required\":true,\"schema\":{\"type\":\"string\"}},{\"name\":\"analysisType\",\"in\":\"query\",\"description\":\"創作指南分析標籤頁。\\n\\n可用值：\\n- `CREATIVITY`：創意洞察與排名\\n- `PRODUCTION`：內容生產分析\\n- `CONSUMPTION`：內容消費分析\",\"required\":true,\"schema\":{\"type\":\"string\",\"description\":\"創作指南中的分析標籤頁\",\"enum\":[\"CREATIVITY\",\"PRODUCTION\",\"CONSUMPTION\"]}},{\"name\":\"dataType\",\"in\":\"query\",\"description\":\"所選標籤頁中的一個資料集。對於創意洞察排名，請選擇 KEYWORDS、TOPICS 或 VIDEOS。\\n\\n可用值：\\n- `CONTENT_DATES`：關鍵詞和話題排名以及生產和消費報告的發佈日曆\\n- `VIDEO_DATES`：熱門視頻排名的發佈日曆。與 CREATIVITY 搭配使用\\n- `KEYWORDS`：熱門關鍵詞。與 CREATIVITY 搭配使用\\n- `TOPICS`：熱門話題。與 CREATIVITY 搭配使用\\n- `VIDEOS`：熱門視頻。與 CREATIVITY 搭配使用\\n- `PUBLISH_TREND`：內容發佈趨勢。與 PRODUCTION 搭配使用\\n- `AUTHOR_PORTRAIT`：創作者畫像分佈。與 PRODUCTION 搭配使用\\n- `VIDEO_DURATION`：按視頻時長劃分的內容分享率、互動率和完播率。與 PRODUCTION 或 CONSUMPTION 搭配使用\\n- `CONSUME_TREND`：內容供需趨勢。與 CONSUMPTION 搭配使用\\n- `INTERACT_TREND`：內容互動趨勢。與 CONSUMPTION 搭配使用\\n- `CONSUMER_PORTRAIT`：觀看和互動受衆分佈。與 CONSUMPTION 搭配使用\",\"required\":true,\"schema\":{\"type\":\"string\",\"description\":\"每次請求一個報告、排名或發佈日曆\",\"enum\":[\"CONTENT_DATES\",\"VIDEO_DATES\",\"KEYWORDS\",\"TOPICS\",\"VIDEOS\",\"PUBLISH_TREND\",\"AUTHOR_PORTRAIT\",\"VIDEO_DURATION\",\"CONSUME_TREND\",\"INTERACT_TREND\",\"CONSUMER_PORTRAIT\"]}},{\"name\":\"vertical\",\"in\":\"query\",\"description\":\"內容垂類。排名和報告必需。發佈日曆可省略。\\n\\n可用值：\\n- `DRAMA`：虛構故事和戲劇\\n- `CELEBRITIES`：名人\\n- `MUSIC`：音樂\\n- `ANIME_COMICS`：動漫、漫畫及相關粉絲文化\\n- `GAMING`：遊戲\\n- `CURRENT_AFFAIRS`：社會與時事\\n- `DANCE`：舞蹈\\n- `RURAL_LIFE`：農業、農村和鄉村生活\\n- `TECHNOLOGY`：科學與技術\\n- `FINANCE`：商業與財經\\n- `PARENTING`：母嬰與育兒\\n- `LIFESTYLE_HOME`：生活方式與家居\\n- `HEALTH`：醫療與健康\\n- `RELATIONSHIPS`：情感與心理健康\\n- `CULTURE`：文化\\n- `CAREERS`：職業與職場\\n- `EDUCATION`：教育與校園生活\\n- `PHOTOGRAPHY`：攝影與攝像\\n- `FOOD`：美食與烹飪\\n- `TRAVEL`：旅行\\n- `FASHION`：時尚\\n- `SPORTS`：體育\\n- `ENTERTAINMENT`：休閒娛樂\\n- `AUTOMOTIVE`：汽車與汽車行業\",\"required\":false,\"schema\":{\"type\":\"string\",\"description\":\"抖音創作者中心的內容垂類\",\"enum\":[\"DRAMA\",\"CELEBRITIES\",\"MUSIC\",\"ANIME_COMICS\",\"GAMING\",\"CURRENT_AFFAIRS\",\"DANCE\",\"RURAL_LIFE\",\"TECHNOLOGY\",\"FINANCE\",\"PARENTING\",\"LIFESTYLE_HOME\",\"HEALTH\",\"RELATIONSHIPS\",\"CULTURE\",\"CAREERS\",\"EDUCATION\",\"PHOTOGRAPHY\",\"FOOD\",\"TRAVEL\",\"FASHION\",\"SPORTS\",\"ENTERTAINMENT\",\"AUTOMOTIVE\"]}},{\"name\":\"period\",\"in\":\"query\",\"description\":\"排名可選擇 ONE_DAY、THREE_DAYS 或 WEEK。畫像和視頻時長報告可選擇 WEEK 或 MONTH。趨勢報告和發佈日曆可省略。\\n\\n可用值：\\n- `ONE_DAY`：一個已發佈日。僅用於排名\\n- `THREE_DAYS`：截至指定發佈日的三天。僅用於排名\\n- `WEEK`：以週日結束的一個報告周\\n- `MONTH`：一個自然月。僅用於畫像和視頻時長報告\",\"required\":false,\"schema\":{\"type\":\"string\",\"description\":\"報告週期\",\"enum\":[\"ONE_DAY\",\"THREE_DAYS\",\"WEEK\",\"MONTH\"]}},{\"name\":\"startDate\",\"in\":\"query\",\"description\":\"中國時間（UTC+8）的起始日期（含），格式為 YYYY-MM-DD。發佈趨勢、供需趨勢和互動趨勢必需。其他資料類型可省略。\",\"required\":false,\"schema\":{\"type\":\"string\",\"format\":\"date\"}},{\"name\":\"endDate\",\"in\":\"query\",\"description\":\"中國時間（UTC+8）的結束日期（含），格式為 YYYY-MM-DD。排名和報告必需。對於 WEEK 使用已發佈的週日，對於 MONTH 使用已發佈的月末。發佈日曆可省略。\",\"required\":false,\"schema\":{\"type\":\"string\",\"format\":\"date\"}}]")'
  :requestBody='JSON.parse("null")'
  :responses='JSON.parse("{\"200\":{\"description\":\"好的\",\"content\":{\"application/json\":{\"schema\":{\"if\":{\"properties\":{\"code\":{\"const\":0}},\"required\":[\"code\"]},\"then\":{\"properties\":{\"data\":{\"type\":\"object\",\"description\":\"一個創作指南結果。返回的欄位取決於請求的 dataType。\",\"properties\":{\"day\":{\"type\":\"string\",\"description\":\"內容報告以及關鍵詞或話題排名的最新發布日，格式為 YYYYMMDD。\"},\"week\":{\"type\":\"string\",\"description\":\"內容報告以及關鍵詞或話題排名的最新發布周結束日期，格式為 YYYYMMDD。\"},\"month\":{\"type\":\"string\",\"description\":\"內容報告的最新發布月結束日期，格式為 YYYYMMDD。\"},\"earliest_week\":{\"type\":\"string\",\"description\":\"最早可用的內容報告周結束日期，格式為 YYYYMMDD。\"},\"latest_day\":{\"type\":\"string\",\"description\":\"熱門視頻排名的最新發布日，格式為 YYYYMMDD。\"},\"start_week\":{\"type\":\"string\",\"description\":\"最早可用的視頻排名周結束日期，格式為 YYYYMMDD。\"},\"end_week\":{\"type\":\"string\",\"description\":\"最新可用視頻排名周的結束日期，格式為YYYYMMDD。\"},\"keyword_list\":{\"type\":\"array\",\"description\":\"所選垂直領域和時間段的熱門關鍵詞。\",\"items\":{\"type\":\"object\",\"description\":\"一個熱門關鍵詞。\",\"properties\":{\"keyword\":{\"type\":\"string\",\"description\":\"關鍵詞文本。\"},\"cnt\":{\"type\":\"string\",\"description\":\"與該關鍵詞關聯的視頻數量，以字符串表示。\"},\"is_hot\":{\"type\":\"boolean\",\"description\":\"抖音返回的熱門關鍵詞指標。\"},\"index\":{\"type\":\"string\",\"description\":\"綜合指數，以字符串表示。\"},\"search_index\":{\"type\":\"string\",\"description\":\"搜索指數，以字符串表示。\"}}}},\"topic_list\":{\"type\":\"array\",\"description\":\"所選垂直領域和時間段的熱門話題。\",\"items\":{\"type\":\"object\",\"description\":\"一個熱門話題。\",\"properties\":{\"id\":{\"type\":\"string\",\"description\":\"抖音話題標識符。\"},\"name\":{\"type\":\"string\",\"description\":\"話題名稱。\"},\"index\":{\"type\":\"string\",\"description\":\"話題指數，以字符串表示。\"},\"item_cnt\":{\"type\":\"string\",\"description\":\"投稿數量，以字符串表示。\"},\"vv\":{\"type\":\"string\",\"description\":\"播放量，以字符串表示。\"},\"digg_cnt\":{\"type\":\"string\",\"description\":\"點贊數，以字符串表示。\"},\"item_list\":{\"type\":\"array\",\"description\":\"相關條目（如有）。\",\"items\":{}}}}},\"video_infos\":{\"type\":\"array\",\"description\":\"所選垂直領域和時間段的熱門視頻。\",\"items\":{\"type\":\"object\",\"description\":\"榜單中的一個視頻。\",\"properties\":{\"item_id\":{\"type\":\"string\",\"description\":\"抖音視頻標識符。\"},\"author_fans\":{\"type\":\"string\",\"description\":\"創作者粉絲數，以字符串表示。\"},\"index\":{\"type\":\"string\",\"description\":\"視頻指數，以字符串表示。\"},\"like_cnt\":{\"type\":\"string\",\"description\":\"點贊數，以字符串表示。\"},\"seq\":{\"type\":\"string\",\"description\":\"在排名中的位置，以字符串表示。\"},\"video_title\":{\"type\":\"string\",\"description\":\"視頻標題。\"},\"author\":{\"type\":\"string\",\"description\":\"達人展示名稱。\"},\"comment_cnt\":{\"type\":\"string\",\"description\":\"評論數，以字符串表示。\"},\"forward_cnt\":{\"type\":\"string\",\"description\":\"分享數，以字符串表示。\"},\"thumbnail\":{\"type\":\"string\",\"description\":\"視頻縮略圖地址。\"},\"avatar_url\":{\"type\":\"string\",\"description\":\"創作者頭像 URL。\"},\"status\":{\"type\":\"string\",\"description\":\"視頻狀態值。\"},\"play_cnt\":{\"type\":\"string\",\"description\":\"播放量，以字符串表示。\"},\"author_id\":{\"type\":\"string\",\"description\":\"抖音創作者標識符。\"}}}},\"page_resp\":{\"type\":\"object\",\"description\":\"排名結果數量。\",\"properties\":{\"total_num\":{\"type\":\"string\",\"description\":\"視頻排名報告的總數，以字符串表示。\"}}},\"author_list\":{\"type\":\"array\",\"description\":\"內容創作者的趨勢序列。\",\"items\":{\"type\":\"object\",\"description\":\"趨勢中的一天。\",\"properties\":{\"date\":{\"type\":\"string\",\"description\":\"報告日期，格式為YYYYMMDD。\"},\"rate\":{\"type\":\"number\",\"description\":\"該趨勢點的值。\"}}}},\"item_list\":{\"type\":\"array\",\"description\":\"已發佈內容的趨勢序列。\",\"items\":{\"type\":\"object\",\"description\":\"趨勢中的一天。\",\"properties\":{\"date\":{\"type\":\"string\",\"description\":\"報告日期，格式為YYYYMMDD。\"},\"rate\":{\"type\":\"number\",\"description\":\"該趨勢點的值。\"}}}},\"supply_trend\":{\"type\":\"array\",\"description\":\"內容供給的趨勢序列。\",\"items\":{\"type\":\"object\",\"description\":\"趨勢中的一天。\",\"properties\":{\"date\":{\"type\":\"string\",\"description\":\"報告日期，格式為YYYYMMDD。\"},\"rate\":{\"type\":\"number\",\"description\":\"該趨勢點的值。\"}}}},\"consume_trend\":{\"type\":\"object\",\"description\":\"內容消費趨勢及關聯熱門條目。\",\"properties\":{\"rate_list\":{\"type\":\"array\",\"description\":\"所選時間段返回的時間序列。\",\"items\":{\"type\":\"object\",\"description\":\"一個報告的觀測值。\"}},\"top_list\":{\"type\":\"array\",\"description\":\"隨趨勢返回的熱門條目。\",\"items\":{}}}},\"interact_trend\":{\"type\":\"object\",\"description\":\"內容互動趨勢及關聯熱門條目。\",\"properties\":{\"rate_list\":{\"type\":\"array\",\"description\":\"所選時間段返回的時間序列。\",\"items\":{\"type\":\"object\",\"description\":\"一個報告的觀測值。\"}},\"top_list\":{\"type\":\"array\",\"description\":\"隨趨勢返回的熱門條目。\",\"items\":{}}}},\"rate_list\":{\"type\":\"array\",\"description\":\"按視頻時長分組的統計資料。\",\"items\":{\"type\":\"object\",\"description\":\"一個視頻時長分組。\",\"properties\":{\"duration\":{\"type\":\"string\",\"description\":\"視頻時長分組的標籤。\"},\"content_rate\":{\"type\":\"number\",\"description\":\"該時長分組中的內容佔比。\"},\"interaction_rate\":{\"type\":\"number\",\"description\":\"該時長分組中視頻的互動率。\"},\"finish_rate\":{\"type\":\"number\",\"description\":\"該時長分組中視頻的完播率。\"},\"top_items_list\":{\"type\":\"array\",\"description\":\"該時長的熱門視頻分組（如有）。\",\"items\":{}}}}},\"data\":{\"type\":\"array\",\"description\":\"所選垂直領域和週期的創作者畫像分佈。\",\"items\":{\"type\":\"object\",\"description\":\"受衆或創作者畫像中的一個屬性。\",\"properties\":{\"name_en\":{\"type\":\"string\",\"description\":\"畫像屬性的標識符。\"},\"label_list\":{\"type\":\"array\",\"description\":\"該屬性的分佈條目。\",\"items\":{}}}}},\"play_data\":{\"type\":\"array\",\"description\":\"視頻觀看的受衆畫像分佈。\",\"items\":{\"type\":\"object\",\"description\":\"受衆或創作者畫像中的一個屬性。\",\"properties\":{\"name_en\":{\"type\":\"string\",\"description\":\"畫像屬性的標識符。\"},\"label_list\":{\"type\":\"array\",\"description\":\"該屬性的分佈條目。\",\"items\":{}}}}},\"interaction_data\":{\"type\":\"array\",\"description\":\"視頻互動的受衆畫像分佈。\",\"items\":{\"type\":\"object\",\"description\":\"受衆或創作者畫像中的一個屬性。\",\"properties\":{\"name_en\":{\"type\":\"string\",\"description\":\"畫像屬性的標識符。\"},\"label_list\":{\"type\":\"array\",\"description\":\"該屬性的分佈條目。\",\"items\":{}}}}}}}}},\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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\"},\"nodeType\":{\"type\":\"string\",\"enum\":[\"ARRAY\",\"BINARY\",\"BOOLEAN\",\"MISSING\",\"NULL\",\"NUMBER\",\"OBJECT\",\"POJO\",\"STRING\"]},\"valueNode\":{\"type\":\"boolean\"},\"container\":{\"type\":\"boolean\"},\"missingNode\":{\"type\":\"boolean\"},\"string\":{\"type\":\"boolean\"},\"integralNumber\":{\"type\":\"boolean\"},\"floatingPointNumber\":{\"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-index/get-creation-guide/v1\"")' />

<p>從抖音創作者中心創作指南中獲取選定的排名、內容生產報告、內容消費報告或發佈日曆。使用內容垂類和已發佈的報告日期來研究熱門關鍵詞、話題、視頻和受衆趨勢。</p>

## 使用提示

::: info 使用說明
<p>每次請求僅選擇一個 dataType。使用 CONTENT_DATES 或 VIDEO_DATES 在單獨請求中查詢已發佈日期。每個排名或報告請求都需要明確的 endDate。</p>
:::

## 請求參數

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

| 參數名 | 位置 | 類型 | 必填 | 預設值 | 說明 |
| --- | --- | --- | --- | --- | --- |
| <code>token</code> | query | <code>string</code> | 是 | - | 此API服務的鑑權令牌。 |
| <code>analysisType</code> | query | <code>string</code> | 是 | - | 創作指南分析標籤頁。<br /><br><br>可用值：<br /><br>- <code>CREATIVITY</code>：創意洞察與排名<br /><br>- <code>PRODUCTION</code>：內容生產分析<br /><br>- <code>CONSUMPTION</code>：內容消費分析 |
| <code>dataType</code> | query | <code>string</code> | 是 | - | 所選標籤頁中的一個資料集。對於創意洞察排名，請選擇 KEYWORDS、TOPICS 或 VIDEOS。<br /><br><br>可用值：<br /><br>- <code>CONTENT_DATES</code>：關鍵詞和話題排名以及生產和消費報告的發佈日曆<br /><br>- <code>VIDEO_DATES</code>：熱門視頻排名的發佈日曆。與 CREATIVITY 搭配使用<br /><br>- <code>KEYWORDS</code>：熱門關鍵詞。與 CREATIVITY 搭配使用<br /><br>- <code>TOPICS</code>：熱門話題。與 CREATIVITY 搭配使用<br /><br>- <code>VIDEOS</code>：熱門視頻。與 CREATIVITY 搭配使用<br /><br>- <code>PUBLISH_TREND</code>：內容發佈趨勢。與 PRODUCTION 搭配使用<br /><br>- <code>AUTHOR_PORTRAIT</code>：創作者畫像分佈。與 PRODUCTION 搭配使用<br /><br>- <code>VIDEO_DURATION</code>：按視頻時長劃分的內容分享率、互動率和完播率。與 PRODUCTION 或 CONSUMPTION 搭配使用<br /><br>- <code>CONSUME_TREND</code>：內容供需趨勢。與 CONSUMPTION 搭配使用<br /><br>- <code>INTERACT_TREND</code>：內容互動趨勢。與 CONSUMPTION 搭配使用<br /><br>- <code>CONSUMER_PORTRAIT</code>：觀看和互動受衆分佈。與 CONSUMPTION 搭配使用 |
| <code>vertical</code> | query | <code>string</code> | 否 | - | 內容垂類。排名和報告必需。發佈日曆可省略。<br /><br><br>可用值：<br /><br>- <code>DRAMA</code>：虛構故事和戲劇<br /><br>- <code>CELEBRITIES</code>：名人<br /><br>- <code>MUSIC</code>：音樂<br /><br>- <code>ANIME_COMICS</code>：動漫、漫畫及相關粉絲文化<br /><br>- <code>GAMING</code>：遊戲<br /><br>- <code>CURRENT_AFFAIRS</code>：社會與時事<br /><br>- <code>DANCE</code>：舞蹈<br /><br>- <code>RURAL_LIFE</code>：農業、農村和鄉村生活<br /><br>- <code>TECHNOLOGY</code>：科學與技術<br /><br>- <code>FINANCE</code>：商業與財經<br /><br>- <code>PARENTING</code>：母嬰與育兒<br /><br>- <code>LIFESTYLE_HOME</code>：生活方式與家居<br /><br>- <code>HEALTH</code>：醫療與健康<br /><br>- <code>RELATIONSHIPS</code>：情感與心理健康<br /><br>- <code>CULTURE</code>：文化<br /><br>- <code>CAREERS</code>：職業與職場<br /><br>- <code>EDUCATION</code>：教育與校園生活<br /><br>- <code>PHOTOGRAPHY</code>：攝影與攝像<br /><br>- <code>FOOD</code>：美食與烹飪<br /><br>- <code>TRAVEL</code>：旅行<br /><br>- <code>FASHION</code>：時尚<br /><br>- <code>SPORTS</code>：體育<br /><br>- <code>ENTERTAINMENT</code>：休閒娛樂<br /><br>- <code>AUTOMOTIVE</code>：汽車與汽車行業 |
| <code>period</code> | query | <code>string</code> | 否 | - | 排名可選擇 ONE_DAY、THREE_DAYS 或 WEEK。畫像和視頻時長報告可選擇 WEEK 或 MONTH。趨勢報告和發佈日曆可省略。<br /><br><br>可用值：<br /><br>- <code>ONE_DAY</code>：一個已發佈日。僅用於排名<br /><br>- <code>THREE_DAYS</code>：截至指定發佈日的三天。僅用於排名<br /><br>- <code>WEEK</code>：以週日結束的一個報告周<br /><br>- <code>MONTH</code>：一個自然月。僅用於畫像和視頻時長報告 |
| <code>startDate</code> | query | <code>string</code> | 否 | - | 中國時間（UTC+8）的起始日期（含），格式為 YYYY-MM-DD。發佈趨勢、供需趨勢和互動趨勢必需。其他資料類型可省略。 |
| <code>endDate</code> | query | <code>string</code> | 否 | - | 中國時間（UTC+8）的結束日期（含），格式為 YYYY-MM-DD。排名和報告必需。對於 WEEK 使用已發佈的週日，對於 MONTH 使用已發佈的月末。發佈日曆可省略。 |

</div>

## 程式碼範例

::: code-group

```bash [🐚 cURL]
curl --max-time 120 -X GET 'https://api.justoneapi.com/api/douyin-index/get-creation-guide/v1?token=YOUR_API_KEY&analysisType=CREATIVITY&dataType=CONTENT_DATES'
```

```text [🤖 AI 提示詞]
我想使用 JustOneAPI 提供的“創作指南 (V1)”接口。
接入地址: https://api.justoneapi.com。
接口路徑: /api/douyin-index/get-creation-guide/v1?token=YOUR_API_KEY&analysisType=CREATIVITY&dataType=CONTENT_DATES
接口地址: BASE_URL + /api/douyin-index/get-creation-guide/v1?token=YOUR_API_KEY&analysisType=CREATIVITY&dataType=CONTENT_DATES
HTTP 方法: GET
身份驗證: 在 URL 中傳入 token 查詢參數。
OpenAPI 定義: https://docs.justoneapi.com/openapi/douyin-index/creation-guide-v1-zh-hant.json

請求參數說明:
- token (query): 此API服務的鑑權令牌。 (必填)
- analysisType (query): 創作指南分析標籤頁。

可用值：
- `CREATIVITY`：創意洞察與排名
- `PRODUCTION`：內容生產分析
- `CONSUMPTION`：內容消費分析 (必填)
- dataType (query): 所選標籤頁中的一個資料集。對於創意洞察排名，請選擇 KEYWORDS、TOPICS 或 VIDEOS。

可用值：
- `CONTENT_DATES`：關鍵詞和話題排名以及生產和消費報告的發佈日曆
- `VIDEO_DATES`：熱門視頻排名的發佈日曆。與 CREATIVITY 搭配使用
- `KEYWORDS`：熱門關鍵詞。與 CREATIVITY 搭配使用
- `TOPICS`：熱門話題。與 CREATIVITY 搭配使用
- `VIDEOS`：熱門視頻。與 CREATIVITY 搭配使用
- `PUBLISH_TREND`：內容發佈趨勢。與 PRODUCTION 搭配使用
- `AUTHOR_PORTRAIT`：創作者畫像分佈。與 PRODUCTION 搭配使用
- `VIDEO_DURATION`：按視頻時長劃分的內容分享率、互動率和完播率。與 PRODUCTION 或 CONSUMPTION 搭配使用
- `CONSUME_TREND`：內容供需趨勢。與 CONSUMPTION 搭配使用
- `INTERACT_TREND`：內容互動趨勢。與 CONSUMPTION 搭配使用
- `CONSUMER_PORTRAIT`：觀看和互動受衆分佈。與 CONSUMPTION 搭配使用 (必填)
- vertical (query): 內容垂類。排名和報告必需。發佈日曆可省略。

可用值：
- `DRAMA`：虛構故事和戲劇
- `CELEBRITIES`：名人
- `MUSIC`：音樂
- `ANIME_COMICS`：動漫、漫畫及相關粉絲文化
- `GAMING`：遊戲
- `CURRENT_AFFAIRS`：社會與時事
- `DANCE`：舞蹈
- `RURAL_LIFE`：農業、農村和鄉村生活
- `TECHNOLOGY`：科學與技術
- `FINANCE`：商業與財經
- `PARENTING`：母嬰與育兒
- `LIFESTYLE_HOME`：生活方式與家居
- `HEALTH`：醫療與健康
- `RELATIONSHIPS`：情感與心理健康
- `CULTURE`：文化
- `CAREERS`：職業與職場
- `EDUCATION`：教育與校園生活
- `PHOTOGRAPHY`：攝影與攝像
- `FOOD`：美食與烹飪
- `TRAVEL`：旅行
- `FASHION`：時尚
- `SPORTS`：體育
- `ENTERTAINMENT`：休閒娛樂
- `AUTOMOTIVE`：汽車與汽車行業
- period (query): 排名可選擇 ONE_DAY、THREE_DAYS 或 WEEK。畫像和視頻時長報告可選擇 WEEK 或 MONTH。趨勢報告和發佈日曆可省略。

可用值：
- `ONE_DAY`：一個已發佈日。僅用於排名
- `THREE_DAYS`：截至指定發佈日的三天。僅用於排名
- `WEEK`：以週日結束的一個報告周
- `MONTH`：一個自然月。僅用於畫像和視頻時長報告
- startDate (query): 中國時間（UTC+8）的起始日期（含），格式為 YYYY-MM-DD。發佈趨勢、供需趨勢和互動趨勢必需。其他資料類型可省略。
- endDate (query): 中國時間（UTC+8）的結束日期（含），格式為 YYYY-MM-DD。排名和報告必需。對於 WEEK 使用已發佈的週日，對於 MONTH 使用已發佈的月末。發佈日曆可省略。

返回格式: 請根據實際 Content-Type 安全處理 JSON 或文本回應。

回應處理與錯誤代碼：
1. 需通過返回體中的 "code" 欄位判斷業務結果（code 為 0 表示成功）。
2. 逾時建議：建議將請求逾時時間設置為 120 秒；如果 120 秒偏長，請至少設置為 60 秒，但可能會有少量請求因逾時而未接收到結果。
3. 業務碼說明：
   - 0: 成功
   - 100: Token 無效或已失效
   - 301: 採集失敗，請重試
   - 302: 超出速率限制
   - 303: 超出每日配額
   - 400: 參數錯誤
   - 500: 內部伺服器錯誤
   - 600: 權限不足
   - 601: 帳戶餘額不足
   - 602: TOKEN 限額超限
4. code 601 表示帳戶共享餘額不足。code 602 表示當前 API TOKEN 自身的累計消費上限已達到。TOKEN 限額不是資金劃撥，多個 TOKEN 仍共享同一個帳戶餘額。

請幫我用我擅長的編程語言寫一個腳本來呼叫這個接口，並處理返回結果。
```

```python [🐍 Python]
import requests

BASE_URL = "https://api.justoneapi.com"  # 由 OpenAPI servers 提供

url = BASE_URL + "/api/douyin-index/get-creation-guide/v1?token=YOUR_API_KEY&analysisType=CREATIVITY&dataType=CONTENT_DATES"
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"; // 由 OpenAPI servers 提供
const url = BASE_URL + "/api/douyin-index/get-creation-guide/v1?token=YOUR_API_KEY&analysisType=CREATIVITY&dataType=CONTENT_DATES";

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"; // 由 OpenAPI servers 提供
        final String url = BASE_URL + "/api/douyin-index/get-creation-guide/v1?token=YOUR_API_KEY&analysisType=CREATIVITY&dataType=CONTENT_DATES";

        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" // 由 OpenAPI servers 提供

func main() {
	client := &http.Client{Timeout: 120 * time.Second}
	url := BASE_URL + "/api/douyin-index/get-creation-guide/v1?token=YOUR_API_KEY&analysisType=CREATIVITY&dataType=CONTENT_DATES"
	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'; // 由 OpenAPI servers 提供
$url = $BASE_URL . '/api/douyin-index/get-creation-guide/v1?token=YOUR_API_KEY&analysisType=CREATIVITY&dataType=CONTENT_DATES';

$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-index/creation-guide-v1-zh-hant.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> | 一個創作指南結果。返回的欄位取決於請求的 dataType。 |
| <code>data.day</code> | <code>string</code> | 內容報告以及關鍵詞或話題排名的最新發布日，格式為 YYYYMMDD。 |
| <code>data.week</code> | <code>string</code> | 內容報告以及關鍵詞或話題排名的最新發布周結束日期，格式為 YYYYMMDD。 |
| <code>data.month</code> | <code>string</code> | 內容報告的最新發布月結束日期，格式為 YYYYMMDD。 |
| <code>data.earliest_week</code> | <code>string</code> | 最早可用的內容報告周結束日期，格式為 YYYYMMDD。 |
| <code>data.latest_day</code> | <code>string</code> | 熱門視頻排名的最新發布日，格式為 YYYYMMDD。 |
| <code>data.start_week</code> | <code>string</code> | 最早可用的視頻排名周結束日期，格式為 YYYYMMDD。 |
| <code>data.end_week</code> | <code>string</code> | 最新可用視頻排名周的結束日期，格式為YYYYMMDD。 |
| <code>data.keyword_list</code> | <code>array</code> | 所選垂直領域和時間段的熱門關鍵詞。 |
| <code>data.keyword_list[]</code> | <code>object</code> | 一個熱門關鍵詞。 |
| <code>data.keyword_list[].keyword</code> | <code>string</code> | 關鍵詞文本。 |
| <code>data.keyword_list[].cnt</code> | <code>string</code> | 與該關鍵詞關聯的視頻數量，以字符串表示。 |
| <code>data.keyword_list[].is_hot</code> | <code>boolean</code> | 抖音返回的熱門關鍵詞指標。 |
| <code>data.keyword_list[].index</code> | <code>string</code> | 綜合指數，以字符串表示。 |
| <code>data.keyword_list[].search_index</code> | <code>string</code> | 搜索指數，以字符串表示。 |
| <code>data.topic_list</code> | <code>array</code> | 所選垂直領域和時間段的熱門話題。 |
| <code>data.topic_list[]</code> | <code>object</code> | 一個熱門話題。 |
| <code>data.topic_list[].id</code> | <code>string</code> | 抖音話題標識符。 |
| <code>data.topic_list[].name</code> | <code>string</code> | 話題名稱。 |
| <code>data.topic_list[].index</code> | <code>string</code> | 話題指數，以字符串表示。 |
| <code>data.topic_list[].item_cnt</code> | <code>string</code> | 投稿數量，以字符串表示。 |
| <code>data.topic_list[].vv</code> | <code>string</code> | 播放量，以字符串表示。 |
| <code>data.topic_list[].digg_cnt</code> | <code>string</code> | 點贊數，以字符串表示。 |
| <code>data.topic_list[].item_list</code> | <code>array</code> | 相關條目（如有）。 |
| <code>data.video_infos</code> | <code>array</code> | 所選垂直領域和時間段的熱門視頻。 |
| <code>data.video_infos[]</code> | <code>object</code> | 榜單中的一個視頻。 |
| <code>data.video_infos[].item_id</code> | <code>string</code> | 抖音視頻標識符。 |
| <code>data.video_infos[].author_fans</code> | <code>string</code> | 創作者粉絲數，以字符串表示。 |
| <code>data.video_infos[].index</code> | <code>string</code> | 視頻指數，以字符串表示。 |
| <code>data.video_infos[].like_cnt</code> | <code>string</code> | 點贊數，以字符串表示。 |
| <code>data.video_infos[].seq</code> | <code>string</code> | 在排名中的位置，以字符串表示。 |
| <code>data.video_infos[].video_title</code> | <code>string</code> | 視頻標題。 |
| <code>data.video_infos[].author</code> | <code>string</code> | 達人展示名稱。 |
| <code>data.video_infos[].comment_cnt</code> | <code>string</code> | 評論數，以字符串表示。 |
| <code>data.video_infos[].forward_cnt</code> | <code>string</code> | 分享數，以字符串表示。 |
| <code>data.video_infos[].thumbnail</code> | <code>string</code> | 視頻縮略圖地址。 |
| <code>data.video_infos[].avatar_url</code> | <code>string</code> | 創作者頭像 URL。 |
| <code>data.video_infos[].status</code> | <code>string</code> | 視頻狀態值。 |
| <code>data.video_infos[].play_cnt</code> | <code>string</code> | 播放量，以字符串表示。 |
| <code>data.video_infos[].author_id</code> | <code>string</code> | 抖音創作者標識符。 |
| <code>data.page_resp</code> | <code>object</code> | 排名結果數量。 |
| <code>data.page_resp.total_num</code> | <code>string</code> | 視頻排名報告的總數，以字符串表示。 |
| <code>data.author_list</code> | <code>array</code> | 內容創作者的趨勢序列。 |
| <code>data.author_list[]</code> | <code>object</code> | 趨勢中的一天。 |
| <code>data.author_list[].date</code> | <code>string</code> | 報告日期，格式為YYYYMMDD。 |
| <code>data.author_list[].rate</code> | <code>number</code> | 該趨勢點的值。 |
| <code>data.item_list</code> | <code>array</code> | 已發佈內容的趨勢序列。 |
| <code>data.item_list[]</code> | <code>object</code> | 趨勢中的一天。 |
| <code>data.item_list[].date</code> | <code>string</code> | 報告日期，格式為YYYYMMDD。 |
| <code>data.item_list[].rate</code> | <code>number</code> | 該趨勢點的值。 |
| <code>data.supply_trend</code> | <code>array</code> | 內容供給的趨勢序列。 |
| <code>data.supply_trend[]</code> | <code>object</code> | 趨勢中的一天。 |
| <code>data.supply_trend[].date</code> | <code>string</code> | 報告日期，格式為YYYYMMDD。 |
| <code>data.supply_trend[].rate</code> | <code>number</code> | 該趨勢點的值。 |
| <code>data.consume_trend</code> | <code>object</code> | 內容消費趨勢及關聯熱門條目。 |
| <code>data.consume_trend.rate_list</code> | <code>array</code> | 所選時間段返回的時間序列。 |
| <code>data.consume_trend.rate_list[]</code> | <code>object</code> | 一個報告的觀測值。 |
| <code>data.consume_trend.top_list</code> | <code>array</code> | 隨趨勢返回的熱門條目。 |
| <code>data.interact_trend</code> | <code>object</code> | 內容互動趨勢及關聯熱門條目。 |
| <code>data.interact_trend.rate_list</code> | <code>array</code> | 所選時間段返回的時間序列。 |
| <code>data.interact_trend.rate_list[]</code> | <code>object</code> | 一個報告的觀測值。 |
| <code>data.interact_trend.top_list</code> | <code>array</code> | 隨趨勢返回的熱門條目。 |
| <code>data.rate_list</code> | <code>array</code> | 按視頻時長分組的統計資料。 |
| <code>data.rate_list[]</code> | <code>object</code> | 一個視頻時長分組。 |
| <code>data.rate_list[].duration</code> | <code>string</code> | 視頻時長分組的標籤。 |
| <code>data.rate_list[].content_rate</code> | <code>number</code> | 該時長分組中的內容佔比。 |
| <code>data.rate_list[].interaction_rate</code> | <code>number</code> | 該時長分組中視頻的互動率。 |
| <code>data.rate_list[].finish_rate</code> | <code>number</code> | 該時長分組中視頻的完播率。 |
| <code>data.rate_list[].top_items_list</code> | <code>array</code> | 該時長的熱門視頻分組（如有）。 |
| <code>data.data</code> | <code>array</code> | 所選垂直領域和週期的創作者畫像分佈。 |
| <code>data.data[]</code> | <code>object</code> | 受衆或創作者畫像中的一個屬性。 |
| <code>data.data[].name_en</code> | <code>string</code> | 畫像屬性的標識符。 |
| <code>data.data[].label_list</code> | <code>array</code> | 該屬性的分佈條目。 |
| <code>data.play_data</code> | <code>array</code> | 視頻觀看的受衆畫像分佈。 |
| <code>data.play_data[]</code> | <code>object</code> | 受衆或創作者畫像中的一個屬性。 |
| <code>data.play_data[].name_en</code> | <code>string</code> | 畫像屬性的標識符。 |
| <code>data.play_data[].label_list</code> | <code>array</code> | 該屬性的分佈條目。 |
| <code>data.interaction_data</code> | <code>array</code> | 視頻互動的受衆畫像分佈。 |
| <code>data.interaction_data[]</code> | <code>object</code> | 受衆或創作者畫像中的一個屬性。 |
| <code>data.interaction_data[].name_en</code> | <code>string</code> | 畫像屬性的標識符。 |
| <code>data.interaction_data[].label_list</code> | <code>array</code> | 該屬性的分佈條目。 |

</div>

## 回應示例

<ApiExampleSection :api='JSON.parse("\"/api/douyin-index/get-creation-guide/v1\"")' />

