1. 海关数据接口
TradeWind AI API Documentation
🇨🇳 简体中文
  • 🇨🇳 简体中文
  • 🇺🇸 English
  • TradeWind AI API 3.0 - Updated at 20261204
    • API监控接口(无需鉴权)
      • API 存活探针
      • API 运维指标
    • 积分账户接口
      • 查询API积分余额
    • 企业/联系人接口(瀑布流/智能体模式)
      • (智能体)国家与语言编码参考(无需鉴权)
      • (瀑布流)获取 Industry 行业参考
      • (瀑布流)获取 Technology 技术参考
      • (瀑布流)下载支持的技术栈 CSV(无需鉴权)
      • (智能体)任务创建
      • (智能体)任务列表
      • (智能体)任务数据
      • (智能体)停止任务
      • (瀑布流)企业搜索
      • (瀑布流)企业详情
      • (瀑布流)联系人搜索
      • (瀑布流)联系人详情
    • 邮箱验证
      • (邮箱验证)单条查询 / 批量任务
      • (邮箱验证)查询批量任务结果
    • 海关数据接口
      • (海关)国家参考
        GET
      • 获取海关数据列表
        POST
      • 获取海关公司列表
        POST
      • 获取海关公司状态
        POST
      • 获取海关采购趋势
        POST
      • 获取海关全球区域分布图
        POST
      • 获取海关中国供应商交易
        POST
      • (海关)贸易伙伴网络
        POST
      • 获取海关商家交易
        POST
      • 获取海关公司详情
        POST
      • 获取海关公司贸易趋势
        POST
      • 获取海关公司进出口记录
        POST
      • 获取海关公司贸易伙伴记录
        POST
      • 获取海关公司HS编码记录
        POST
      • 获取海关公司采供产品列表
        POST
      • 获取海关公司贸易区域
        POST
      • 获取海关公司贸易港口统计
        POST
      • (海关)智能搜邮
        POST
      • 匹配公司名称的企业列表
        POST
      • 匹配公司的联系人列表
        POST
      • (海关)公司海关数据补全
        POST
    • 企业洞察
      • 九大维度海关企业档案
        • 海关企业档案(九维) · 创建任务(异步)
        • 海关企业档案(九维) · 查询任务(异步轮询)
        • 海关企业档案(九维) · 查询任务(POST 方式)
      • 海关报关主体匹配
        • 报关主体匹配 · 创建任务(异步)
        • 报关主体匹配 · 查询任务(异步轮询)
        • 报关主体匹配 · 查询任务(POST 方式)
      • 公司信息背调
      • 企业舆情与新闻情报
      • 潜在客户画像与检索关键词
    • 数据补全(批量异步)
      • 创建补全任务
      • 查询补全任务进度
      • 获取补全任务结果
      • 取消补全任务
    • Google 搜索
      • Google 网页搜索
      • Google 地图
  1. 海关数据接口

获取海关数据列表

POST
/api/customs/search
Last modified:2026-12-03 18:26:55
接口速览说明
鉴权方式Bearer tw_live_*(或 tw_test_*)
积分计费按条 0.136 Credits / 条(按实际返回条数四舍五入;0 条或 502 均 0 扣费)
缓存机制L1 请求级缓存;30 天内同客户同参数免重复扣费
限流与状态码limit 仅支持 10 / 20 / 50 / 100(不支持 per_page);HTTP 201
用本接口按产品词、HS 编码、起止日期、进出口国与买卖双方公司名检索逐票海关提单明细。如果希望直接按「公司维度」去重汇总买家或供应商列表,请使用「获取海关公司列表」(POST /api/customs/companies/directory)。
国家筛选前置步骤:exporter_country 和 importer_country 需传数字国家 ID,请先从 GET /api/customs/reference/countries 获取。

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Header Params

Body Params application/jsonRequired

Example
{
    "start_time": "2025-11-01",
    "end_time": "2026-11-01",
    "product": "led lighting",
    "hscode": "",
    "exporter_country": "",
    "importer_country": "",
    "limit": 10,
    "page": 1,
    "recordType": "Import",
    "exclude_type": "none"
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location '/api/customs/search' \
--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 lighting",
    "hscode": "",
    "exporter_country": "",
    "importer_country": "",
    "limit": 10,
    "page": 1,
    "recordType": "Import",
    "exclude_type": "none"
}'

Responses

🟢201
application/json
成功返回海关提单明细列表
Bodyapplication/json

