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

# Douyin trending topic analysis

> Query Douyin trending-topic trends, related posts, creator rankings and audience profiles by keyword.

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/douyin_hot_topic_analysis
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/douyin_hot_topic_analysis:
    post:
      tags:
        - douyin
      summary: Douyin trending topic analysis
      description: >-
        Query Douyin trending-topic trends, related posts, creator rankings and
        audience profiles by keyword.


        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_douyin_hot_topic_analysis
      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:
              keyword: travel
            schema:
              $ref: '#/components/schemas/douyin_hot_topic_analysis_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/douyin_hot_topic_analysis_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/douyin/douyin-hot-topic-analysis
components:
  schemas:
    douyin_hot_topic_analysis_input:
      additionalProperties: false
      properties:
        keyword:
          description: >-
            Exact topic name from the current trending list, not an arbitrary
            search term.
          maxLength: 100
          minLength: 1
          pattern: \S
          title: Keyword
          type: string
      required:
        - keyword
      title: HotTopicInput
      type: object
    douyin_hot_topic_analysis_result:
      additionalProperties: false
      properties:
        platform:
          const: douyin
          default: douyin
          title: Platform
          type: string
        keyword:
          maxLength: 4096
          title: Keyword
          type: string
        trend:
          items:
            $ref: >-
              #/components/schemas/douyin_hot_topic_analysis_result__HotIndexPoint
          maxItems: 10000
          minItems: 1
          title: Trend
          type: array
        posts:
          items:
            $ref: >-
              #/components/schemas/douyin_hot_topic_analysis_result__SocialContent
          maxItems: 1000
          title: Posts
          type: array
        creator_rankings:
          items:
            $ref: >-
              #/components/schemas/douyin_hot_topic_analysis_result__HotCreatorRanking
          maxItems: 4
          minItems: 4
          title: Creator Rankings
          type: array
        audience:
          items:
            $ref: >-
              #/components/schemas/douyin_hot_topic_analysis_result__HotAudienceGroup
          maxItems: 4
          title: Audience
          type: array
        retrieved_at:
          maximum: 9007199254740991
          minimum: 0
          title: Retrieved At
          type: integer
      required:
        - keyword
        - trend
        - posts
        - creator_rankings
        - audience
        - retrieved_at
      title: HotTopicAnalysisResult
      type: object
    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
    douyin_hot_topic_analysis_result__HotIndexPoint:
      additionalProperties: false
      properties:
        time_text:
          description: Source time text without a specified timezone; not converted to UTC.
          pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2}$
          title: Time Text
          type: string
        value:
          maximum: 9007199254740991
          minimum: 0
          title: Value
          type: integer
      required:
        - time_text
        - value
      title: HotIndexPoint
      type: object
    douyin_hot_topic_analysis_result__SocialContent:
      additionalProperties: false
      properties:
        audio_tracks:
          anyOf:
            - items:
                $ref: >-
                  #/components/schemas/douyin_hot_topic_analysis_result__AudioTrack
              maxItems: 100
              type: array
            - type: 'null'
          default: null
          description: >-
            Separate audio tracks for the post, which may need to be combined
            with video tracks. These are not background music.
          title: Audio Tracks
        music:
          anyOf:
            - $ref: >-
                #/components/schemas/douyin_hot_topic_analysis_result__ContentMusic
            - type: 'null'
          default: null
          description: >-
            Post background music; not a replacement for the complete audio
            track.
        topics:
          anyOf:
            - items:
                $ref: >-
                  #/components/schemas/douyin_hot_topic_analysis_result__ContentTopic
              maxItems: 500
              type: array
            - type: 'null'
          default: null
          title: Topics
        id:
          maxLength: 256
          minLength: 1
          title: Id
          type: string
        url:
          anyOf:
            - maxLength: 8192
              type: string
            - type: 'null'
          default: null
          title: Url
        title:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Title
        text:
          anyOf:
            - maxLength: 1000000
              type: string
            - type: 'null'
          default: null
          title: Text
        content_html:
          anyOf:
            - maxLength: 5000000
              type: string
            - type: 'null'
          default: null
          title: Content Html
        author:
          anyOf:
            - $ref: >-
                #/components/schemas/douyin_hot_topic_analysis_result__SocialAuthor
            - type: 'null'
          default: null
        published_at:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Published At
        published_at_text:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          description: >-
            Source time text without an explicit timezone or that cannot be
            normalized.
          title: Published At Text
        cover_url:
          anyOf:
            - maxLength: 8192
              type: string
            - type: 'null'
          default: null
          title: Cover Url
        media:
          items:
            $ref: >-
              #/components/schemas/douyin_hot_topic_analysis_result__SocialMediaItem
          maxItems: 500
          title: Media
          type: array
        statistics:
          anyOf:
            - $ref: >-
                #/components/schemas/douyin_hot_topic_analysis_result__SocialStatistics
            - type: 'null'
          default: null
        hashtags:
          anyOf:
            - items:
                maxLength: 4096
                type: string
              maxItems: 500
              type: array
            - type: 'null'
          default: null
          title: Hashtags
        categories:
          anyOf:
            - items:
                $ref: >-
                  #/components/schemas/douyin_hot_topic_analysis_result__ContentCategory
              maxItems: 100
              type: array
            - type: 'null'
          default: null
          description: Platform content categories, distinct from post topic hashtags.
          title: Categories
      required:
        - id
      title: SocialContent
      type: object
    douyin_hot_topic_analysis_result__HotCreatorRanking:
      additionalProperties: false
      properties:
        metric:
          enum:
            - plays
            - likes
            - followers
            - comments
          title: Metric
          type: string
        items:
          items:
            $ref: '#/components/schemas/douyin_hot_topic_analysis_result__HotCreator'
          maxItems: 1000
          title: Items
          type: array
      required:
        - metric
        - items
      title: HotCreatorRanking
      type: object
    douyin_hot_topic_analysis_result__HotAudienceGroup:
      additionalProperties: false
      properties:
        dimension:
          enum:
            - province
            - city
            - gender
            - age
          title: Dimension
          type: string
        label:
          maxLength: 4096
          title: Label
          type: string
        items:
          items:
            $ref: >-
              #/components/schemas/douyin_hot_topic_analysis_result__HotAudienceLabel
          maxItems: 1000
          title: Items
          type: array
      required:
        - dimension
        - label
        - items
      title: HotAudienceGroup
      type: object
    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
    douyin_hot_topic_analysis_result__AudioTrack:
      additionalProperties: false
      description: A separate work audio stream, not its soundtrack music or a muxed video.
      properties:
        url:
          maxLength: 2048
          title: Url
          type: string
        backup_urls:
          items:
            type: string
          maxItems: 100
          title: Backup Urls
          type: array
        format:
          anyOf:
            - maxLength: 256
              type: string
            - type: 'null'
          default: null
          title: Format
      required:
        - url
      title: AudioTrack
      type: object
    douyin_hot_topic_analysis_result__ContentMusic:
      additionalProperties: false
      description: >-
        Source-supplied soundtrack metadata; not necessarily the complete work
        audio.
      properties:
        id:
          anyOf:
            - maxLength: 256
              type: string
            - type: 'null'
          default: null
          title: Id
        title:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Title
        author:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Author
        duration:
          anyOf:
            - type: number
              minimum: 0
            - type: 'null'
          default: null
          description: Seconds; duration of the source background music resource.
          title: Duration
        is_original:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Is Original
        cover_url:
          anyOf:
            - maxLength: 2048
              type: string
            - type: 'null'
          default: null
          title: Cover Url
        audio:
          anyOf:
            - $ref: >-
                #/components/schemas/douyin_hot_topic_analysis_result__ContentAudio
            - type: 'null'
          default: null
        download_allowed:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Download Allowed
      title: ContentMusic
      type: object
    douyin_hot_topic_analysis_result__ContentTopic:
      additionalProperties: false
      properties:
        id:
          anyOf:
            - maxLength: 256
              minLength: 1
              type: string
            - type: 'null'
          default: null
          title: Id
        name:
          maxLength: 4096
          minLength: 1
          title: Name
          type: string
        url:
          anyOf:
            - maxLength: 8192
              type: string
            - type: 'null'
          default: null
          title: Url
        categories:
          anyOf:
            - items:
                $ref: >-
                  #/components/schemas/douyin_hot_topic_analysis_result__ContentCategory
              maxItems: 100
              type: array
            - type: 'null'
          default: null
          description: Categories of the topic itself, not of its associated posts.
          title: Categories
      required:
        - name
      title: ContentTopic
      type: object
    douyin_hot_topic_analysis_result__SocialAuthor:
      additionalProperties: false
      properties:
        id:
          anyOf:
            - maxLength: 256
              type: string
            - type: 'null'
          default: null
          title: Id
        name:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Name
        username:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Username
        avatar_url:
          anyOf:
            - maxLength: 8192
              type: string
            - type: 'null'
          default: null
          title: Avatar Url
        url:
          anyOf:
            - maxLength: 8192
              type: string
            - type: 'null'
          default: null
          title: Url
      title: SocialAuthor
      type: object
    douyin_hot_topic_analysis_result__SocialMediaItem:
      additionalProperties: false
      properties:
        kind:
          enum:
            - video
            - image
            - audio
          title: Kind
          type: string
        url:
          description: Media resource URL; may expire or have access restrictions.
          title: Url
          type: string
        duration:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: number
            - type: 'null'
          default: null
          description: Seconds, returned in JSON to two decimal places.
          title: Duration
        width:
          anyOf:
            - exclusiveMinimum: 0
              maximum: 100000
              type: integer
            - type: 'null'
          default: null
          title: Width
        height:
          anyOf:
            - exclusiveMinimum: 0
              maximum: 100000
              type: integer
            - type: 'null'
          default: null
          title: Height
      required:
        - kind
        - url
      title: SocialMediaItem
      type: object
    douyin_hot_topic_analysis_result__SocialStatistics:
      additionalProperties: false
      properties:
        view_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: View Count
        like_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Like Count
        comment_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Comment Count
        share_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Share Count
        collect_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Collect Count
        repost_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Repost Count
      title: SocialStatistics
      type: object
    douyin_hot_topic_analysis_result__ContentCategory:
      additionalProperties: false
      properties:
        id:
          anyOf:
            - maxLength: 256
              minLength: 1
              type: string
            - type: 'null'
          default: null
          title: Id
        name:
          anyOf:
            - maxLength: 4096
              minLength: 1
              type: string
            - type: 'null'
          default: null
          title: Name
        level:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          description: Source category level; not inferred from list position.
          title: Level
      title: ContentCategory
      type: object
    douyin_hot_topic_analysis_result__HotCreator:
      additionalProperties: false
      properties:
        author:
          $ref: '#/components/schemas/douyin_hot_topic_analysis_result__SocialAuthor'
        rank:
          maximum: 9007199254740991
          minimum: 0
          title: Rank
          type: integer
        view_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: View Count
        like_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Like Count
        follower_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Follower Count
        comment_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Comment Count
      required:
        - author
        - rank
      title: HotCreator
      type: object
    douyin_hot_topic_analysis_result__HotAudienceLabel:
      additionalProperties: false
      properties:
        label:
          maxLength: 4096
          title: Label
          type: string
        proportion:
          maximum: 1
          minimum: 0
          title: Proportion
          type: number
      required:
        - label
        - proportion
      title: HotAudienceLabel
      type: object
    douyin_hot_topic_analysis_result__ContentAudio:
      additionalProperties: false
      properties:
        url:
          maxLength: 2048
          title: Url
          type: string
      required:
        - url
      title: ContentAudio
      type: object
  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.