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

# Douyin trend report search

> Search Douyin trend reports by keyword, type, business and year, returning summaries, covers and available attachments, one page per call.

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_trend_report_search
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_trend_report_search:
    post:
      tags:
        - douyin
      summary: Douyin trend report search
      description: >-
        Search Douyin trend reports by keyword, type, business and year,
        returning summaries, covers and available attachments, one page per
        call.


        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_trend_report_search
      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/douyin_trend_report_search_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_trend_report_search_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-trend-report-search
components:
  schemas:
    douyin_trend_report_search_input:
      additionalProperties: false
      properties:
        keyword:
          default: ''
          maxLength: 200
          title: Keyword
          type: string
        page:
          default: 1
          maximum: 10000
          minimum: 1
          title: Page
          type: integer
        limit:
          default: 16
          maximum: 100
          minimum: 1
          title: Limit
          type: integer
        report_type:
          anyOf:
            - enum:
                - 行业洞察
                - 产品洞察
                - 用户洞察
                - 趋势洞察
              type: string
            - type: 'null'
          default: null
          title: Report Type
        businesses:
          items:
            enum:
              - 巨量引擎
              - 今日头条
              - 抖音
              - 西瓜视频
              - 抖音电商
              - 仕小禄
              - 其他
            type: string
          maxItems: 7
          title: Businesses
          type: array
        years:
          items:
            maximum: 2100
            minimum: 1900
            type: integer
          maxItems: 201
          title: Years
          type: array
      title: ReportSearchInput
      type: object
    douyin_trend_report_search_result:
      additionalProperties: false
      properties:
        platform:
          const: douyin
          default: douyin
          title: Platform
          type: string
        items:
          items:
            $ref: >-
              #/components/schemas/douyin_trend_report_search_result__TrendReport
          maxItems: 100
          title: Items
          type: array
        pagination:
          $ref: '#/components/schemas/douyin_trend_report_search_result__ReportPage'
        retrieved_at:
          maximum: 9007199254740991
          minimum: 0
          title: Retrieved At
          type: integer
      required:
        - items
        - pagination
        - retrieved_at
      title: ReportSearchResult
      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_trend_report_search_result__TrendReport:
      additionalProperties: false
      properties:
        id:
          maxLength: 128
          minLength: 1
          pattern: ^[0-9]+$
          title: Id
          type: string
        title:
          maxLength: 4096
          minLength: 1
          title: Title
          type: string
        author:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Author
        description:
          anyOf:
            - maxLength: 100000
              type: string
            - type: 'null'
          default: null
          title: Description
        published_date:
          anyOf:
            - pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
              type: string
            - type: 'null'
          default: null
          title: Published Date
        report_type:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Report Type
        businesses:
          items:
            maxLength: 4096
            type: string
          maxItems: 100
          title: Businesses
          type: array
        industries:
          items:
            maxLength: 4096
            type: string
          maxItems: 100
          title: Industries
          type: array
        keywords:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Keywords
        category_id:
          anyOf:
            - maxLength: 128
              minLength: 1
              pattern: ^[0-9]+$
              type: string
            - type: 'null'
          default: null
          title: Category Id
        covers:
          items:
            $ref: >-
              #/components/schemas/douyin_trend_report_search_result__ReportAsset
          maxItems: 100
          title: Covers
          type: array
        attachments:
          items:
            $ref: >-
              #/components/schemas/douyin_trend_report_search_result__ReportAsset
          maxItems: 100
          title: Attachments
          type: array
        images:
          items:
            $ref: >-
              #/components/schemas/douyin_trend_report_search_result__ReportAsset
          maxItems: 2000
          title: Images
          type: array
        content:
          anyOf:
            - maxLength: 5000000
              type: string
            - type: 'null'
          default: null
          description: >-
            Original report text supplied by the source; no format is inferred
            and missing text is not reconstructed.
          title: Content
        content_html:
          anyOf:
            - maxLength: 5000000
              type: string
            - type: 'null'
          default: null
          title: Content Html
        view_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: View Count
        download_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Download Count
        cooperating_institution:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Cooperating Institution
      required:
        - id
        - title
      title: TrendReport
      type: object
    douyin_trend_report_search_result__ReportPage:
      additionalProperties: false
      properties:
        page:
          minimum: 1
          title: Page
          type: integer
        limit:
          maximum: 100
          minimum: 1
          title: Limit
          type: integer
        total:
          maximum: 9007199254740991
          minimum: 0
          title: Total
          type: integer
        has_more:
          title: Has More
          type: boolean
      required:
        - page
        - limit
        - total
        - has_more
      title: ReportPage
      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_trend_report_search_result__ReportAsset:
      additionalProperties: false
      properties:
        url:
          maxLength: 8192
          title: Url
          type: string
        name:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Name
        preview_url:
          anyOf:
            - maxLength: 8192
              type: string
            - type: 'null'
          default: null
          title: Preview Url
        width:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Width
        height:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Height
      required:
        - url
      title: ReportAsset
      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.