查找可用的海关企业名称
curl --request POST \
--url https://revor.ai/api/v2/customs/company-candidates \
--header 'Content-Type: application/json' \
--data '
{
"company_name": "<string>",
"company_role": "<string>",
"catalog": "<string>",
"compare_catalogs": true,
"start_date": "<string>",
"end_date": "<string>",
"page": 123,
"page_size": 123,
"country_codes": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/customs/company-candidates"
payload = {
"company_name": "<string>",
"company_role": "<string>",
"catalog": "<string>",
"compare_catalogs": True,
"start_date": "<string>",
"end_date": "<string>",
"page": 123,
"page_size": 123,
"country_codes": "<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_name: '<string>',
company_role: '<string>',
catalog: '<string>',
compare_catalogs: true,
start_date: '<string>',
end_date: '<string>',
page: 123,
page_size: 123,
country_codes: '<string>'
})
};
fetch('https://revor.ai/api/v2/customs/company-candidates', 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/company-candidates",
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_name' => '<string>',
'company_role' => '<string>',
'catalog' => '<string>',
'compare_catalogs' => true,
'start_date' => '<string>',
'end_date' => '<string>',
'page' => 123,
'page_size' => 123,
'country_codes' => '<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/company-candidates"
payload := strings.NewReader("{\n \"company_name\": \"<string>\",\n \"company_role\": \"<string>\",\n \"catalog\": \"<string>\",\n \"compare_catalogs\": true,\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"page\": 123,\n \"page_size\": 123,\n \"country_codes\": \"<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/company-candidates")
.header("Content-Type", "application/json")
.body("{\n \"company_name\": \"<string>\",\n \"company_role\": \"<string>\",\n \"catalog\": \"<string>\",\n \"compare_catalogs\": true,\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"page\": 123,\n \"page_size\": 123,\n \"country_codes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/customs/company-candidates")
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_name\": \"<string>\",\n \"company_role\": \"<string>\",\n \"catalog\": \"<string>\",\n \"compare_catalogs\": true,\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"page\": 123,\n \"page_size\": 123,\n \"country_codes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body海关贸易数据
查找可用的海关企业名称
在指定日期范围内查找含有贸易记录的精确名称字符串。
POST
/
api
/
v2
/
customs
/
company-candidates
查找可用的海关企业名称
curl --request POST \
--url https://revor.ai/api/v2/customs/company-candidates \
--header 'Content-Type: application/json' \
--data '
{
"company_name": "<string>",
"company_role": "<string>",
"catalog": "<string>",
"compare_catalogs": true,
"start_date": "<string>",
"end_date": "<string>",
"page": 123,
"page_size": 123,
"country_codes": "<string>"
}
'import requests
url = "https://revor.ai/api/v2/customs/company-candidates"
payload = {
"company_name": "<string>",
"company_role": "<string>",
"catalog": "<string>",
"compare_catalogs": True,
"start_date": "<string>",
"end_date": "<string>",
"page": 123,
"page_size": 123,
"country_codes": "<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_name: '<string>',
company_role: '<string>',
catalog: '<string>',
compare_catalogs: true,
start_date: '<string>',
end_date: '<string>',
page: 123,
page_size: 123,
country_codes: '<string>'
})
};
fetch('https://revor.ai/api/v2/customs/company-candidates', 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/company-candidates",
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_name' => '<string>',
'company_role' => '<string>',
'catalog' => '<string>',
'compare_catalogs' => true,
'start_date' => '<string>',
'end_date' => '<string>',
'page' => 123,
'page_size' => 123,
'country_codes' => '<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/company-candidates"
payload := strings.NewReader("{\n \"company_name\": \"<string>\",\n \"company_role\": \"<string>\",\n \"catalog\": \"<string>\",\n \"compare_catalogs\": true,\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"page\": 123,\n \"page_size\": 123,\n \"country_codes\": \"<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/company-candidates")
.header("Content-Type", "application/json")
.body("{\n \"company_name\": \"<string>\",\n \"company_role\": \"<string>\",\n \"catalog\": \"<string>\",\n \"compare_catalogs\": true,\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"page\": 123,\n \"page_size\": 123,\n \"country_codes\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://revor.ai/api/v2/customs/company-candidates")
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_name\": \"<string>\",\n \"company_role\": \"<string>\",\n \"catalog\": \"<string>\",\n \"compare_catalogs\": true,\n \"start_date\": \"<string>\",\n \"end_date\": \"<string>\",\n \"page\": 123,\n \"page_size\": 123,\n \"country_codes\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body在指定日期范围内查找含有贸易记录的精确名称字符串。这不是法律主体识别服务。
接口概览
| 方法 | POST |
| 路径 | /api/v2/customs/company-candidates |
| 返回 | 企业名称候选及贸易数与可查询标识 |
| 幂等性 | 支持 |
company_role 和 catalog 可选,但应同时提供。两者都省略时,接口会检查 importer/imports 与 exporter/exports 两条常用查询组合;只提供其中一个时,另一个按常用组合补全。
请求
参数
请求示例
cURL
curl -X POST "https://revor.ai/api/v2/customs/company-candidates" \
-H "Authorization: Bearer sk-revor-REPLACE_ME" \
-H "Content-Type: application/json" \
-H "Prefer: wait=20" \
-d '{
"company_name": "Banbros Commercial Inc.",
"start_date": "2025-08-01",
"end_date": "2026-07-31",
"page": 1,
"page_size": 20,
"company_role": "exporter",
"catalog": "imports",
"compare_catalogs": false,
"country_codes": "IDN"
}'
响应示例
200
{
"query": "Banbros Commercial Inc.",
"date_range": {
"start": "2025-08-01",
"end": "2026-07-31"
},
"routing_evidence": {
"mode": "explicit",
"company_role": "exporter",
"catalogs_checked": ["imports"]
},
"identity_notice": "Trade counts prove exact-name queryability only, not authoritative legal identity.",
"candidates": [
{
"name": "BANBROS COMMERCIAL INC",
"source": "company_list",
"countries": ["Indonesia"],
"company_ids": ["provider-company-id"],
"trade_counts": {
"start_date": "2025-08-01",
"end_date": "2026-07-31",
"company_role": "exporter",
"catalog": "imports",
"imports_as_exporter": 18,
"total": 18,
"queryable": true
},
"identity_status": "unverified"
}
]
}
该接口当前不计费;任务返回
billing.status: not_billable 和 charged_credits: 0。
