Skip to main content

POST Diagnose and Optimize Product

Diagnose and Optimize Product Shop Required scope: serller.product.optimize Diagnose products to obtain information that helps you to improve the product content, enhancing product visibility and customer trust. The returned information includes:

  • Listing quality information (available only for the US market).
  • Issues with the current product details and the overall recommendations
  • Auto-generated optimization suggestions targeted for specific product fields, including the title, description, and image. This API enables you to diagnose both live products (status: ACTIVATE) and brand-new products not yet listed in TikTok Shop.
  • To diagnose a live product, provide the product_id and category_id and leave all other product details blank.
  • To diagnose a brand-new product not yet listed in TikTok Shop, omit the product_id and provide the product details as necessary.
  • To diagnose a product similar to an existing one, provide the product_id and category_id, along with any new details. The diagnosis will combine the existing product's information with the new details you provide. For example, if you provide a new title, the diagnosis will use the new title instead of the existing one while keeping the other values from the product ID. Note:
  • To diagnose multiple live products, use the Product Information Issue Diagnosis API

.

  • This API focuses solely on optimizing product visibility and does not evaluate whether your product meets listing requirements. Quality issues identified by this API do not block your product from being listed. To verify listing requirements, use the Check Product Listing API

. Version 202411

POST/product/202411/products/diagnose_optimize

Request

Header

PropertiesTypeDescription
content-type RequiredstringAllowed type: application/json
x-tts-access-token RequiredstringThe seller access_token value from Get Access Token, when user_type = 0. Follow this guide to get seller access_token.

Query

PropertiesTypeDescription
app_key RequiredstringEvery single app will have a unique key. Please use the specific key assigned to your app.
sign RequiredstringSignature generated by gen algorithm. When you send API requests to TTS, you must sign them so that TTS can identify the senders.
timestamp RequiredintUnix timestamp GMT (UTC+00:00). This timestamp is used across all API requests. Developers can use this convert to local time.
shop_cipher RequiredstringUse this property to pass shop information in requesting the API. Failure in passing the correct value when requesting the API for cross-border shops will return incorrect response. Get by API Get Authorization Shop

Body

PropertiesTypeDescription
product_idstringThe product ID of an existing product in TikTok Shop.- Omit this if you are diagnosing a brand-new product not yet listed in TikTok Shop.- Provide this ID if the product is similar to an existing one, and you want the diagnosis to consider both the existing product's details and the new information in this request.
category_id RequiredstringThe ID of the category of this product. It must be a leaf category that corresponds to the category tree type specified in the category_version property. Use the Get Categories API to find out if a category is a leaf category in a particular category_version.Note:- For the US market, refer to TikTok Shop Restricted Products Policy for information on product category restrictions.- For the Indonesia market, to list a product on both TikTok Shop and Tokopedia, you must use only categories that are available on both platforms.
descriptionstringThe product description in HTML format.Note:- The content must conform to the HTML syntax. All HTML tags are accepted but to optimize display on the TikTok Shop product detail page, the system will automatically convert certain tags into alternative formats, such as rendering tags as images.- Max length: 10,000 characters.- Images must use TikTok Shop image URLs, not exceed 4000px, and include src, width, and height attributes.Recommendations:- If you are syncing a pre-existing description from another platform, include the full HTML source description here.- Provide a detailed description, ideally over 300 characters.- Include 3-5 key selling points, each under 250 characters, with supporting images.- Use 1600x1600 px for the image dimensions.
brand_idstringThe ID of the brand of this product.Use the Get Brands API to get the list of available brands for a shop.Note: Unauthorized brands won't be displayed on TikTok Shop.
main_images[]objectA list of images to display in the product image gallery.Use the Upload Product Image API to upload the images first and obtain the corresponding image URI.Note:- Max number of image URIs: 9- Arrange your image URIs in the sequence that they should appear on TikTok Shop.- Image dimensions: [300x300 px, 4000x4000 px]Recommendations:- Use a minimum of 5 images.- The first image should have a white background. Use the Optimize Images API to change the background to white.
titlestringThe product title.Title length:- DE, ES, FR, IE, IT, JP, UK, US: [1, 255]- BR, MX: [1, 300]- Other regions: [25, 255]
product_attributes[]objectA list of general attributes (e.g. manufacturer, country of origin, materials used) that describe the product as a whole, regardless of variant.Note: The attributes available for use are determined by the system based on the product's assigned category, with some being mandatory. Retrieve the product attributes by using the Get Attributes API.
size_chartobjectThe measurement details of the product to help buyers find the right size.Note:- For certain product categories, size charts may be required or not supported. Use the Get Category Rules API to check the requirements.- If size charts are not supported, even if you provide a size chart here, the size chart will not be saved.- Provide either a TikTok Shop size chart template ID or a size chart image; if both are provided, the ID takes priority.
optimization_fields[]stringThe fields for which you want to generate specific optimization suggestions.Possible values: - TITLE: Product title- DESCRIPTION: Product description (suggestions for this may take more than 10 seconds to generate)- IMAGE: Product image displayed in the image gallery - ALL: Suggestions are generated for all the above fields- NONE: No suggestions will be provided.Default: NONE

Example

CurlGoNode.jsJavaEnable word wrap

Response Parameters

PropertiesTypeDescription
codeintThe success or failure status code returned in API response.
messagestringThe success or failure messages returned in API response. Reasons of failure will be described in the message.
request_idstringRequest log
dataobjectSpecific return information

Example

JSONEnable word wrap

Error Code

View common error codes

| Code | Message | | --- | --- | | Empty. No business logic error codes. |

Is this content helpful?Helpful

Not Helpful

PreviousNext