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

# TikTok top video rankings

> Look up TikTok top videos and available performance details by period, region and content category, with sorting and pagination; charts contain at most 100 videos.

Save `data.task_id` and call `GET /v1/tasks/{task_id}` to retrieve the result. OAuth access tokens require `tools:execute` and access to this tool.



## OpenAPI

````yaml /openapi.json post /v1/tiktok_top_videos
openapi: 3.1.0
info:
  title: Mouter API
  version: '1.0'
  description: Discover tools, submit tasks, and read results and charges.
servers:
  - url: https://api.mouter.ai
    description: Production
security: []
paths:
  /v1/tiktok_top_videos:
    post:
      tags:
        - tiktok
      summary: TikTok top video rankings
      description: >-
        Look up TikTok top videos and available performance details by period,
        region and content category, with sorting and pagination; charts contain
        at most 100 videos.


        Save `data.task_id` and call `GET /v1/tasks/{task_id}` to retrieve the
        result. OAuth access tokens require `tools:execute` and access to this
        tool.
      operationId: submit_tiktok_top_videos
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Reuse the key with the same credential and input when retrying the
            same submission.
          schema:
            maxLength: 128
            minLength: 1
            type: string
      requestBody:
        required: true
        content:
          application/json:
            example:
              period_end_timestamp: 1762560000
            schema:
              $ref: '#/components/schemas/tiktok_top_videos_input'
      responses:
        '200':
          description: >-
            Existing task returned for an idempotent retry. An available result
            matches the output schema shown here.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    const: 0
                  message:
                    type: string
                    const: ''
                  data:
                    type: object
                    properties:
                      task_id:
                        type: string
                        pattern: ^[A-Za-z0-9_-]{1,40}$
                      status:
                        type: string
                        enum:
                          - submitted
                          - queued
                          - in_progress
                          - succeeded
                          - failed
                          - timed_out
                          - canceled
                      progress:
                        anyOf:
                          - type: integer
                            minimum: 0
                            maximum: 100
                          - type: 'null'
                      error:
                        anyOf:
                          - type: object
                            properties:
                              code:
                                type: string
                              message:
                                type: string
                            required:
                              - code
                              - message
                          - type: 'null'
                      created_at:
                        type: integer
                        minimum: 0
                        description: UTC Unix time in seconds.
                      updated_at:
                        type: integer
                        minimum: 0
                        description: UTC Unix time in seconds.
                      result:
                        anyOf:
                          - $ref: '#/components/schemas/tiktok_top_videos_result'
                          - type: 'null'
                    required:
                      - task_id
                      - status
                      - progress
                      - error
                      - created_at
                      - updated_at
                      - result
                  request_id:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - code
                  - message
                  - data
                  - request_id
          headers:
            Idempotency-Replayed:
              schema:
                type: string
                const: 'true'
        '202':
          description: Task accepted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    const: 0
                  message:
                    type: string
                    const: ''
                  data:
                    $ref: '#/components/schemas/AcceptedTask'
                  request_id:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - code
                  - message
                  - data
                  - request_id
              example:
                code: 0
                message: ''
                data:
                  task_id: task_example
                  status: submitted
                  progress: null
                  error: null
                  created_at: 1795488000
                  updated_at: 1795488000
                  result: null
                request_id: req_example
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '402':
          $ref: '#/components/responses/Error402'
        '403':
          $ref: '#/components/responses/Error403'
        '409':
          $ref: '#/components/responses/Error409'
        '413':
          $ref: '#/components/responses/Error413'
        '415':
          $ref: '#/components/responses/Error415'
        '429':
          $ref: '#/components/responses/Error429'
        '503':
          $ref: '#/components/responses/Error503'
      security:
        - Bearer: []
      externalDocs:
        description: View tool on Mouter
        url: https://mouter.ai/tools/tiktok/tiktok-top-videos
