Product attribute matching

Updated at:

This service provides one-stop, intelligent filling for cross-platform category and required attributes based on a multimodal large model. You provide product information from a source platform, including up to three product images. The service returns the precise category path on the destination platform and the filled values for all required attributes in that category. Each attribute includes a confidence score and a reason for the match. This is a synchronous call that currently supports only TEMU as the destination platform.

Positioning and use cases

Platforms like TEMU define a set of required attributes, such as material, battery properties, connectivity, size, shell material, and supported systems, for each leaf category. These attributes can also have hierarchical dependencies. For example, the "rechargeable battery model" is required only if "battery properties" is set to "rechargeable battery". Manual entry is error-prone and time-consuming.

Unlike the product category matching service, this API not only matches the product to a category but also automatically fills in all required attributes for that category. It also supports multimodal input (text combined with images) for more accurate attribute inference.

Typical use cases:

  • Automate bulk listing for top sellers: Get a complete set of attributes in a single API call and integrate directly with your publishing interface.

  • Integrate with ERP or SaaS platforms: Use this service as a core component in your product listing pipeline to replace manual attribute entry.

  • Enable rapid listing for SMBs: Allow merchants to upload product information and images one by one and receive a complete draft for publishing in seconds.

API

POST /rest/ai/category/attribute/match

Quick start

import json

data = json.dumps({
    "SourcePlatform": "1688",
    "TargetPlatform": "temu",
    "Title": "In-stock Pet Airtag Cat Collar Anti-loss GPS Tracking Kitten Reflective Bell",
    "SourceCategory": "Tracker",
    "Description": "Blue woven nylon collar with a built-in AirTag compatible positioning module...",
    "Sku": "Purple",
    "ItemSpec": "Material: Polyester, Applicable object: General, Brand: AMASON PET",
    "ImageUrl": [
        "https://cbu01.alicdn.com/.../main.jpg",
        "https://cbu01.alicdn.com/.../detail-1.jpg"
    ]
})
result = make_signed_request("/rest/ai/category/attribute/match", data)

d = result["Data"]
print(f"Category: {d['CategoryPath']}")
for attr in d["Attributes"]:
    print(f"  {attr['Name']} ({attr['NameEn']}): {attr['SelectedValues']}  [confidence {attr['Confidence']}]")

Request parameters

Parameter

Type

Required

Description

SourcePlatform

String

Yes

The source platform, such as 1688.

TargetPlatform

String

Yes

The destination platform. Currently, only temu is supported.

Title

String

Yes

The product title. This is the primary source of semantic information for the model.

SourceCategory

String

Yes

The product's original category on the source platform. This helps with disambiguation.

Description

String

Conditional

You must provide either the product description or a product image. The more information you provide, the more accurate the match will be.

Sku

String

Yes

The product SKU title. Use semicolons to separate multiple SKUs.

ItemSpec

String

Yes

Product attribute key-value pairs, such as "Material: Polyester, Applicable object: General, Brand: AMASON PET".

ImageUrl

String[]

Conditional

An array of product image URLs. You can provide up to 3 images. You must provide either this parameter or Description. The model extracts text from images, so for best results, provide a main image and detail images that contain text.

Response parameters

Top-level structure

Parameter

Type

Description

Code

String

The business status code. A value of Success indicates that the request is successful.

Message

String

The error message. The value is "ok" if the operation is successful.

Success

Boolean

Indicates whether the call was successful.

RequestId

String

The unique request ID.

Data.CategoryId

Number

The ID of the matched leaf category.

Data.CategoryPath

String

The full category path, separated by /.

Data.CategoryName

String

The name of the leaf category.

Data.TotalAttributes

Number

The total number of attributes in this category.

Data.FilledCount

Number

The number of attributes that were successfully filled.

Data.Attributes

Object[]

An array of attribute filling results. See the table below for the structure of each element.

Data.UsageMap.ProcessingCount

Number

The number of processing units consumed by this call, used for billing.

Attributes array elements

Parameter

Type

Description

Name

String

The attribute name in Chinese, as defined on the destination platform.

NameEn

String

The English name of the attribute.

AttrId

Number

The attribute ID, as defined by the destination platform.

InputType

String

Enter the type, such as Single-select dropdown, Multi-select checkbox (maximum of 3), or Text input.

Matched

Boolean

Indicates whether the match is successful, returning true or false. If the value is false, manual entry is usually required.

SelectedValues

String[]

A list of selected text values, such as ["iOS","Android"].

SelectedVids

Number[]

A list of selected value IDs, such as [30127,30128].

Confidence

Number

The confidence score for the filled attribute, from 0 to 100. For routing, use the same three-tier strategy that is described in product category matching.

Reason

String

The reason for the match, provided in natural language. This can be used for traceability and fine-tuning.

Example

Sample request

