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

# Influencer Ranking (Analytics)

> Retrieve ranked lists of TikTok influencers sorted by metrics such as follower count, GMV, and engagement rate, computed from large-scale analytics data.

<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/influencer/ranking/analytics.

Please help me write code to make this API call and handle the response appropriately. Include error handling and best practices.

Here are the details:

Endpoint: GET https://api.keyapi.ai/v1/tiktok/influencer/ranking/analytics

Description: Retrieve ranked lists of TikTok influencers sorted by metrics such as follower count, GMV, and engagement rate, computed from large-scale analytics data.

Required Headers:
--header 'Authorization: Bearer <YOUR_API_KEY>'

Parameters:
- date (Required): The format is yyyy-MM-dd. The rankings are divided into three categories: daily, weekly, and monthly. Weekly rankings are held every Monday, and monthly rankings are held on the first day of each month.
- region (Required): Region code, region, such as US
- influencer_category_name (Optional): Category filter
- product_category_id (Optional): product_category_list
- rank_type (Required): 1=day 2=week 3=month
- influencer_rank_field (Required): List sorting type 1=total_followers_cnt 2=total_sale_cnt
- page_num (Required): Page numbers start from 1 and go up to a maximum of 100,000.
- page_size (Required): The maximum number of pages is 10.

Example Response:
{
"code": 0,
"message": "success",
"data": [
{
  "avatar": "https://echosell-images.tos-ap-southeast-1.volces.com/user-avatar/853/MS4wLjABAAAAJN3v63JkTkZW72ae9hb2Wlb70uzhU8H3AZEKxIVTg38lwBGTx0tSNH7IBcrocdKd.jpg",
  "category": "Other",
  "ec_score": 7.33,
  "most_category_id": "601450",
  "most_category_l2_id": "605248",
  "most_category_l3_id": "603014",
  "nick_name": "ﾌひﾚﾉの",
  "product_category_list": "601450-849672-601690:1,601450-848776-601608:2,601450-849672-875400:3,601450-848776-601619:4,601450-849416-601660:5,601739-909064-601925:6,601739-909320-601990:7,601450-848776-601653:8,601450-848776-873480:9,601450-848904-601513:10,601450-849416-874120:11,824328-840072-601218:12,601450-849160-601686:13,601450-856208-855696:14,700645-700646-700650:15,601450-848904-1004168:16,601450-848904-981512:17,824328-840072-601202:18,604579-871560-881672:19,601755-831112-831752:20,601450-848776-601602:21,604579-872328-887560:22,603014-835336-837768:23,601450-849288-601644:24,601450-848776-601733:25,601739-909064-910728:26,604968-872968-897160:27,601352-900616-901896:28,601739-909320-602029:29,601450-848776-601615:30,601450-849032-1004552:31,605248-905224-906248:32,603014-835464-603835:33,601450-848648-601588:34,604206-859656-700699:35,601450-856208-856080:36,601739-909192-911752:37,600024-859400-600048:38,600001-851848-852872:39,824328-839944-601213:40,601450-849416-874248:41,601352-900616-601364:42,604453-871432-881416:43,601352-900488-901384:44
... (truncated)`)}
    >
      <span>✨</span>
      <span>Copy for AI</span>
    </button>
  </div>
</div>


## OpenAPI

````yaml en/tiktok.openapi.json GET /v1/tiktok/influencer/ranking/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/influencer/ranking/analytics:
    get:
      tags:
        - TikTok Influencer
      summary: Influencer Ranking (Analytics)
      description: >-
        Retrieve ranked lists of TikTok influencers sorted by metrics such as
        follower count, GMV, and engagement rate, computed from large-scale
        analytics data.
      operationId: get_api_v3_echotik_influencer_ranklist
      parameters:
        - name: date
          in: query
          description: >-
            The format is yyyy-MM-dd. The rankings are divided into three
            categories: daily, weekly, and monthly. Weekly rankings are held
            every Monday, and monthly rankings are held on the first day of each
            month.
          required: true
          schema:
            type: string
        - name: region
          in: query
          description: Region code, region, such as US
          required: true
          schema:
            type: string
        - name: influencer_category_name
          in: query
          description: Category filter
          required: false
          schema:
            type: string
        - name: product_category_id
          in: query
          description: product_category_list
          required: false
          schema:
            type: string
        - name: rank_type
          in: query
          description: 1=day 2=week 3=month
          required: true
          schema:
            type: integer
        - name: influencer_rank_field
          in: query
          description: List sorting type 1=total_followers_cnt 2=total_sale_cnt
          required: true
          schema:
            type: integer
        - name: page_num
          in: query
          description: Page numbers start from 1 and go up to a maximum of 100,000.
          required: true
          schema:
            type: integer
        - name: page_size
          in: query
          description: The maximum number of pages is 10.
          required: true
          schema:
            type: integer
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  message:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      properties:
                        avatar:
                          type: string
                          title: >-
                            If the profile picture/cover URL is inaccessible,
                            please use the download interface.
                        category:
                          type: string
                        ec_score:
                          type: number
                          title: echotik rating
                        nick_name:
                          type: string
                        region:
                          type: string
                        sales_flag:
                          type: integer
                          title: >-
                            Sales indicators, >0 represents sales. 1 = Video
                            sales; 2 = Live streaming sales; 3 = Video + Live
                            streaming; 4 = Open a product showcase.
                        total_digg_cnt:
                          type: integer
                          title: Likes during the ranking period
                        total_digg_history_cnt:
                          type: integer
                          title: Total number of likes
                        total_followers_cnt:
                          type: integer
                        total_followers_history_cnt:
                          type: integer
                        total_live_cnt:
                          type: integer
                        total_live_history_cnt:
                          type: integer
                        total_post_video_cnt:
                          type: integer
                        total_post_video_history_cnt:
                          type: integer
                        total_product_cnt:
                          type: integer
                        total_product_history_cnt:
                          type: integer
                        total_sale_cnt:
                          type: integer
                          title: Sales volume (estimated) during the ranking period
                        total_sale_gmv_amt:
                          type: number
                          title: >-
                            Estimated GMV (Gross Merchandise Volume) during the
                            ranking period
                        total_sale_gmv_history_amt:
                          type: number
                          title: Total sales gmv (estimated)
                        total_sale_history_cnt:
                          type: integer
                          title: Total sales (estimated)
                        user_id:
                          type: string
                        unique_id:
                          type: string
                          description: handle_id
                        product_category_list:
                          type: string
                          description: >-
                            All product categories for influencers' live
                            streaming, Level 1-2-3 categories: Ranking
                        most_category_id:
                          type: string
                          description: >-
                            The top-level category with the most influencer
                            product promotion
                        most_category_l2_id:
                          type: string
                        most_category_l3_id:
                          type: string
                  requestId:
                    type: string
                required:
                  - code
                  - message
                  - data
                  - requestId
                example:
                  code: 0
                  message: success
                  data:
                    - avatar: >-
                        https://echosell-images.tos-ap-southeast-1.volces.com/user-avatar/853/MS4wLjABAAAAJN3v63JkTkZW72ae9hb2Wlb70uzhU8H3AZEKxIVTg38lwBGTx0tSNH7IBcrocdKd.jpg
                      category: Other
                      ec_score: 7.33
                      most_category_id: '601450'
                      most_category_l2_id: '605248'
                      most_category_l3_id: '603014'
                      nick_name: ﾌひﾚﾉの
                      product_category_list: >-
                        601450-849672-601690:1,601450-848776-601608:2,601450-849672-875400:3,601450-848776-601619:4,601450-849416-601660:5,601739-909064-601925:6,601739-909320-601990:7,601450-848776-601653:8,601450-848776-873480:9,601450-848904-601513:10,601450-849416-874120:11,824328-840072-601218:12,601450-849160-601686:13,601450-856208-855696:14,700645-700646-700650:15,601450-848904-1004168:16,601450-848904-981512:17,824328-840072-601202:18,604579-871560-881672:19,601755-831112-831752:20,601450-848776-601602:21,604579-872328-887560:22,603014-835336-837768:23,601450-849288-601644:24,601450-848776-601733:25,601739-909064-910728:26,604968-872968-897160:27,601352-900616-901896:28,601739-909320-602029:29,601450-848776-601615:30,601450-849032-1004552:31,605248-905224-906248:32,603014-835464-603835:33,601450-848648-601588:34,604206-859656-700699:35,601450-856208-856080:36,601739-909192-911752:37,600024-859400-600048:38,600001-851848-852872:39,824328-839944-601213:40,601450-849416-874248:41,601352-900616-601364:42,604453-871432-881416:43,601352-900488-901384:44,601450-849288-601520:45,601450-849160-601490:46,601352-900488-601405:47,601152-842376-601266:48,604206-860296-869256:49,601450-849416-601672:50,605248-905224-906376:51,601450-849160-2169232:52,604453-871048-979720:53,824584-902664-601419:54,600942-844808-601090:55,604453-871048-876680:56,601739-984584-992264:57,824584-902792-601446:58,600024-859528-600029:59,600154-809992-600221:60,604453-871048-876040:61,605248-905352-605304:62,700437-915336-700554:63,601450-849416-874376:64,603014-834568-603042:65,603014-834696-2151184:66,700645-700646-700649:67,601450-849416-601677:68,824328-840456-841736:69,601450-856208-855952:70,600942-844808-601108:71,824328-840456-841352:72,824584-902920-904840:73,600001-852232-600812:74,604206-859912-864520:75,601739-909064-601936:76,603014-834568-603704:77,605196-930184-700684:78,700437-915336-963464:79,601739-909448-913672:80,600001-852104-600338:81,601450-849416-873992:82,600001-851848-600621:83,601450-848776-601611:84,604453-871048-604468:85,600024-859528-865288:86,600024-859144-863880:87,953224-964360-958216:88,600024-859400-600032:89,824328-839944-601226:90,604206-860040-867592:91,601450-849160-601498:92,601450-848904-601469:93,605248-905608-605274:94,601739-984584-992008:95,824328-839944-601195:96,601152-842248-601295:97,700437-915336-921736:98,604453-871048-875912:99,601450-856208-855824:100,824328-839944-601197:101,601152-842376-601276:102,824328-839944-960776:103,824328-839944-601223:104
                      region: US
                      sales_flag: 4
                      total_digg_cnt: 0
                      total_digg_history_cnt: 9415852
                      total_followers_cnt: 0
                      total_followers_history_cnt: 46652
                      total_live_cnt: 0
                      total_live_history_cnt: 0
                      total_post_video_cnt: 0
                      total_post_video_history_cnt: 1716
                      total_product_cnt: 0
                      total_product_history_cnt: 228
                      total_sale_cnt: 7752
                      total_sale_gmv_amt: 73446
                      total_sale_gmv_history_amt: 583910
                      total_sale_history_cnt: 45720
                      unique_id: iamjuliocr
                      user_id: '6633792625097490438'
                  requestId: aeaad642-956b-4431-92c2-aaf60a5c60d6
        '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
      deprecated: false
      security:
        - JWT Bearer: []
      x-codeSamples:
        - lang: curl
          label: cURL
          source: |-
            curl --request GET \
              --url 'https://api.keyapi.ai/v1/tiktok/influencer/ranking/analytics' \
              --header 'Authorization: Bearer <YOUR_API_KEY>'
        - lang: python
          label: Python
          source: |-
            import requests

            response = requests.get(
                'https://api.keyapi.ai/v1/tiktok/influencer/ranking/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/influencer/ranking/analytics',
              {
                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).

````