> ## Documentation Index
> Fetch the complete documentation index at: https://docs.keyapi.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 热门 Hashtag 详情

> 获取热门 TikTok Hashtag 的详细数据，包括视频数量、播放趋势和关联热门内容。

<div className="inline-flex items-center gap-2 px-4 py-2 bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg">
  <span className="text-base">🪙</span>
  <span className="text-sm font-medium text-yellow-900 dark:text-yellow-100"><span className="font-semibold">2 credits</span><span className="text-yellow-700 dark:text-yellow-300 ml-1">每次请求</span></span>
</div>

## Copy for AI

<div className="my-6 rounded-xl border border-gray-200 bg-gray-50 p-5 dark:border-gray-800 dark:bg-gray-900/40">
  <div className="min-w-0">
    <p className="text-base font-semibold text-gray-900 dark:text-gray-100">🤖 让 AI 帮你写调用代码</p>
    <p className="mt-1 text-sm text-gray-700 dark:text-gray-300">点击按钮复制一段结构化提示词，可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。</p>
  </div>

  <div className="mt-4">
    <button type="button" className="inline-flex items-center gap-2 rounded-md border border-emerald-300 bg-emerald-50 px-3 py-2 text-sm font-medium text-emerald-800 hover:bg-emerald-100 dark:border-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-100 dark:hover:bg-emerald-900/50" onClick={() => navigator.clipboard.writeText("我想调用 KeyAPI 接口：GET https://api.keyapi.ai/v1/tiktok/trending/hashtag/detail\n\n请帮我编写调用代码，并包含必要的错误处理、参数校验和响应处理逻辑。\n\n接口信息：\n\nEndpoint: GET https://api.keyapi.ai/v1/tiktok/trending/hashtag/detail\n\nDescription: TikTok 的「热门 Hashtag 详情」接口用于根据指定标识查询完整信息，返回基础资料、统计指标以及示例中的扩展字段。可结合接口参数进行筛选或分页查询。\n\nRequired Headers:\n--header 'Authorization: Bearer <YOUR_API_KEY>'\n\nParameters:\n- period (Optional): period 参数. Example: 7\n- region (Optional): 地区或国家代码，例如 US、GB、DE. Example: all_regions\n- hashtag_name (Optional): hashtag_name 参数. Example: ufc324\n\nExample Response:\n{\n  \"code\": 0,\n  \"message\": \"success\",\n  \"data\": {\n    \"info\": {\n      \"hashtag_id\": \"7357697982441422880\",\n      \"hashtag_name\": \"ufc324\",\n      \"video_url\": \"https://www.tiktok.com/tag/ufc324\",\n      \"country_info\": {\n        \"id\": \"ALL\",\n        \"value\": \"ALL\",\n        \"label\": \"ALL\"\n      },\n      \"industry_info\": {\n        \"id\": 28000000000,\n        \"value\": \"Sports & Outdoor\",\n        \"label\": \"label_28000000000\"\n      },\n      \"is_promoted\": false,\n      \"trend\": [\n        {\n          \"time\": 1769472000,\n          \"value\": 1\n        },\n        {\n          \"time\": 1769558400,\n          \"value\": 0.7\n        },\n        {\n          \"time\": 1769644800,\n          \"value\": 0.48\n        },\n        {\n          \"time\": 1769731200,\n          \"value\": 0.31\n        },\n        {\n          \"time\": 1769817600,\n          \"value\": 0.26\n        },\n        {\n          \"time\": 1769904000,\n          \"value\": 0.25\n        },\n        {\n          \"time\": 1769990400,\n          \"value\": 0.3\n        }\n      ],\n      \"publish_cnt\": 12142,\n      \"video_views\": 506402059,\n      \"publish_cnt_all\": 34146,\n      \"video_views_all\": 1289245188,\n      \"longevity\": {\n        \"popular_days\": 0,\n        \"current_popularity\": 0\n      },\n      \"audience_ages\": [\n        {\n          \"age_level\": 3,\n          \"score\": 65\n        },\n        {\n          \"age_level\": 4,\n          \"score\": 23\n        },\n        {\n          \"age_level\": 5,\n          \"score\": 12\n        }\n      ],\n      \"audience_interests\": [\n        {\n          \"interest_info\": {\n            \"id\": \"10058\",\n            \"label\": \"diversify_10058\",\n            \"value\": \"Extreme Sports\"\n          },\n          \"score\": 263\n        },\n        {\n          \"interest_info\": {\n            \"id\": \"10060\",\n            \"label\": \"diversify_10060\",\n            \"value\": \"Sports News\"\n          },\n          \"score\": 254\n        },\n        {\n          \"interest_info\": {\n            \"id\": \"10064\",\n            \"label\": \"diversify_10064\",\n            \"value\": \"Fishing, Hunting & Camping\"\n          },\n          \"score\": 144\n        },\n        {\n          \"interest_info\": {\n            \"id\": \"10059\",\n            \"label\": \"diversify_10059\",\n            \"value\": \"Traditional Sports\"\n          },\n          \"score\": 121\n        },\n        {\n          \"interest_info\": {\n            \"id\": \"10061\",\n            \"label\": \"diversify_10061\",\n            \"value\": \"Fitness\"\n          },\n          \"score\": 121\n        }\n      ],\n      \"audience_countries\": [\n        {\n          \"country_info\": {\n            \"id\": \"1821275\",\n            \"label\": \"MO\",\n            \"value\": \"Macao\"\n          },\n          \"score\": 780\n        },\n        {\n          \"country_info\": {\n            \"id\": \"630336\",\n            \"label\": \"BY\",\n            \"value\": \"Belarus\"\n          },\n          \"score\": 617\n        },\n        {\n          \"country_info\": {\n            \"id\": \"2963597\",\n            \"label\": \"IE\",\n            \"value\": \"Ireland\"\n          },\n          \"score\": 471\n        },\n        {\n          \"country_info\": {\n            \"id\": \"1522867\",\n            \"label\": \"KZ\",\n            \"value\": \"Kazakhstan\"\n          },\n          \"score\": 408\n        },\n        {\n          \"country_info\": {\n            \"id\": \"2186224\",\n            \"label\": \"NZ\",\n            \"value\": \"New Zealand\"\n          },\n          \"score\": 395\n        },\n        {\n          \"country_info\": {\n            \"id\": \"660013\",\n            \"label\": \"FI\",\n            \"value\": \"Finland\"\n          },\n          \"score\": 356\n        },\n        {\n          \"country_info\": {\n            \"id\": \"597427\",\n            \"label\": \"LT\",\n            \"value\": \"Lithuania\"\n          },\n          \"score\": 353\n        },\n        {\n          \"country_info\": {\n            \"id\": \"2077456\",\n            \"label\": \"AU\",\n            \"value\": \"Australia\"\n          },\n          \"score\": 346\n        },\n        {\n          \"country_info\": {\n            \"id\": \"458258\",\n            \"label\": \"LV\",\n            \"value\": \"Latvia\"\n          },\n          \"score\": 340\n        },\n        {\n          \"country_info\": {\n            \"id\": \"3202326\",\n            \"label\": \"HR\",\n            \"value\": \"Croatia\"\n          },\n          \"score\": 314\n        },\n        {\n          \"country_info\": {\n            \"id\": \"2782113\",\n            \"label\": \"AT\",\n            \"value\": \"Austria\"\n          },\n          \"score\": 308\n        }\n      ],\n      \"related_hashtags\": [\n        {\n          \"hashtag_id\": \"1664180092709893\",\n          \"hashtag_name\": \"paddypimblett\",\n          \"video_url\": \"https://www.tiktok.com/tag/paddypimblett\"\n        },\n        {\n          \"hashtag_id\": \"1624672392451077\",\n          \"hashtag_name\": \"justingaethje\",\n          \"video_url\": \"https://www.tiktok.com/tag/justingaethje\"\n        },\n        {\n          \"hashtag_id\": \"1651468147224581\",\n          \"hashtag_name\": \"seanomalley\",\n          \"video_url\": \"https://www.tiktok.com/tag/seanomalley\"\n        },\n        {\n          \"hashtag_id\": \"1661965843527686\",\n          \"hashtag_name\": \"paddythebaddy\",\n          \"video_url\": \"https://www.tiktok.com/tag/paddythebaddy\"\n        },\n        {\n          \"hashtag_id\": \"1644658357349381\",\n          \"hashtag_name\": \"gaethje\",\n          \"video_url\": \"https://www.tiktok.com/tag/gaethje\"\n        }\n      ]\n    }\n  },\n  \"requestId\": \"1cacc4ca-a154-44d4-82de-e994bda411b9\"\n}\n\n请根据以上信息给出可直接运行的示例代码。")}>
      ✨ 复制给 AI
    </button>
  </div>
