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

# Live Trend -EchoTik

> Get snapshot trend data for a TikTok live room by room_id. The response includes snapshot time, online users, followers, new followers, sales, GMV, incremental GMV, incremental sales, and total views, making it useful for reviewing live performance over time.

<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">1 credit</span><span className="text-yellow-700 dark:text-yellow-300 ml-1">per request</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">🤖 Why Code When AI Can Do It For You?</p>
    <p className="mt-1 text-sm text-gray-700 dark:text-gray-300">Stop writing code like it's 1970! Let AI do the heavy lifting - click the sparkles to copy a perfectly formatted prompt for ChatGPT, Claude, or your favorite AI assistant.</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("I want to make an API call to https://api.keyapi.ai/v1/tiktok/live/trend/analytics.\n\nPlease help me write code to make this API call and handle the response appropriately. Include error handling and best practices.\n\nHere are the details:\n\nEndpoint: GET https://api.keyapi.ai/v1/tiktok/live/trend/analytics\n\nDescription: Get snapshot trend data for a TikTok live room by room_id. The response includes snapshot time, online users, followers, new followers, sales, GMV, incremental GMV, incremental sales, and total views, making it useful for reviewing live performance over time.\n\nRequired Headers:\n--header 'Authorization: Bearer <YOUR_API_KEY>'\n\nParameters:\n- room_id (Required): Live room ID.. Example: 7655115968440175381\n- page_num (Required): Page number.. Example: 1\n- page_size (Required): Page size.. Example: 10\n\nExample Response:\n{\n  \"code\": 0,\n  \"message\": \"success\",\n  \"data\": [\n    {\n      \"room_id\": \"7655115968440175381\",\n      \"snapshot_time\": 1782355500,\n      \"total_enter_count_cnt\": 46862,\n      \"total_followers_cnt\": 2287429,\n      \"total_followers_incr_cnt\": 0,\n      \"total_sale_cnt\": 16784,\n      \"total_sale_gmv_amt\": 158066,\n      \"total_sale_gmv_incr_amt\": 0,\n      \"total_sale_incr_cnt\": 0,\n      \"total_user_count_cnt\": 1278\n    },\n    {\n      \"room_id\": \"7655115968440175381\",\n      \"snapshot_time\": 1782355800,\n      \"total_enter_count_cnt\": 0,\n      \"total_followers_cnt\": 0,\n      \"total_followers_incr_cnt\": 0,\n      \"total_sale_cnt\": 16784,\n      \"total_sale_gmv_amt\": 158066,\n      \"total_sale_gmv_incr_amt\": 0,\n      \"total_sale_incr_cnt\": 0,\n      \"total_user_count_cnt\": 0\n    },\n    {\n      \"room_id\": \"7655115968440175381\",\n      \"snapshot_time\": 1782356400,\n      \"total_enter_count_cnt\": 51682,\n      \"total_followers_cnt\": 2287474,\n      \"total_followers_incr_cnt\": 45,\n      \"total_sale_cnt\": 16784,\n      \"total_sale_gmv_amt\": 158066,\n      \"total_sale_gmv_incr_amt\": 0,\n      \"total_sale_incr_cnt\": 0,\n      \"total_user_count_cnt\": 703\n    },\n    {\n      \"room_id\": \"7655115968440175381\",\n      \"snapshot_time\": 1782358200,\n      \"total_enter_count_cnt\": 56623,\n      \"total_followers_cnt\": 2287543,\n      \"total_followers_incr_cnt\": 69,\n      \"total_sale_cnt\": 16784,\n      \"total_sale_gmv_amt\": 158066,\n      \"total_sale_gmv_incr_amt\": 0,\n      \"total_sale_incr_cnt\": 0,\n      \"total_user_count_cnt\": 551\n    },\n    {\n      \"room_id\": \"7655115968440175381\",\n      \"snapshot_time\": 1782359100,\n      \"total_enter_count_cnt\": 58775,\n      \"total_followers_cnt\": 2287544,\n      \"total_followers_incr_cnt\": 1,\n      \"total_sale_cnt\": 16784,\n      \"total_sale_gmv_amt\": 158066,\n      \"total_sale_gmv_incr_amt\": 1581,\n      \"total_sale_incr_cnt\": 168,\n      \"total_user_count_cnt\": 586\n    },\n    {\n      \"room_id\": \"7655115968440175381\",\n      \"snapshot_time\": 1782360900,\n      \"total_enter_count_cnt\": 65703,\n      \"total_followers_cnt\": 2287655,\n      \"total_followers_incr_cnt\": 111,\n      \"total_sale_cnt\": 16784,\n      \"total_sale_gmv_amt\": 158066,\n      \"total_sale_gmv_incr_amt\": 0,\n      \"total_sale_incr_cnt\": 0,\n      \"total_user_count_cnt\": 977\n    },\n    {\n      \"room_id\": \"7655115968440175381\",\n      \"snapshot_time\": 1782361800,\n      \"total_enter_count_cnt\": 75022,\n      \"total_followers_cnt\": 2287724,\n      \"total_followers_incr_cnt\": 69,\n      \"total_sale_cnt\": 16784,\n      \"total_sale_gmv_amt\": 158066,\n      \"total_sale_gmv_incr_amt\": 0,\n      \"total_sale_incr_cnt\": 0,\n  ... truncated ...")}>
      <span>✨</span>
      <span>Copy for AI</span>
    </button>
  </div>
