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

# TikTok product search

> Search TikTok Shop US products by keyword and get product cards with available prices and specifications, with 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_product_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/tiktok_product_search:
    post:
      tags:
        - tiktok-shop
      summary: TikTok product search
      description: >-
        Search TikTok Shop US products by keyword and get product cards with
        available prices and specifications, with 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_product_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:
              query: travel backpack
            schema:
              $ref: '#/components/schemas/tiktok_product_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/tiktok_product_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/tiktok-shop/tiktok-product-search
components:
  schemas:
    tiktok_product_search_input:
      $schema: https://json-schema.org/draft/2020-12/schema
      title: 'TikTok product search: confirmed inputs'
      type: object
      additionalProperties: false
      properties:
        query:
          type: string
          minLength: 1
          pattern: \S
          description: >-
            Required nonblank search keyword, passed unchanged. No unverified
            supplier length limit is imposed.
        region:
          type: string
          const: US
          default: US
          description: >-
            Omission defaults to US. Reject null, lowercase us and other
            regions.
        cursor:
          type:
            - string
            - 'null'
          default: null
          minLength: 1
          description: >-
            Opaque Mouter continuation cursor. Omit or pass null to begin;
            return subsequent cursors unchanged with the same query and region.
      required:
        - query
    tiktok_product_search_result:
      $schema: https://json-schema.org/draft/2020-12/schema
      title: 'TikTok product search: confirmed results'
      type: object
      additionalProperties: false
      properties:
        platform:
          type: string
          const: tiktok
        region:
          type: string
          const: US
        query:
          type: string
          minLength: 1
          pattern: \S
          description: >-
            Required nonblank search keyword, passed unchanged. No unverified
            supplier length limit is imposed.
        items:
          type: array
          items:
            $ref: '#/components/schemas/tiktok_product_search_result__Product'
        returned_count:
          maximum: 9007199254740991
          minimum: 0
          type: integer
        retrieved_at:
          maximum: 9007199254740991
          minimum: 0
          type: integer
        pagination:
          type: object
          properties:
            has_more:
              type: boolean
            next_cursor:
              type:
                - string
                - 'null'
              minLength: 1
          required:
            - has_more
          additionalProperties: false
      required:
        - platform
        - region
        - query
        - items
        - returned_count
        - retrieved_at
        - pagination
    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
    tiktok_product_search_result__Product:
      type: object
      additionalProperties: false
      properties:
        product_id:
          type: string
          minLength: 1
          pattern: \S
          description: Native product ID text; no digits-only assumption.
        title:
          type: string
          minLength: 1
          pattern: \S
          description: Nonempty native product-level title, preserved exactly.
        sold_count:
          type:
            - integer
            - 'null'
          description: >-
            Native integer sold count; preserve the key and return null for
            supported missing values.
          minimum: 0
        shop:
          type: object
          additionalProperties: false
          properties:
            seller_id:
              type:
                - string
                - 'null'
              description: Native seller ID; null when missing.
            name:
              type:
                - string
                - 'null'
              description: Native shop name; null when missing.
          required:
            - seller_id
            - name
        canonical_url:
          type: string
          minLength: 1
          pattern: \S
          description: >-
            Native canonical link text. No additional scheme/host enumeration or
            accessibility guarantee is imposed.
        price_display:
          type: object
          additionalProperties: false
          properties:
            currency_name:
              type: string
              description: Native currency-name text; no ISO enumeration is claimed.
            currency_show_mode:
              type: integer
              description: Native integer; no inferred enumeration or value range.
            currency_symbol:
              type: string
              description: Native currency-symbol text; do not infer a currency code.
            decimal_point_symbol:
              type: string
              description: Native decimal-separator text.
          required:
            - currency_name
            - currency_show_mode
            - currency_symbol
            - decimal_point_symbol
        image:
          type: object
          additionalProperties: false
          properties:
            height:
              type: integer
              description: >-
                Native product-image height. Preserve its value and unit; do not
                substitute video height.
          required:
            - height
        review_count_text:
          type:
            - string
            - 'null'
          description: >-
            Native review-count text; preserve the key and return null for
            supported missing values.
        review_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          description: >-
            If the native text is null, derive null. Otherwise accept only the
            complete ASCII pattern ^[0-9]+$ within 0..9007199254740991. Preserve
            the original text. Do not trim, estimate K/M, parse separators,
            decimals, signs or non-ASCII digits, or stringify invalid native
            types.
      required:
        - product_id
        - title
        - sold_count
        - shop
        - canonical_url
        - price_display
        - image
        - review_count_text
        - review_count
    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.