> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 按商品和国家发现企业

> 根据贸易记录中的商品、国家和时间条件，返回进口商或出口商列表。

根据贸易记录中的商品、国家和时间条件，返回进口商或出口商列表。不需要预先知道公司名称。

## 接口概览

| | |
| - | - |
| 方法 | `POST` |
| 路径 | `/api/v2/customs/companies/search` |
| 返回 | 符合市场筛选条件的企业列表 |
| 幂等性 | 支持 |

## 请求

### 参数

**company\_role** `string` *required*

返回的企业角色：`importer` 表示买家/进口商，`exporter` 表示供应商/出口商。

**catalog** `string`

`imports` 或 `exports`；省略时按企业角色使用常用目录。

**start\_date** `date` *required*

`YYYY-MM-DD`。

**end\_date** `date` *required*

`YYYY-MM-DD`，查询跨度最多一年。

**hs\_code** `string`

单个 2、4、6、8 或 10 位数字，例如机械大类 `84`、挖掘机 `8429`；不支持逗号/空格分隔的多值或 `84-85` 范围。多个品类请分别查询。

**product\_description** `string`

商品关键词；没有准确 HS Code 时可以使用。

**origin\_country\_code** `string`

货物来源国或原产国代码，例如 `CHN`。

**destination\_country\_code** `string`

货物目的市场代码，例如俄罗斯 `RUS`、巴西 `BRA`、沙特 `SAU`、阿联酋 `ARE`。

**page** `integer` (default: 1)

1-1000，默认 1。

**page\_size** `integer` (default: 20)

1-20，默认 20。

**sort\_by** `string` (default: trade\_count)

`trade_count`、`amount_usd`、`quantity` 或 `weight`，默认 `trade_count`。

**sort\_order** `string` (default: desc)

`asc` 或 `desc`，默认 `desc`。

> [!WARNING]
>
> `hs_code`、`product_description`、`origin_country_code`、`destination_country_code` 至少提供一个，避免提交没有任何业务范围的全库查询。行业名称不是统一海关分类；"机械行业"这类宽泛需求应先选择合适的 HS Code 或商品关键词。

### 请求示例

```bash cURL theme={null}
curl -X POST "https://revor.ai/api/v2/customs/companies/search" \
  -H "Authorization: Bearer sk-revor-REPLACE_ME" \
  -H "Content-Type: application/json" \
  -H "Prefer: wait=20" \
  -d '{
    "company_role": "importer",
    "catalog": "imports",
    "start_date": "2025-09-01",
    "end_date": "2026-08-31",
    "hs_code": "8429",
    "product_description": "excavator",
    "origin_country_code": "CHN",
    "destination_country_code": "BRA",
    "page": 1,
    "page_size": 20,
    "sort_by": "trade_count",
    "sort_order": "desc"
  }'
```

## 响应

任务成功后，`item.result.data.items` 返回标准化企业字段：`company_name`、`country`、`country_code`、`trade_count`、`amount_usd`、`quantity`、`weight` 和金额占比等。

不同数据覆盖范围不一定返回全部统计字段。查询按实际返回的企业行数结算 credits；返回 0 行时最终消耗 0 credits。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.