components:
  schemas:
    tiktok_top_videos_input:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        period_end_timestamp:
          type: integer
          minimum: 1000000000
          maximum: 9999999999
          description: >-
            Ranking period end as a ten-digit Unix timestamp in seconds. Reuse
            the list period when requesting its detail.
        period_dimension:
          type: integer
          enum:
            - 1
            - 3
            - 5
          default: 3
          description: >-
            Ranking type: 1 weekly, 3 daily, 5 long-period. These are not
            last-N-day filters.
        country_code:
          type: string
          pattern: ^[A-Z]{2}$
          default: US
          description: >-
            Ranking country code. Uncovered countries can return an empty
            ranking.
        content_label_ids:
          type: string
          pattern: ^(?:110(?:0[1-9]|1[0-5])(?:,110(?:0[1-9]|1[0-5]))*)?$
          default: ''
          description: >-
            Comma-separated content category IDs 11001 through 11015; empty
            selects all.
        order_by_metric:
          type: integer
          enum:
            - 1
            - 2
            - 3
          default: 1
          description: 1 views, 2 engagement rate, 3 six-second view-through rate.
        organic_only:
          type: boolean
          default: false
          description: Whether to select organic content only.
        limit:
          type: integer
          minimum: 1
          maximum: 100
          default: 20
          description: Requested ranking items per page.
        cursor:
          type:
            - string
            - 'null'
          default: null
          description: >-
            Opaque platform continuation cursor; omit or use null for the first
            page.
      required:
        - period_end_timestamp
      additionalProperties: false
    tiktok_top_videos_result:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        platform:
          type: string
          const: tiktok
        items:
          type: array
          items:
            type: object
            properties:
              itemAuthorInfo:
                type: object
                properties:
                  avatarURI:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  bio:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  handlerName:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  nickName:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                required:
                  - avatarURI
                  - bio
                  - handlerName
                  - nickName
                additionalProperties: false
              itemAuthorMetrics:
                type: object
                properties:
                  followers:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                required:
                  - followers
                additionalProperties: false
              itemInfo:
                type: object
                properties:
                  authorID:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  contentType:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  coverURL:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  coverURLList:
                    type:
                      - array
                      - 'null'
                    items:
                      type: object
                      properties:
                        format:
                          type:
                            - 'null'
                            - string
                          description: >-
                            Native business value; preserve its type, text and
                            entity granularity. Missing supported values are
                            null.
                        imageUrl:
                          type:
                            - 'null'
                            - string
                          description: >-
                            Native business value; preserve its type, text and
                            entity granularity. Missing supported values are
                            null.
                      required:
                        - format
                        - imageUrl
                      additionalProperties: false
                  createTime:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  creatorID:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  itemID:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  title:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  videoURL:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                required:
                  - authorID
                  - contentType
                  - coverURL
                  - coverURLList
                  - createTime
                  - creatorID
                  - itemID
                  - title
                  - videoURL
                additionalProperties: false
              itemMetrics:
                type: object
                properties:
                  engagementRate:
                    type:
                      - 'null'
                      - number
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  engagementRateLifeTime:
                    type:
                      - 'null'
                      - number
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  organicVideoViews:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  organicVideoViewsLifeTime:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  sixSecondsVTR:
                    type:
                      - 'null'
                      - number
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  sixSecondsVTRLifeTime:
                    type:
                      - 'null'
                      - number
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  videoViews:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                  videoViewsLifeTime:
                    type:
                      - 'null'
                      - string
                    description: >-
                      Native business value; preserve its type, text and entity
                      granularity. Missing supported values are null.
                required:
                  - engagementRate
                  - engagementRateLifeTime
                  - organicVideoViews
                  - organicVideoViewsLifeTime
                  - sixSecondsVTR
                  - sixSecondsVTRLifeTime
                  - videoViews
                  - videoViewsLifeTime
                additionalProperties: false
            required:
              - itemAuthorInfo
              - itemAuthorMetrics
              - itemInfo
              - itemMetrics
            additionalProperties: false
        returned_count:
          type: integer
          minimum: 0
        has_more:
          type: boolean
        next_cursor:
          type:
            - string
            - 'null'
        retrieved_at:
          type: integer
          minimum: 0
          description: UTC Unix seconds from the platform validation clock.
      required:
        - platform
        - items
        - returned_count
        - has_more
        - next_cursor
        - retrieved_at
      additionalProperties: false
    AcceptedTask:
      type: object
      properties:
        task_id:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,40}$
        status:
          type: string
          enum:
            - submitted
            - queued
            - in_progress
            - succeeded
            - failed
            - timed_out
            - canceled
        progress:
          anyOf:
            - type: integer
              minimum: 0
              maximum: 100
            - type: 'null'
        error:
          anyOf:
            - type: object
              properties:
                code:
                  type: string
                message:
                  type: string
              required:
                - code
                - message
            - type: 'null'
        created_at:
          type: integer
          minimum: 0
          description: UTC Unix time in seconds.
        updated_at:
          type: integer
          minimum: 0
          description: UTC Unix time in seconds.
        result:
          type: 'null'
      required:
        - task_id
        - status
        - progress
        - error
        - created_at
        - updated_at
        - result
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        data:
          type: 'null'
        request_id:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - code
        - message
        - data
        - request_id
  responses:
    Error400:
      description: Invalid request parameters, headers, or body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error401:
      description: A valid credential is required.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error402:
      description: Insufficient balance or credential allowance.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error403:
      description: The credential lacks permission.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error409:
      description: The idempotency key was reused with a different input.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error413:
      description: The request body is too large.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error415:
      description: The request body must use application/json.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error429:
      description: The active task limit was reached.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error503:
      description: The operation is temporarily unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: A Mouter API key or OAuth access token.

````

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