| 接口速览 | 说明 |
|---|---|
| 鉴权方式 | Bearer tw_live_*(或 tw_test_*) |
| 积分计费 | 轮询接口本身 0 Credits(免费);完成后在 meta.billing.credits_charged 返回实扣积分(15 或 0) |
| 缓存机制 | 无(读取任务实时状态) |
| 限流与状态码 | 与 GET /api/insight/customs/match/{task_id} 返回结构完全一致;HTTP 201 |
GET /api/insight/customs/match/{task_id} 功能和返回结构完全一致,专为不方便在 URL 路径中拼接动态 task_id 的集成网关、低代码平台或防火墙环境提供,只需在 JSON 请求体中传入 task_id。Authorization: Bearer ********************{
"task_id": "cm8x9k2p10004v8z3q7r5t1m2"
}curl --location '/api/insight/customs/match/query' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"task_id": "cm8x9k2p10004v8z3q7r5t1m2"
}'{
"success": true,
"task_id": "cm8x9k2p10004v8z3q7r5t1m2",
"status": "completed",
"progress": {
"stage": "done"
},
"data": {
"query_company": "Apple Inc",
"resolved_identity": {
"english_name": "Apple Inc",
"domain": "apple.com"
},
"ai_candidates": [
"APPLE INC",
"APPLE COMPUTER TRADING (SHANGHAI) CO LTD"
],
"search_window": {
"start_time": "2025-11-20",
"end_time": "2026-11-20",
"months": 12
},
"filter_summary": {
"candidates_examined": 14,
"related_count": 3,
"unrelated_count": 11,
"kept_records": 48,
"dropped_records": 19
},
"search_summary": {
"total": 142,
"record_count": 48,
"recent_records": [
{
"date": "2026-10-28",
"exporter": "APPLE COMPUTER TRADING (SHANGHAI) CO LTD",
"importer": "APPLE INC",
"hs_code": "851713",
"product": "SMARTPHONE ACCESSORIES AND COMPUTING MODULES"
}
],
"per_candidate": [
{
"query": "APPLE INC",
"ok": true,
"total": 96
},
{
"query": "APPLE COMPUTER TRADING (SHANGHAI) CO LTD",
"ok": true,
"total": 46
}
]
},
"top_subjects": [
{
"query_name": "APPLE INC",
"hits_in_search": 31,
"matched_id": "1039559602620129280",
"customs_id": "-n5d2JMBtuxd06HaaVm1",
"customs_date": "2026-10-28",
"role": "exporter",
"match_ok": true,
"match_score": 100,
"match_kind": "subject"
}
]
},
"error": null,
"meta": {
"billing": {
"credits_charged": 15,
"byok_used": false
},
"created_at": "2026-11-20T09:00:00.000Z",
"completed_at": "2026-11-20T09:01:18.000Z"
}
}