</div>


## OpenAPI

````yaml zh/tiktok.zh.openapi.json GET /v1/tiktok/trending/hashtag/detail
openapi: 3.0.1
info:
  title: Tiktok API 中文文档
  description: Tiktok API 的中文参考文档，包含接口用途、参数说明、响应状态和示例结构。
  version: 1.0.0
servers:
  - url: https://api.keyapi.ai
    description: Production
security: []
tags:
  - name: TikTok Influencer
  - name: TikTok Shop Creator
  - name: TikTok Shop
  - name: TikTok Content
  - name: TikTok Intelligence
paths:
  /v1/tiktok/trending/hashtag/detail:
    get:
      tags:
        - TikTok 趋势洞察
      summary: 热门 Hashtag 详情
      description: 获取热门 TikTok Hashtag 的详细数据，包括视频数量、播放趋势和关联热门内容。
      operationId: get_api_v3_realtime_trending_popular_hashtag_detail
      parameters:
        - name: period
          in: query
          description: 查询时间范围，可选值：7=近 7 天，30=近 30 天，120=近 120 天，365=近 12 个月，1095=近 3 年。
          required: false
          schema:
            type: string
            example: '7'
            default: '7'
          example: '7'
        - name: region
          in: query
          description: 国家/地区代码；默认值 all_regions 表示全部地区，例如 US。
          required: false
          schema:
            type: string
            example: all_regions
            default: all_regions
          example: all_regions
        - name: hashtag_name
          in: query
          description: 热门 Hashtag 列表中的话题名称。
          required: false
          schema:
            type: string
            example: ufc324
            default: ufc324
          example: ufc324
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                type: object
                properties: {}
                example:
                  code: 0
                  message: success
                  data:
                    info:
                      hashtag_id: '7357697982441422880'
                      hashtag_name: ufc324
                      video_url: https://www.tiktok.com/tag/ufc324
                      country_info:
                        id: ALL
                        value: ALL
                        label: ALL
                      industry_info:
                        id: 28000000000
                        value: Sports & Outdoor
                        label: label_28000000000
                      is_promoted: false
                      trend:
                        - time: 1769472000
                          value: 1
                        - time: 1769558400
                          value: 0.7
                        - time: 1769644800
                          value: 0.48
                        - time: 1769731200
                          value: 0.31
                        - time: 1769817600
                          value: 0.26
                        - time: 1769904000
                          value: 0.25
                        - time: 1769990400
                          value: 0.3
                      publish_cnt: 12142
                      video_views: 506402059
                      publish_cnt_all: 34146
                      video_views_all: 1289245188
                      longevity:
                        popular_days: 0
                        current_popularity: 0
                      audience_ages:
                        - age_level: 3
                          score: 65
                        - age_level: 4
                          score: 23
                        - age_level: 5
                          score: 12
                      audience_interests:
                        - interest_info:
                            id: '10058'
                            label: diversify_10058
                            value: Extreme Sports
                          score: 263
                        - interest_info:
                            id: '10060'
                            label: diversify_10060
                            value: Sports News
                          score: 254
                        - interest_info:
                            id: '10064'
                            label: diversify_10064
                            value: Fishing, Hunting & Camping
                          score: 144
                        - interest_info:
                            id: '10059'
                            label: diversify_10059
                            value: Traditional Sports
                          score: 121
                        - interest_info:
                            id: '10061'
                            label: diversify_10061
                            value: Fitness
                          score: 121
                      audience_countries:
                        - country_info:
                            id: '1821275'
                            label: MO
                            value: Macao
                          score: 780
                        - country_info:
                            id: '630336'
                            label: BY
                            value: Belarus
                          score: 617
                        - country_info:
                            id: '2963597'
                            label: IE
                            value: Ireland
                          score: 471
                        - country_info:
                            id: '1522867'
                            label: KZ
                            value: Kazakhstan
                          score: 408
                        - country_info:
                            id: '2186224'
                            label: NZ
                            value: New Zealand
                          score: 395
                        - country_info:
                            id: '660013'
                            label: FI
                            value: Finland
                          score: 356
                        - country_info:
                            id: '597427'
                            label: LT
                            value: Lithuania
                          score: 353
                        - country_info:
                            id: '2077456'
                            label: AU
                            value: Australia
                          score: 346
                        - country_info:
                            id: '458258'
                            label: LV
                            value: Latvia
                          score: 340
                        - country_info:
                            id: '3202326'
                            label: HR
                            value: Croatia
                          score: 314
                        - country_info:
                            id: '2782113'
                            label: AT
                            value: Austria
                          score: 308
                      related_hashtags:
                        - hashtag_id: '1664180092709893'
                          hashtag_name: paddypimblett
                          video_url: https://www.tiktok.com/tag/paddypimblett
                        - hashtag_id: '1624672392451077'
                          hashtag_name: justingaethje
                          video_url: https://www.tiktok.com/tag/justingaethje
                        - hashtag_id: '1651468147224581'
                          hashtag_name: seanomalley
                          video_url: https://www.tiktok.com/tag/seanomalley
                        - hashtag_id: '1661965843527686'
                          hashtag_name: paddythebaddy
                          video_url: https://www.tiktok.com/tag/paddythebaddy
                        - hashtag_id: '1644658357349381'
                          hashtag_name: gaethje
                          video_url: https://www.tiktok.com/tag/gaethje
                  requestId: 1cacc4ca-a154-44d4-82de-e994bda411b9
        '400':
          description: 请求参数错误，请检查必填字段和参数格式
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 400
                  data: null
                  message: 'Missing required parameter: handle'
        '401':
          description: 鉴权失败，请检查 Authorization Header 中的 Bearer Token 或 API Key 是否有效
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 401
                  data: null
                  message: apiKey is null
        '402':
          description: 账户余额或额度不足
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 402
                  data: null
                  message: apiKey quota is not enough
        '429':
          description: 请求过于频繁，已触发限流
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 429
                  data: null
                  message: qps limit exceeded
        '500':
          description: 服务器内部错误，请稍后重试
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 500
                  data: null
                  message: Internal server error
      deprecated: false
      security:
        - JWT Bearer: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.keyapi.ai/v1/tiktok/trending/hashtag/detail?period=7&region=all_regions&hashtag_name=ufc324' \
              --header 'Authorization: Bearer <YOUR_API_KEY>'
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.get(
                'https://api.keyapi.ai/v1/tiktok/trending/hashtag/detail',
                params={"period": "7", "region": "all_regions", "hashtag_name": "ufc324"},
                headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
            )
            print(response.json())
        - lang: javascript
          label: JavaScript
          source: >-
            const params = new URLSearchParams({"period": "7", "region":
            "all_regions", "hashtag_name": "ufc324"});


            const response = await
            fetch(`https://api.keyapi.ai/v1/tiktok/trending/hashtag/detail?${params}`,
            {
              method: 'GET',
              headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
            });

            const data = await response.json();

            console.log(data);
components:
  securitySchemes:
    JWT Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |-
        接口鉴权凭证。请在请求 Header 中传入 `Authorization: Bearer <YOUR_API_KEY>`。
        可在 [Dashboard](https://keyapi.ai/app/dashboard) 获取你的 API Key。

````