{
  "SourcePlatform": "1688",
  "TargetPlatform": "temu",
  "Title": "现货适用宠物Airtag猫咪项圈防丢失可定位追踪小猫反光铃铛",
  "SourceCategory": "追踪器",
  "Description": "蓝色编织尼龙项圈,内置 AirTag 兼容定位模块,含反光条与铃铛...",
  "Sku": "紫色",
  "ItemSpec": "材质:涤纶,适用对象:通用,品牌:艾马逊AMASON PET,图案:单色,是否专利货源:是",
  "ImageUrl": [
    "https://cbu01.alicdn.com/img/ibank/main.jpg",
    "https://cbu01.alicdn.com/img/ibank/detail-1.jpg"
  ]
}

Sample response (excerpt)

{
  "Code": "success",
  "Message": "Success",
  "Success": true,
  "RequestId": "2157065A-D6C8-1F3E-A4D0-B1234567890",
  "Data": {
    "CategoryId": 1516,
    "CategoryPath": "宠物用品/猫用品/猫挂饰、项圈、牵引带/猫项圈",
    "CategoryName": "猫项圈",
    "TotalAttributes": 5,
    "FilledCount": 4,
    "Attributes": [
      {
        "Name": "支持系统", "NameEn": "Support System", "AttrId": 719265,
        "InputType": "多选勾选(最多3个)", "Matched": true,
        "SelectedValues": ["iOS", "Android"], "SelectedVids": [30127, 30128],
        "Confidence": 95,
        "Reason": "Product is marked as AirTag compatible; smart tracking devices are typically compatible with both systems"
      },
      {
        "Name": "电池属性", "NameEn": "Battery Properties", "AttrId": 662274,
        "InputType": "单选下拉", "Matched": true,
        "SelectedValues": ["可充电电池"], "SelectedVids": [52029],
        "Confidence": 90,
        "Reason": "Product supports Bluetooth/smart tracking and includes electronics, which usually require a rechargeable battery"
      },
      {
        "Name": "激光产品", "NameEn": "Laser Type", "AttrId": 682439,
        "InputType": "单选下拉", "Matched": true,
        "SelectedValues": ["不含激光功能"], "SelectedVids": [52255],
        "Confidence": 95,
        "Reason": "No laser-related functions or parts are mentioned in the product details or attributes"
      }
    ],
    "UsageMap": { "ProcessingCount": 1 }
  }
}

Recommendations

  • Always include images: Compared to using only text, providing 2 or 3 images can increase the confidence for visually-dependent attributes like material, color, and shell type by 10 to 15 points.

  • Use a fallback for matched=false: When a required attribute has matched=false or a confidence score below 60, you should route it to a manual review queue instead of publishing it directly.

  • Handle breadcrumb-dependent attributes: For dependent attributes (for example, "Battery Properties=Rechargeable Battery" requires "Rechargeable Battery Model"), a child attribute might return matched=false due to insufficient information, even if the parent attribute was matched. Your client application must validate these dependencies.

  • selectedVids vs. selectedValues: Use selectedVids (numeric IDs) when integrating directly with the TEMU publishing API. Use selectedValues (text) when displaying the information in a UI for manual review.

  • Choose the right API for your needs: If you only need to match categories and do not need attributes, use the product category matching API. It is faster and has a lower cost.

Error codes

Error code

Description

InvalidParameter

A required field is missing, the TargetPlatform is not temu, or the ImageUrl array contains more than 3 images.

InputContentBlocked

The input text or images triggered a security review.

DownstreamUnavailable

The downstream multimodal LLM service is temporarily unavailable. Retry the request by using exponential backoff.

FreeQuotaExhausted

Your trial quota has been exhausted.

InternalError

An internal server error occurred. Save the request ID and contact technical support.

For a complete list of error codes, see Error codes.

Limits

  • Calling mode: Synchronous. Default QPS = 2. The maximum request timeout is 30 seconds. For more information, see Frequency Limits.

  • Destination platform: Currently, only TEMU is supported.

  • Image quantity: The ImageUrl array supports up to 3 images. Supported formats: JPG/JPEG/PNG/BMP/WEBP. Resolution: 256×256 to 3000×3000. Max size per image: 10 MB.

  • Billing: ¥0.035 per call, billed based on the ProcessingCount. For more information, see Product Listing Optimizer Pro Billing.

FAQ

Does the service currently only support 1688 as the source platform and TEMU as the destination platform?

The SourcePlatform parameter requires 1688 as the value, but the service is not limited to products from that platform. You only need to provide the basic product information (title, category, attributes, and description). Currently, TEMU is the only supported destination platform, but more platforms will be added in the future.

If I only have a product link, can the service extract the product information and perform attribute matching?

The service does not currently support extracting product information directly from a source platform URL. This feature is planned for a future release.

When should I provide product images, and which images should I use?

If the source product information lacks detailed attributes and descriptions, we recommend providing product images that contain text. The system uses Optical Character Recognition (OCR) to extract and supplement the product information, which helps generate more accurate category and attribute matches.

Next steps