| 接口速览 | 说明 |
|---|---|
| 鉴权方式 | Bearer tw_live_*(或 tw_test_*) |
| 积分计费 | 按次固定 0.14 Credits / 次(与 limit 无关;502 不扣费) |
| 缓存机制 | L1 请求级缓存;30 天内同参数免重扣 |
| 限流与状态码 | limit 支持 10 / 20 / 50 / 100;国家 ID 传 "0" 表示不限;HTTP 201 |
Authorization: Bearer ********************{
"start_time": "2025-11-01",
"end_time": "2026-11-01",
"product": "led",
"hscode": "",
"importer_country": "0",
"limit": 10,
"page": 1,
"tradeNumSort": 1,
"type": "importer",
"exporter_country": "0"
}curl --location '/api/customs/analytics/market-trend' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"start_time": "2025-11-01",
"end_time": "2026-11-01",
"product": "led",
"hscode": "",
"importer_country": "0",
"limit": 10,
"page": 1,
"tradeNumSort": 1,
"type": "importer",
"exporter_country": "0"
}'{
"success": true,
"request_id": "req_E6UYrESqgss1",
"data": {
"code": 1,
"msg": "获取成功",
"time": "1776239998",
"data": {
"list": [
{
"quantity": "1303104937",
"weight": "68968974.000",
"amount": "427772257.01",
"date": 1744905600,
"sellerCount": 5070,
"buyerCount": 5031,
"monthText": "2025-04",
"tradeCount": 46964
}
],
"all_times": 46964,
"all_qty": 1303104937,
"all_weight": 68968974
}
},
"meta": {
"billing": {
"credits_charged": 0.14,
"byok_used": false
}
},
"error": null
}