Example
{
    "success": true,
    "request_id": "req_lsfaaxapxZMY",
    "meta": {
        "total_results": 100000,
        "page": 1,
        "per_page": 20,
        "total_pages": 5000,
        "has_more": true,
        "billing": {
            "credits_charged": 2.72,
            "byok_used": false
        }
    },
    "records": [
        {
            "id": "xf_cust_0",
            "snow_flake_id": "1EYczpoBRoKknSgQmYCk",
            "source_id": 2,
            "product_desc": "PO            ITEM       ;PLUS TOYS HTS #:",
            "hs_code": "",
            "hs_product": "",
            "declaration_number": "OOLU2162600200",
            "manifest_number": "OOLU2162600200",
            "billing_no": "",
            "importer_id": "910399153478213632",
            "exporter_id": "0",
            "foreign_port": "57037           Yangshan, China",
            "local_port": "5201 Charlotte Amalie, Virgin Islands",
            "place_of_receipt": "SHANGHAI",
            "fob": "0.00",
            "fob_unit": null,
            "cif": "0.00",
            "cif_unit": null,
            "weight": "12617.000",
            "weight_unit": "KG",
            "quantity": 7393,
            "qty_unit": "CTN",
            "measurement": "1.0",
            "measurement_unit": "CTN",
            "vessel_name": "APL SALALAH",
            "container_number": "OOCU6812553",
            "transport": "VESSEL, containerized",
            "carrier": "OOLU",
            "container_size": null,
            "recordtype": "Import",
            "flight_no": "0XR99",
            "date": 1764172800,
            "updatetime": "1764412854",
            "importer_company_name": "WALGREEN CO",
            "exporter_company_name": "",
            "notify_party_name": "",
            "notify_address": "",
            "date_text": "2025-11-27",
            "exporterCountry": null,
            "importerCountry": null,
            "originCountry": null,
            "seller": null,
            "buyer": {
                "snow_flake_id": "910399153478213632",
                "outside_join_ids": "5fd1a8bdf7611900013e1e07",
                "outside_site_id": null,
                "name": "WALGREEN CO",
                "email": null,
                "phone": null,
                "website_url": null,
                "primary_domain": null,
                "raw_address": null,
                "short_description": null,
                "country": "75",
                "updatetime": "1776792684",
                "status": "normal",
                "matchtime": "0",
                "have_embedding": 1,
                "status_text": "正常"
            },
            "origin_country": null,
            "importer_country": {
                "id": 75,
                "name": "美国",
                "en": "United States",
                "map_en": "the United States",
                "name_list": "United States,U.S.A,UNITED STATES,UNITED STATES OF AMERICA,СОЕДИНЕННЫЕ ШТАТЫ,USA,ESTADOS UNIDOS DE NORTEAMERICA",
                "iso_code": "us",
                "logo": "https://cdn.trade-wind.co/assets/flags/sample.png",
                "createtime": "1691472821",
                "updatetime": "1691472821",
                "status": "normal",
                "status_text": "正常"
            },
            "exporter_country": {
                "id": 140,
                "name": "中国",
                "en": "China",
                "map_en": "China",
                "name_list": "China,КИТАЙ,República Popular de China",
                "iso_code": "cn",
                "logo": "https://cdn.trade-wind.co/assets/flags/sample.png",
                "createtime": "1691472821",
                "updatetime": "1691472821",
                "status": "normal",
                "status_text": "正常"
            },
            "seller_name": null,
            "buyer_name": "WALGREEN CO",
            "origin_country_name": null,
            "importer_country_name": "美国",
            "exporter_country_name": "中国",
            "origin_country_logo": null,
            "importer_country_logo": "https://cdn.trade-wind.co/assets/flags/sample.png",
            "exporter_country_logo": "https://cdn.trade-wind.co/assets/flags/sample.png"
        },
        {
            "id": "xf_cust_1",
            "snow_flake_id": "ZUYczpoBRoKknSgQmX6e",
            "source_id": 2,
            "product_desc": "PLASTIC TOYS HTS:",
            "hs_code": "",
            "hs_product": "",
            "declaration_number": "EXDO61N0921743",
            "manifest_number": "EXDO61N0921743",
            "billing_no": "EXDO61N0921743",
            "importer_id": "910400456491069440",
            "exporter_id": "1039598798690041856",
            "foreign_port": "57078           Yantian, China",
            "local_port": "1801 Tampa, Florida",
            "place_of_receipt": "YANTIAN",
            "fob": "0.00",
            "fob_unit": null,
            "cif": "0.00",
            "cif_unit": null,
            "weight": "2
🟠400
🟠401
🟠402
🔴502
Modified at 2026-12-03 18:26:55
Previous
(海关)国家参考
Next
获取海关公司列表
Built with