同步检测商品标题、长描述、短描述中提取出的关键词与在先注册文字商标的相似和冲突情况。
请求参数
| 参数 | 类型 | 必填 | 默认 | 说明 |
|---|---|---|---|---|
title | string | ✅ | "" | 商品标题文本(系统自动切词并进行 N-Gram 提取分析) |
shortDesc | string | ❌ | "" | 商品短描述文本 |
desc | string | ❌ | "" | 商品长描述文本 |
classCodes | array | ❌ | [] | 尼斯分类代码列表进行筛选 |
skipStopWords | boolean | ❌ | true | 是否在 N-Gram 提取时过滤掉纯停用词 |
skipNumbers | boolean | ❌ | true | 是否在 N-Gram 提取时过滤掉纯数字 |
customStopWords | string[] | ❌ | [] | 自定义额外过滤的停用词列表 |
请求示例
{
"title": "Ergonomic Chair",
"shortDesc": "Comfortable design for office work",
"desc": "A mesh back ergonomic office chair featuring dynamic lumbar support.",
"classCodes": ["020"],
"skipStopWords": true,
"skipNumbers": true,
"customStopWords": ["chair", "desk"]
} cURLPython
curl -X POST "https://api.trohub.com/v1/trademarks/word-mark/keyword-search" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"Ergonomic Chair","shortDesc":"Comfortable design for office work","desc":"A mesh back ergonomic office chair featuring dynamic lumbar support.","classCodes":["020"],"skipStopWords":true,"skipNumbers":true,"customStopWords":["chair","desk"]}'import requests
url = "https://api.trohub.com/v1/trademarks/word-mark/keyword-search"
headers = {
"X-API-Key": "YOUR_API_KEY",
"Content-Type": "application/json"
}
payload = {
"title": "Ergonomic Chair",
"shortDesc": "Comfortable design for office work",
"desc": "A mesh back ergonomic office chair featuring dynamic lumbar support.",
"classCodes": ["020"],
"skipStopWords": True,
"skipNumbers": True,
"customStopWords": ["chair", "desk"]
}
response = requests.post(url, headers=headers, json=payload)
print(response.json()) 🔧 API 沙盒测试 POST
/trademarks/word-mark/keyword-search 响应示例
{
"success": true,
"message": "Keyword search completed successfully",
"data": {
"desc": [
{
"id": "b075f18cba174489a2616844c3071a13",
"markText": "DYNAMIC",
"regNumber": "6794576",
"status": "LIVE"
}
]
}
}