按商品和国家发现企业
curl --request POST \
--url https://revor.ai/api/v2/customs/companies/search \
--header 'Content-Type: application/json' \
--data '
{
"company_role": "<string>",
"catalog": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"hs_code": "<string>",
"product_description": "<string>",
"origin_country_code": "<string>",
"destination_country_code": "<string>",
"page": 123,
"page_size": 123,
"sort_by": "<string>",
"sort_order": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/customs/companies/search"
payload = {
"company_role": "<string>",
"catalog": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"hs_code": "<string>",
"product_description": "<string>",
"origin_country_code": "<string>",
"destination_country_code": "<string>",
"page": 123,
"page_size": 123,
"sort_by": "<string>",
"sort_order": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
company_role: '<string>',
catalog: '<string>',
start_date: '<string>',
end_date: '<string>',
hs_code: '<string>',
product_description: '<string>',
origin_country_code: '<string>',
destination_country_code: '<string>',
page: 123,
page_size: 123,
sort_by: '<string>',
sort_order: '<string>'
})
};
fetch('https://revor.ai/api/v2/customs/companies/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://revor.ai/api/v2/customs/companies/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'company_role' => '<string>',
'catalog' => '<string>',
'start_date' => '<string>',
'end_date' => '<string>',
'hs_code' => '<string>',
'product_description' => '<string>',
'origin_country_code' => '<string>',
'destination_country_code' => '<string>',
'page' => 123,
'page_size' => 123,
'sort_by' => '<string>',
'sort_order' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/customs/companies/search"
payload := strings.NewReader("{\n \"company_role\": \"<string>\",\n \"catalog\": \"<string>\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"hs_code\": \"<string>\",\n \"product_description\": \"<string>\",\n \"origin_country_code\": \"<string>\",\n \"destination_country_code\": \"<string>\",\n \"page\": 123,\n \"page_size\": 123,\n \"sort_by\": \"<string>\",\n \"sort_order\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://revor.ai/api/v2/customs/companies/search")
.header("Content-Type", "application/json")
.body("{\n \"company_role\": \"<string>\",\n \"catalog\": \"<string>\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"hs_code\": \"<string>\",\n \"product_description\": \"<string>\",\n \"origin_country_code\": \"<string>\",\n \"destination_country_code\": \"<string>\",\n \"page\": 123,\n \"page_size\": 123,\n \"sort_by\": \"<string>\",\n \"sort_order\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/customs/companies/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_role\": \"<string>\",\n \"catalog\": \"<string>\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"hs_code\": \"<string>\",\n \"product_description\": \"<string>\",\n \"origin_country_code\": \"<string>\",\n \"destination_country_code\": \"<string>\",\n \"page\": 123,\n \"page_size\": 123,\n \"sort_by\": \"<string>\",\n \"sort_order\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body海关贸易数据
按商品和国家发现企业
根据贸易记录中的商品、国家和时间条件,返回进口商或出口商列表。
POST
/
api
/
v2
/
customs
/
companies
/
search
按商品和国家发现企业
curl --request POST \
--url https://revor.ai/api/v2/customs/companies/search \
--header 'Content-Type: application/json' \
--data '
{
"company_role": "<string>",
"catalog": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"hs_code": "<string>",
"product_description": "<string>",
"origin_country_code": "<string>",
"destination_country_code": "<string>",
"page": 123,
"page_size": 123,
"sort_by": "<string>",
"sort_order": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/customs/companies/search"
payload = {
"company_role": "<string>",
"catalog": "<string>",
"start_date": "<string>",
"end_date": "<string>",
"hs_code": "<string>",
"product_description": "<string>",
"origin_country_code": "<string>",
"destination_country_code": "<string>",
"page": 123,
"page_size": 123,
"sort_by": "<string>",
"sort_order": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
company_role: '<string>',
catalog: '<string>',
start_date: '<string>',
end_date: '<string>',
hs_code: '<string>',
product_description: '<string>',
origin_country_code: '<string>',
destination_country_code: '<string>',
page: 123,
page_size: 123,
sort_by: '<string>',
sort_order: '<string>'
})
};
fetch('https://revor.ai/api/v2/customs/companies/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://revor.ai/api/v2/customs/companies/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'company_role' => '<string>',
'catalog' => '<string>',
'start_date' => '<string>',
'end_date' => '<string>',
'hs_code' => '<string>',
'product_description' => '<string>',
'origin_country_code' => '<string>',
'destination_country_code' => '<string>',
'page' => 123,
'page_size' => 123,
'sort_by' => '<string>',
'sort_order' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://revor.ai/api/v2/customs/companies/search"
payload := strings.NewReader("{\n \"company_role\": \"<string>\",\n \"catalog\": \"<string>\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"hs_code\": \"<string>\",\n \"product_description\": \"<string>\",\n \"origin_country_code\": \"<string>\",\n \"destination_country_code\": \"<string>\",\n \"page\": 123,\n \"page_size\": 123,\n \"sort_by\": \"<string>\",\n \"sort_order\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://revor.ai/api/v2/customs/companies/search")
.header("Content-Type", "application/json")
.body("{\n \"company_role\": \"<string>\",\n \"catalog\": \"<string>\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"hs_code\": \"<string>\",\n \"product_description\": \"<string>\",\n \"origin_country_code\": \"<string>\",\n \"destination_country_code\": \"<string>\",\n \"page\": 123,\n \"page_size\": 123,\n \"sort_by\": \"<string>\",\n \"sort_order\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/customs/companies/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"company_role\": \"<string>\",\n \"catalog\": \"<string>\",\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"hs_code\": \"<string>\",\n \"product_description\": \"<string>\",\n \"origin_country_code\": \"<string>\",\n \"destination_country_code\": \"<string>\",\n \"page\": 123,\n \"page_size\": 123,\n \"sort_by\": \"<string>\",\n \"sort_order\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body根据贸易记录中的商品、国家和时间条件,返回进口商或出口商列表。不需要预先知道公司名称。
接口概览
| 方法 | POST |
| 路径 | /api/v2/customs/companies/search |
| 返回 | 符合市场筛选条件的企业列表 |
| 幂等性 | 支持 |
请求
参数
hs_code、product_description、origin_country_code、destination_country_code 至少提供一个,避免提交没有任何业务范围的全库查询。行业名称不是统一海关分类;“机械行业”这类宽泛需求应先选择合适的 HS Code 或商品关键词。请求示例
cURL
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。
