> ## 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.

# 视频趋势-EchoTik

> 通过视频video_id，获取视频历史趋势快照，最多支持过去180天。
注：这个主要是EchoTik采集收录到的趋势， 如需更多完整互动趋势数据，可以使用实时视频互动趋势接口（最近14天互动快照）。

🪙
1 credit每次请求

## Copy for AI

🤖 让 AI 帮你写调用代码点击按钮复制一段结构化提示词，可直接交给 ChatGPT、Claude 或其他 AI 助手生成接口调用代码。

✨ 复制给 AI


## OpenAPI

````yaml zh/tiktok.zh.openapi.json GET /v1/tiktok/video/trends/analytics
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 达人
  - name: TikTok 店铺
  - name: TikTok 内容数据
  - name: TikTok 趋势洞察
paths:
  /v1/tiktok/video/trends/analytics:
    get:
      tags:
        - TikTok 内容数据
      summary: 视频趋势-EchoTik
      description: |-
        通过视频video_id，获取视频历史趋势快照，最多支持过去180天。
        注：这个主要是EchoTik采集收录到的趋势， 如需更多完整互动趋势数据，可以使用实时视频互动趋势接口（最近14天互动快照）。
      operationId: get_api_v3_echotik_video_trend
      parameters:
        - name: video_id
          in: query
          required: true
          schema:
            type: string
          description: 视频唯一 ID。
        - name: start_date
          in: query
          description: 时间范围筛选，格式为 yyyy-MM-dd。
          required: true
          schema:
            type: string
        - name: end_date
          in: query
          description: 时间范围筛选，格式为 yyyy-MM-dd。
          required: true
          schema:
            type: string
        - name: page_num
          in: query
          description: 页码，从 1 开始，最大支持 100000。
          required: true
          schema:
            type: integer
        - name: page_size
          in: query
          description: 每页返回数量，最大值为 10。
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: 请求成功
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        dt:
                          type: string
                          title: time
                        total_comments_cnt:
                          type: integer
                        total_digg_cnt:
                          type: integer
                          title: Total likes
                        total_favorites_cnt:
                          type: integer
                        total_shares_cnt:
                          type: integer
                        total_video_sale_cnt:
                          type: string
                          title: Sales (estimated)
                        total_video_sale_gmv_amt:
                          type: string
                          title: Sales GMV (estimated)
                        total_views_cnt:
                          type: integer
                        video_id:
                          type: string
                  requestId:
                    type: string
                required:
                  - code
                  - message
                  - data
                  - requestId
              example:
                code: 0
                message: success
                data:
                  - dt: '2025-10-14'
                    total_comments_cnt: 0
                    total_digg_cnt: 24
                    total_favorites_cnt: 5
                    total_shares_cnt: 2
                    total_video_sale_cnt: '1.00'
                    total_video_sale_gmv_amt: '7.99'
                    total_views_cnt: 3122
                    video_id: '7560175324038728973'
                requestId: 8a7b66ec-eb5c-447f-8f0e-4c23c6a98335
        '400':
          $ref: '#/components/responses/400'
        '401':
          $ref: '#/components/responses/401'
        '402':
          $ref: '#/components/responses/402'
        '429':
          $ref: '#/components/responses/429'
        '500':
          $ref: '#/components/responses/500'
      deprecated: false
      security:
        - JWT Bearer: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.keyapi.ai/v1/tiktok/video/trends/analytics' \
              --header 'Authorization: Bearer <YOUR_API_KEY>'
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.get(
                'https://api.keyapi.ai/v1/tiktok/video/trends/analytics',
                params={},
                headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
            )
            print(response.json())
        - lang: javascript
          label: JavaScript
          source: >-
            const response = await
            fetch('https://api.keyapi.ai/v1/tiktok/video/trends/analytics',
              {
                method: 'GET',
                headers: { 'Authorization': 'Bearer <YOUR_API_KEY>' }
              }
            );

            const data = await response.json();

            console.log(data);
components:
  responses:
    '400':
      description: Bad Request
      content:
        application/json:
          schema:
            type: object
            example:
              code: 400
              data: null
              message: 'Missing required parameter: handle'
    '401':
      description: Unauthorized
      content:
        application/json:
          schema:
            type: object
            example:
              code: 401
              data: null
              message: apiKey is null
    '402':
      description: Payment Required
      content:
        application/json:
          schema:
            type: object
            example:
              code: 402
              data: null
              message: apiKey quota is not enough
    '429':
      description: Too Many Requests
      content:
        application/json:
          schema:
            type: object
            example:
              code: 429
              data: null
              message: qps limit exceeded
    '500':
      description: Internal Server Error
      content:
        application/json:
          schema:
            type: object
            example:
              code: 500
              data: null
              message: Internal server error
  securitySchemes:
    JWT Bearer:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |-
        接口鉴权凭证。请在请求 Header 中传入 `Authorization: Bearer <YOUR_API_KEY>`。
        可在 [Dashboard](https://keyapi.ai/app/dashboard) 获取你的 API Key。

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.