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

# TikTok trending topic rankings

> Look up TikTok trending topics by date range, country and industry, with available topic details and pagination.

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_trending_topics
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_trending_topics:
    post:
      tags:
        - tiktok
      summary: TikTok trending topic rankings
      description: >-
        Look up TikTok trending topics by date range, country and industry, with
        available topic details and pagination.


        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_trending_topics
      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: {}
            schema:
              $ref: '#/components/schemas/tiktok_trending_topics_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_trending_topics_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-trending-topics
components:
  schemas:
    tiktok_trending_topics_input:
      $schema: https://json-schema.org/draft/2020-12/schema
      type: object
      properties:
        industry:
          type: string
          enum:
            - apparel_accessories
            - baby_kids_maternity
            - beauty_personal_care
            - education
            - food_beverage
            - games
            - health
            - home_improvement
            - household_products
            - news_entertainment
            - pets
            - sports_outdoor
            - tech_electronics
            - travel
            - vehicle_transportation
          description: >-
            Restrict the ranking to one industry. Omit for the all-industries
            board.
        limit:
          type: integer
          minimum: 1
          maximum: 100
          default: 3
          description: >-
            Maximum number of ranked hashtags to return, from 1 through 100
            (default 3). TikTok publishes only the top 3 hashtags per board to
            anonymous callers, so 1 through 3 is served by the cheapest source;
            a higher limit routes to a dearer source that reads the full
            ranking.
        period:
          type: integer
          enum:
            - 7
            - 30
            - 90
          default: 7
          description: >-
            Lookback window in days that the ranking and the popularity curve
            cover (default 7).
        region:
          type: string
          enum:
            - US
            - FR
            - DE
            - IT
            - ES
            - GB
            - AR
            - AU
            - BR
            - CA
            - CO
            - EG
            - ID
            - IL
            - JP
            - KR
            - MY
            - MX
            - PH
            - SA
            - SG
            - ZA
            - TW
            - TH
            - TR
            - AE
            - VN
          default: US
          description: >-
            Two-letter country code of the market whose hashtag ranking to read
            (default US). Each market is ranked independently, so US and DE
            return different boards.
      required: []
      additionalProperties: false
    tiktok_trending_topics_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:
              industryIds:
                type:
                  - array
                  - 'null'
                items:
                  type: integer
                  description: >-
                    Country, industry or period: preserve the native value;
                    retain the key and return null when missing.
              name:
                type:
                  - 'null'
                  - string
                description: >-
                  Hashtag name: preserve the native value; retain the key and
                  return null when missing.
              rank_raw:
                type:
                  - integer
                  - 'null'
                description: >-
                  Rank: preserve the native value; retain the key and return
                  null when missing.
              view_count_raw:
                type:
                  - integer
                  - 'null'
                description: >-
                  View count: preserve the native value; retain the key and
                  return null when missing.
              popularity:
                type:
                  - array
                  - 'null'
                items:
                  type: object
                  properties:
                    value:
                      type:
                        - 'null'
                        - number
                      description: >-
                        Popularity curve: preserve the native value; retain the
                        key and return null when missing.
                  required:
                    - value
                  additionalProperties: false
            required:
              - industryIds
              - name
              - rank_raw
              - view_count_raw
              - popularity
            additionalProperties: false
        retrieved_at:
          type: integer
          minimum: 0
          description: UTC Unix seconds from the platform validation clock.
        returned_count:
          type: integer
          minimum: 0
      required:
        - platform
        - items
        - retrieved_at
        - returned_count
      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.