</div>


## OpenAPI

````yaml en/tiktok.openapi.json GET /v1/tiktok/live/trend/analytics
openapi: 3.0.1
info:
  title: Tiktok API english documentation
  description: >-
    The english reference documentation of the Tiktok API includes the
    interface's purpose, parameter description, response status, and sample
    structure.
  version: 1.0.0
servers:
  - url: https://api.keyapi.ai
    description: Production
security: []
tags:
  - name: TikTok Influencer
  - name: TikTok Shop
  - name: TikTok Content
  - name: TikTok Intelligence
paths:
  /v1/tiktok/live/trend/analytics:
    get:
      tags:
        - TikTok Content
      summary: Live Trend -EchoTik
      description: >-
        Get snapshot trend data for a TikTok live room by room_id. The response
        includes snapshot time, online users, followers, new followers, sales,
        GMV, incremental GMV, incremental sales, and total views, making it
        useful for reviewing live performance over time.
      parameters:
        - name: room_id
          in: query
          description: Live room ID.
          required: true
          example: '7655115968440175381'
          schema:
            type: string
            example: '7655115968440175381'
        - name: page_num
          in: query
          description: Page number.
          required: true
          example: '1'
          schema:
            type: string
            example: '1'
        - name: page_size
          in: query
          description: Page size.
          required: true
          example: '10'
          schema:
            type: string
            example: '10'
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        room_id:
                          type: string
                        snapshot_time:
                          type: integer
                          description: 快照时间
                        total_enter_count_cnt:
                          type: integer
                          description: 在线人数
                        total_followers_cnt:
                          type: integer
                          description: 总粉丝数
                        total_followers_incr_cnt:
                          type: integer
                          description: 新增粉丝数
                        total_sale_cnt:
                          type: integer
                          description: 总销量
                        total_sale_gmv_amt:
                          type: integer
                          description: 总GMV
                        total_sale_gmv_incr_amt:
                          type: integer
                          description: 新增GMV
                        total_sale_incr_cnt:
                          type: integer
                          description: 新增销量
                        total_user_count_cnt:
                          type: integer
                          description: 累计观看人次
                  requestId:
                    type: string
                required:
                  - code
                  - message
                  - data
                  - requestId
              example:
                code: 0
                message: success
                data:
                  - room_id: '7655115968440175381'
                    snapshot_time: 1782355500
                    total_enter_count_cnt: 46862
                    total_followers_cnt: 2287429
                    total_followers_incr_cnt: 0
                    total_sale_cnt: 16784
                    total_sale_gmv_amt: 158066
                    total_sale_gmv_incr_amt: 0
                    total_sale_incr_cnt: 0
                    total_user_count_cnt: 1278
                  - room_id: '7655115968440175381'
                    snapshot_time: 1782355800
                    total_enter_count_cnt: 0
                    total_followers_cnt: 0
                    total_followers_incr_cnt: 0
                    total_sale_cnt: 16784
                    total_sale_gmv_amt: 158066
                    total_sale_gmv_incr_amt: 0
                    total_sale_incr_cnt: 0
                    total_user_count_cnt: 0
                  - room_id: '7655115968440175381'
                    snapshot_time: 1782356400
                    total_enter_count_cnt: 51682
                    total_followers_cnt: 2287474
                    total_followers_incr_cnt: 45
                    total_sale_cnt: 16784
                    total_sale_gmv_amt: 158066
                    total_sale_gmv_incr_amt: 0
                    total_sale_incr_cnt: 0
                    total_user_count_cnt: 703
                  - room_id: '7655115968440175381'
                    snapshot_time: 1782358200
                    total_enter_count_cnt: 56623
                    total_followers_cnt: 2287543
                    total_followers_incr_cnt: 69
                    total_sale_cnt: 16784
                    total_sale_gmv_amt: 158066
                    total_sale_gmv_incr_amt: 0
                    total_sale_incr_cnt: 0
                    total_user_count_cnt: 551
                  - room_id: '7655115968440175381'
                    snapshot_time: 1782359100
                    total_enter_count_cnt: 58775
                    total_followers_cnt: 2287544
                    total_followers_incr_cnt: 1
                    total_sale_cnt: 16784
                    total_sale_gmv_amt: 158066
                    total_sale_gmv_incr_amt: 1581
                    total_sale_incr_cnt: 168
                    total_user_count_cnt: 586
                  - room_id: '7655115968440175381'
                    snapshot_time: 1782360900
                    total_enter_count_cnt: 65703
                    total_followers_cnt: 2287655
                    total_followers_incr_cnt: 111
                    total_sale_cnt: 16784
                    total_sale_gmv_amt: 158066
                    total_sale_gmv_incr_amt: 0
                    total_sale_incr_cnt: 0
                    total_user_count_cnt: 977
                  - room_id: '7655115968440175381'
                    snapshot_time: 1782361800
                    total_enter_count_cnt: 75022
                    total_followers_cnt: 2287724
                    total_followers_incr_cnt: 69
                    total_sale_cnt: 16784
                    total_sale_gmv_amt: 158066
                    total_sale_gmv_incr_amt: 0
                    total_sale_incr_cnt: 0
                    total_user_count_cnt: 1027
                  - room_id: '7655115968440175381'
                    snapshot_time: 1782362800
                    total_enter_count_cnt: 0
                    total_followers_cnt: 0
                    total_followers_incr_cnt: 0
                    total_sale_cnt: 16784
                    total_sale_gmv_amt: 158066
                    total_sale_gmv_incr_amt: 1581
                    total_sale_incr_cnt: 168
                    total_user_count_cnt: 0
                  - room_id: '7655115968440175381'
                    snapshot_time: 1782363600
                    total_enter_count_cnt: 81794
                    total_followers_cnt: 2287839
                    total_followers_incr_cnt: 115
                    total_sale_cnt: 16784
                    total_sale_gmv_amt: 158066
                    total_sale_gmv_incr_amt: 0
                    total_sale_incr_cnt: 0
                    total_user_count_cnt: 685
                  - room_id: '7655115968440175381'
                    snapshot_time: 1782364500
                    total_enter_count_cnt: 84600
                    total_followers_cnt: 2287880
                    total_followers_incr_cnt: 41
                    total_sale_cnt: 16784
                    total_sale_gmv_amt: 158066
                    total_sale_gmv_incr_amt: 0
                    total_sale_incr_cnt: 0
                    total_user_count_cnt: 679
                requestId: ea477151-a2cd-455a-a186-c338d6abdb5e
          headers: {}
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                type: object
                example:
                  code: 400
                  data: null
                  message: Missing required parameter
        '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
      deprecated: false
      security:
        - JWT Bearer: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.keyapi.ai/v1/tiktok/live/trend/analytics?room_id=7655115968440175381&page_num=1&page_size=10' \
              --header 'Authorization: Bearer <YOUR_API_KEY>'
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.get(
                'https://api.keyapi.ai/v1/tiktok/live/trend/analytics',
                params={"room_id": "7655115968440175381", "page_num": "1", "page_size": "10"},
                headers={'Authorization': 'Bearer <YOUR_API_KEY>'}
            )
            print(response.json())
        - lang: javascript
          label: JavaScript
          source: >-
            const params = new URLSearchParams({"room_id":
            "7655115968440175381", "page_num": "1", "page_size": "10"});


            const response = await
            fetch(`https://api.keyapi.ai/v1/tiktok/live/trend/analytics?${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: |-
        API key for authentication. Format: `sk_live_xxxxxxxxxxxxx`
        Get your API key from the [Dashboard](http://keyapi.ai/app/dashboard).

````