先区分两个数据层次
外贸海关数据的常见需求,是想了解某家公司具体进出口了什么货物。在动手查找之前,需要先区分两个不同层次的数据,否则容易在错误的方向上耗费时间。
第一层:海关统计数据
例如某类商品当月的出口数量、出口目的国分布、按贸易方式划分的金额等。这类数据相对容易获取,国内有多个官方免费渠道,用于行业分析和趋势研判已经足够。
第二层:企业逐票明细
即带有具体公司名称、收发货人、品名、数量和金额的每一笔交易记录。这类数据几乎没有免费来源。网络上所谓"免费海关数据网站"大多提供的是第一层统计数据,而许多用户真正需要的是第二层明细。
明确这两层的差异,可以避免在不匹配的渠道上反复查找。
#mermaid-svg-i7tHaqdfk0KduirV{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-i7tHaqdfk0KduirV .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-i7tHaqdfk0KduirV .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-i7tHaqdfk0KduirV .error-icon{fill:#552222;}#mermaid-svg-i7tHaqdfk0KduirV .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-i7tHaqdfk0KduirV .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-i7tHaqdfk0KduirV .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-i7tHaqdfk0KduirV .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-i7tHaqdfk0KduirV .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-i7tHaqdfk0KduirV .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-i7tHaqdfk0KduirV .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-i7tHaqdfk0KduirV .marker{fill:#333333;stroke:#333333;}#mermaid-svg-i7tHaqdfk0KduirV .marker.cross{stroke:#333333;}#mermaid-svg-i7tHaqdfk0KduirV svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-i7tHaqdfk0KduirV p{margin:0;}#mermaid-svg-i7tHaqdfk0KduirV .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-svg-i7tHaqdfk0KduirV .cluster-label text{fill:#333;}#mermaid-svg-i7tHaqdfk0KduirV .cluster-label span{color:#333;}#mermaid-svg-i7tHaqdfk0KduirV .cluster-label span p{background-color:transparent;}#mermaid-svg-i7tHaqdfk0KduirV .label text,#mermaid-svg-i7tHaqdfk0KduirV span{fill:#333;color:#333;}#mermaid-svg-i7tHaqdfk0KduirV .node rect,#mermaid-svg-i7tHaqdfk0KduirV .node circle,#mermaid-svg-i7tHaqdfk0KduirV .node ellipse,#mermaid-svg-i7tHaqdfk0KduirV .node polygon,#mermaid-svg-i7tHaqdfk0KduirV .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-i7tHaqdfk0KduirV .rough-node .label text,#mermaid-svg-i7tHaqdfk0KduirV .node .label text,#mermaid-svg-i7tHaqdfk0KduirV .image-shape .label,#mermaid-svg-i7tHaqdfk0KduirV .icon-shape .label{text-anchor:middle;}#mermaid-svg-i7tHaqdfk0KduirV .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-i7tHaqdfk0KduirV .rough-node .label,#mermaid-svg-i7tHaqdfk0KduirV .node .label,#mermaid-svg-i7tHaqdfk0KduirV .image-shape .label,#mermaid-svg-i7tHaqdfk0KduirV .icon-shape .label{text-align:center;}#mermaid-svg-i7tHaqdfk0KduirV .node.clickable{cursor:pointer;}#mermaid-svg-i7tHaqdfk0KduirV .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-i7tHaqdfk0KduirV .arrowheadPath{fill:#333333;}#mermaid-svg-i7tHaqdfk0KduirV .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-i7tHaqdfk0KduirV .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-i7tHaqdfk0KduirV .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-i7tHaqdfk0KduirV .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-i7tHaqdfk0KduirV .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-i7tHaqdfk0KduirV .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-i7tHaqdfk0KduirV .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-i7tHaqdfk0KduirV .cluster text{fill:#333;}#mermaid-svg-i7tHaqdfk0KduirV .cluster span{color:#333;}#mermaid-svg-i7tHaqdfk0KduirV div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-i7tHaqdfk0KduirV .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-i7tHaqdfk0KduirV rect.text{fill:none;stroke-width:0;}#mermaid-svg-i7tHaqdfk0KduirV .icon-shape,#mermaid-svg-i7tHaqdfk0KduirV .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-i7tHaqdfk0KduirV .icon-shape p,#mermaid-svg-i7tHaqdfk0KduirV .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-i7tHaqdfk0KduirV .icon-shape .label rect,#mermaid-svg-i7tHaqdfk0KduirV .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-i7tHaqdfk0KduirV .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-i7tHaqdfk0KduirV .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-i7tHaqdfk0KduirV :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} 数据层次对比
外贸海关数据需求
数据层次
第一层:海关统计数据
第二层:企业逐票明细
特点:
• 商品/国别/贸易方式统计
• 相对容易获取
• 多个官方免费渠道
特点:
• 带公司名称/收发货人
• 品名/数量/金额明细
• 几乎没有免费来源
图1:外贸海关数据需求的两个层次
各类来源逐一说明
#mermaid-svg-LlbdPCS4eye9sCJP{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-LlbdPCS4eye9sCJP .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-LlbdPCS4eye9sCJP .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-LlbdPCS4eye9sCJP .error-icon{fill:#552222;}#mermaid-svg-LlbdPCS4eye9sCJP .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-LlbdPCS4eye9sCJP .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-LlbdPCS4eye9sCJP .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-LlbdPCS4eye9sCJP .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-LlbdPCS4eye9sCJP .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-LlbdPCS4eye9sCJP .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-LlbdPCS4eye9sCJP .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-LlbdPCS4eye9sCJP .marker{fill:#333333;stroke:#333333;}#mermaid-svg-LlbdPCS4eye9sCJP .marker.cross{stroke:#333333;}#mermaid-svg-LlbdPCS4eye9sCJP svg{font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-LlbdPCS4eye9sCJP p{margin:0;}#mermaid-svg-LlbdPCS4eye9sCJP .label{font-family:"trebuchet ms",verdana,arial,sans-serif;color:#333;}#mermaid-svg-LlbdPCS4eye9sCJP .cluster-label text{fill:#333;}#mermaid-svg-LlbdPCS4eye9sCJP .cluster-label span{color:#333;}#mermaid-svg-LlbdPCS4eye9sCJP .cluster-label span p{background-color:transparent;}#mermaid-svg-LlbdPCS4eye9sCJP .label text,#mermaid-svg-LlbdPCS4eye9sCJP span{fill:#333;color:#333;}#mermaid-svg-LlbdPCS4eye9sCJP .node rect,#mermaid-svg-LlbdPCS4eye9sCJP .node circle,#mermaid-svg-LlbdPCS4eye9sCJP .node ellipse,#mermaid-svg-LlbdPCS4eye9sCJP .node polygon,#mermaid-svg-LlbdPCS4eye9sCJP .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-LlbdPCS4eye9sCJP .rough-node .label text,#mermaid-svg-LlbdPCS4eye9sCJP .node .label text,#mermaid-svg-LlbdPCS4eye9sCJP .image-shape .label,#mermaid-svg-LlbdPCS4eye9sCJP .icon-shape .label{text-anchor:middle;}#mermaid-svg-LlbdPCS4eye9sCJP .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-LlbdPCS4eye9sCJP .rough-node .label,#mermaid-svg-LlbdPCS4eye9sCJP .node .label,#mermaid-svg-LlbdPCS4eye9sCJP .image-shape .label,#mermaid-svg-LlbdPCS4eye9sCJP .icon-shape .label{text-align:center;}#mermaid-svg-LlbdPCS4eye9sCJP .node.clickable{cursor:pointer;}#mermaid-svg-LlbdPCS4eye9sCJP .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-LlbdPCS4eye9sCJP .arrowheadPath{fill:#333333;}#mermaid-svg-LlbdPCS4eye9sCJP .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-LlbdPCS4eye9sCJP .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-LlbdPCS4eye9sCJP .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-LlbdPCS4eye9sCJP .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-LlbdPCS4eye9sCJP .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-LlbdPCS4eye9sCJP .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-LlbdPCS4eye9sCJP .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-LlbdPCS4eye9sCJP .cluster text{fill:#333;}#mermaid-svg-LlbdPCS4eye9sCJP .cluster span{color:#333;}#mermaid-svg-LlbdPCS4eye9sCJP div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"trebuchet ms",verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-LlbdPCS4eye9sCJP .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-LlbdPCS4eye9sCJP rect.text{fill:none;stroke-width:0;}#mermaid-svg-LlbdPCS4eye9sCJP .icon-shape,#mermaid-svg-LlbdPCS4eye9sCJP .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-LlbdPCS4eye9sCJP .icon-shape p,#mermaid-svg-LlbdPCS4eye9sCJP .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-LlbdPCS4eye9sCJP .icon-shape .label rect,#mermaid-svg-LlbdPCS4eye9sCJP .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-LlbdPCS4eye9sCJP .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-LlbdPCS4eye9sCJP .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-LlbdPCS4eye9sCJP :root{--mermaid-font-family:"trebuchet ms",verdana,arial,sans-serif;} 海关数据来源
A. 统计数据层
(免费、官方)
B. 国际权威免费源
(国际对照)
C. 企业逐票明细层
(付费或受限)
- 海关总署官方平台
- 海关统计数据查询入口
- 商务部商务数据中心
- 国家统计局国家数据
- UN Comtrade
- 世界银行 WITS
- OEC 经济复杂性观察站
- CnOpenData
- RESSET
- CCD
- OEC 批量下载
图2:三类主要数据来源及其细分
A. 统计数据层(免费、官方,建议优先使用)
1. 海关总署官方平台------首选免费渠道
链接:http://stats.customs.gov.cn/
无需登录即可查询,支持按商品编码、贸易伙伴、贸易方式等条件组合查询,结果可免费导出为 Excel。
说明:此为统计聚合数据,不包含企业名称。月报 2000-2019 年可直接下载,2020 年后的数据需前往海关总署门户查看。平台可能不定期改版,字段和年份以实际页面为准。
2. 海关统计数据查询入口
链接:http://stats.customs.gov.cn/queryData/queryDataByWhere
这是上述平台的实际查询页面,可直接按条件组合生成报表。
3. 商务部商务数据中心
链接:https://data.mofcom.gov.cn/
可查询货物进出口的月度统计、分国别统计,以及按贸易方式或企业性质划分的数据,适合宏观和行业分析,同样不含逐票明细。
月度统计直达页:https://data.mofcom.gov.cn/hwmy/imexmonth.shtml
分国别统计直达页:https://data.mofcom.gov.cn/hwmy/imexCountry.shtml
4. 国家统计局国家数据
可查看进出口总额等宏观指标,提供月度、季度、年度数据并支持导出。数据颗粒度较粗,适合了解整体背景。
统计局数据总入口:https://www.stats.gov.cn/sj/
B. 国际权威免费源(用于国际对照)
5. UN Comtrade 联合国商品贸易统计数据库
覆盖近 200 个国家和地区,按 HS 商品编码和伙伴国划分进出口数据,数据起始于 1962 年。
说明:免费访问设有额度限制,大批量或高频下载可能触及上限,具体额度以官方页面为准。
6. 世界银行 WITS 世界综合贸易方案
链接:https://wits.worldbank.org/
整合了 UN Comtrade 等数据,软件本身免费,可查询贸易额和关税,也能批量下载 UN Comtrade 数据。部分数据库的访问权限因用户身份不同而有差异。
下载入口:https://wits.worldbank.org/datadownload.aspx?lang=en
7. OEC 经济复杂性观察站
提供 HS(1995‑2024)和 SITC(1962‑2018)贸易数据,支持可视化查看、批量下载和 API 调用,可用于核对中国对外贸易数据。
C. 企业逐票明细层(付费或受限,列出供了解获取渠道)
8. CnOpenData 中国海关进出口交易明细数据
链接:https://www.cnopendata.com/data/m/customs/CN-hg.html
包含经营单位名称和编码、HS 商品码、美元金额、数量、原产地/目的地等字段。整理时段多为 2000-2016 年,学术研究中较常使用,但需付费或申请获取,并非自由免费下载。时效性以官方页面为准。
海关统计数据简介页(用于了解字段):https://www.cnopendata.com/data/m/customs/china-customs-statistics.html
工业企业海关进出口匹配版:https://www.cnopendata.com/data/m/customs/gq-hg.html(将工业企业名录与海关数据匹配,用于企业层面研究,需付费/申请)
9. RESSET 中国海关进出口全口岸数据库
介绍页链接:https://lib.uibe.edu.cn/zy/sjk/zwsjk/85813.htm
收录海关企业全口岸数据,支持批量下载,属于机构订阅型数据库,通常需通过高校图书馆访问,个人较难免费获取。
10. CCD 进出口贸易数据库
商业海关数据平台,以付费为主,此处列出供对比参考。
11. OEC 批量下载(含提单 Bill of Lading)
链接:https://oec.world/en/resources/bulk-download/bill-of-lading
提单逐票数据包含收发货人、品名、数量。说明:这些数据来自美国海关,仅覆盖美国口岸,批量下载多为付费,无法替代中国海关明细。
哪些可免费获取,哪些难以获取
可免费获取的部分:
上述 A、B 两类,包括海关总署平台、商务部数据中心、国家统计局,以及 UN Comtrade、WITS、OEC。这些均属于统计聚合层,用于查看趋势、国别和商品大类已经足够。
基本无法免费获取的部分:
带有公司名称的企业逐票明细。CnOpenData、RESSET、CCD 等海关明细库,或需付费,或需通过机构申请。其中 CnOpenData 的明细数据时段多截至 2016 年,时效以官方页面为准。
需要注意的几点:
- 不要因为"海关数据网站较多"而认为明细数据可以免费获取。免费的层级不包含公司名称。
- UN Comtrade 免费访问有额度限制,下载过于频繁会触发限制。
- OEC 的提单数据仅覆盖美国口岸,无法替代中国海关明细。
- 和鲸社区、阿里天池、飞桨 AI Studio 等国内数据集平台,目前尚未确认有现成可用的中国海关进出口专门数据集,需自行在平台搜索确认。
- 飞桨 AI Studio:https://aistudio.baidu.com/datasetoverview
- 阿里天池:https://tianchi.aliyun.com/specials/promotion/about
找不到所需数据时的建议:
- 查看趋势、国别、商品大类,使用官方免费的统计层即可,即海关总署平台配合商务部、国家统计局。
- 进行国际对照或查看其他国家数据,使用 UN Comtrade、WITS、OEC。
- 确需带公司名称的明细数据,需做好付费或走机构申请的准备。若你身处高校或合作机构,可咨询图书馆是否订阅了 RESSET 等数据库。
使用前的注意事项
- 逐一确认各来源的使用条件。 官方平台的导出范围、字段、年份会随平台改版变动(海关总署平台此前曾迁移网址),以打开时的实际页面为准。
- 国际源有额度和身份限制。 UN Comtrade 的免费额度、WITS 部分数据库的访问权限,均以官方页面说明为准。
- 付费库不可按免费使用。 CnOpenData、RESSET、CCD 等为付费或机构订阅产品,请按其授权方式获取。
- 企业明细数据涉及具体公司信息,使用时注意合规边界。 研究用途与其他用途的约束不同,请遵循数据提供方的许可。
如果上述来源较为分散、逐一尝试耗时较多,或不确定能否找到所需数据,可以联系我们协助。数聚天成 DeepSData 可为你完成一次深度数据可得性检索,在散落于各处的来源中逐一核实,如实反馈数据是否能够找到、在何处获取、属于免费还是付费。我们不承诺必然命中,也不代为下载第三方原始数据,但可以帮助你减少弯路、提高查找效率。
更多详情请访问官网:https://www.deepsdata.com/guide/waimao-haiguan-jinchukou-shuju-mianfei-xiazai.html