Product attribute matching
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']}]")
See the Product Attribute Matching API (OpenAPI Portal) on the Alibaba Cloud OpenAPI Developer Portal for complete request signing instructions, SDK examples (Java, Python, and Go), and online debugging tools.
Request parameters
|
Parameter |
Type |
Required |
Description |
|
|
String |
Yes |
The source platform, such as |
|
|
String |
Yes |
The destination platform. Currently, only |
|
|
String |
Yes |
The product title. This is the primary source of semantic information for the model. |
|
|
String |
Yes |
The product's original category on the source platform. This helps with disambiguation. |
|
|
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. |
|
|
String |
Yes |
The product SKU title. Use semicolons to separate multiple SKUs. |
|
|
String |
Yes |
Product attribute key-value pairs, such as |
|
|
String[] |
Conditional |
An array of product image URLs. You can provide up to
3
images. You must provide either this parameter or |
Response parameters
Top-level structure
|
Parameter |
Type |
Description |
|
|
String |
The business status code. A value of |
|
|
String |
The error message. The value is |
|
|
Boolean |
Indicates whether the call was successful. |
|
|
String |
The unique request ID. |
|
|
Number |
The ID of the matched leaf category. |
|
|
String |
The full category path, separated by |
|
|
String |
The name of the leaf category. |
|
|
Number |
The total number of attributes in this category. |
|
|
Number |
The number of attributes that were successfully filled. |
|
|
Object[] |
An array of attribute filling results. See the table below for the structure of each element. |
|
|
Number |
The number of processing units consumed by this call, used for billing. |
Attributes array elements
|
Parameter |
Type |
Description |
|
|
String |
The attribute name in Chinese, as defined on the destination platform. |
|
|
String |
The English name of the attribute. |
|
|
Number |
The attribute ID, as defined by the destination platform. |
|
|
String |
Enter the type, such as |
|
|
Boolean |
Indicates whether the match is successful, returning |
|
|
String[] |
A list of selected text values, such as |
|
|
Number[] |
A list of selected value IDs, such as |
|
|
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. |
|
|
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=falseor aconfidencescore 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=falsedue to insufficient information, even if the parent attribute was matched. Your client application must validate these dependencies. -
selectedVidsvs.selectedValues: UseselectedVids(numeric IDs) when integrating directly with the TEMU publishing API. UseselectedValues(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 |
|
|
A required field is missing, the |
|
|
The input text or images triggered a security review. |
|
|
The downstream multimodal LLM service is temporarily unavailable. Retry the request by using exponential backoff. |
|
|
Your trial quota has been exhausted. |
|
|
An internal server error occurred. Save the |
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
ImageUrlarray 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
Next steps
-
Product Category Matching -- A lightweight alternative for category matching only.
-
Product Listing Optimizer Pro -- An end-to-end workflow that automatically calls this API to handle both category and attribute matching.