| 接口速览 | 说明 |
|---|---|
| 鉴权方式 | Bearer tw_live_*(或 tw_test_*) |
| 积分计费 | 轮询接口本身 0 Credits(免费);完成后 meta.billing.credits_charged 为 6 |
| 缓存机制 | 无(读取任务实时状态) |
| 限流与状态码 | 每 2–5 秒轮询一次,直至 completed 或 failed;HTTP 200 |
POST /api/insight/customs/profile/query(Body 传 {"task_id": "..."})。{"error": "..."},而只要企业存在、整体任务仍会标记为 completed。建议直接读取 data.dimensions_status({ ok, failed, total })判断可用维度数。Authorization: Bearer ********************curl --location '/api/insight/customs/profile/' \
--header 'Authorization: Bearer <token>'{
"success": true,
"task_id": "cm8x9p7y20009v8z3k1m4n6p8",
"status": "completed",
"progress": {
"stage": "done"
},
"data": {
"company_id": "1039559602620129280",
"role": "exporter",
"dimensions": {
"detail": {
"company_name": "APPLE COMPUTER TRADING (SHANGHAI) CO LTD",
"country": "China",
"total_shipments": 1248,
"last_shipment_date": "2026-10-28"
},
"trade_trend": {
"series": [
{
"month": "2026-08",
"shipments": 112,
"weight_kg": 48200
},
{
"month": "2026-09",
"shipments": 135,
"weight_kg": 56900
},
{
"month": "2026-10",
"shipments": 128,
"weight_kg": 52100
}
]
},
"shipments": {
"records": [
{
"date": "2026-10-28",
"hs_code": "851713",
"product": "SMARTPHONE ACCESSORIES",
"importer": "APPLE INC",
"departure_port": "SHANGHAI",
"destination_port": "LOS ANGELES",
"weight_kg": 1850
}
]
},
"contacts": {
"list": [
{
"name": "Logistics Operations",
"email": "logistics@apple.com",
"title": "Supply Chain"
}
]
},
"partners": {
"list": [
{
"partner_name": "APPLE INC",
"country": "United States",
"shipment_count": 820,
"share_pct": 65.7
}
]
},
"hs_codes": {
"list": [
{
"hs_code": "851713",
"description": "Smartphones & parts",
"shipment_count": 640
}
]
},
"products": {
"list": [
{
"keyword": "smartphone",
"count": 510
},
{
"keyword": "power adapter",
"count": 290
}
]
},
"trade_areas": {
"list": [
{
"country": "United States",
"shipment_count": 820
},
{
"country": "Netherlands",
"shipment_count": 215
}
]
},
"ports": {
"list": [
{
"port": "SHANGHAI",
"role": "departure",
"shipment_count": 980
},
{
"port": "LOS ANGELES",
"role": "destination",
"shipment_count": 610
}
]
}
},
"dimensions_status": {
"ok": 9,
"failed": 0,
"total": 9
}
},
"error": null,
"meta": {
"billing": {
"credits_charged": 6,
"byok_used": false
},
"created_at": "2026-11-20T09:02:00.000Z",
"completed_at": "2026-11-20T09:02:54.000Z"
}
}