pageNointeger必填
Page number, starting at 1.
https://api.sandbase.ai/v1/api/tendata/trade/importersRank importers that match a customs trade query (HS code, product, countries, ports, date window), with aggregated weight, USD value and shipment count per importer.
您的輸出會顯示在這裡
完成輸入後,點擊執行。
Rank importers that match a customs trade query (HS code, product, countries, ports, date window), with aggregated weight, USD value and shipment count per importer.
開始建置
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/tendata/trade/importers" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"hsCode": "851712",
"pageNo": 1,
"catalog": "imports",
"endDate": "2025-12-31",
"pageSize": 3,
"startDate": "2025-01-01"
}'請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
pageNointeger必填Page number, starting at 1.
catalogstring必填Data-source side: customs import records or export records.
可能值:imports, exports
endDatestring必填Query window end, YYYY-MM-DD.
pageSizeinteger必填Rows per page (1-20). Each returned row is billed, so this caps the cost of one call.
startDatestring必填Query window start, YYYY-MM-DD. The window may span at most three years.
hsCodestringCustoms HS code, 4+ digits (e.g. '630492'). A 2-digit chapter code works only combined with productDesc or a company name.
weightarrayWeight range in kilograms, as [min, max].
exporterstringExporter company name (min 2 chars). Drop company suffixes and special characters for better matching.
importerstringImporter company name (min 2 chars). Drop company suffixes and special characters for better matching.
quantityarrayQuantity range, as [min, max].
sumOfUSDarrayTotal USD value range, as [min, max].
sortFieldstringRanking key; defaults to the vendor's relevance order.
可能值:weight, sumOfUSD, tradeCount
sortOrderstringRanking direction.
可能值:ASC, DESC
searchModestringSet to FUZZY_SINGLE for single-keyword fuzzy matching; omit for the default smart search.
productDescstringProduct description keywords; separate multiple keywords with semicolons (e.g. 'electronics; home appliance').
quantityUnitstringQuantity unit filter (e.g. 'PCS', 'PKG').
portOfArrivalstringArrival port name.
transportTypestringTransport mode (e.g. sea, air, road).
containProducerbooleanInclude producer companies (available on Russia/Kazakhstan sources).
portOfDeparturestringDeparture port name.
filterBlankFieldsarrayDrop records whose named party is blank (e.g. ["importer"]).
optimizationModelbooleanPrefer the vendor's optimized data sources.
weightUnitPriceUSDarrayUSD unit price per kilogram range, as [min, max].
countryOfOriginCodestringOrigin country ISO3 code(s), semicolon-separated (e.g. 'CHN;USA').
filterLogisticFieldsarrayDrop records whose named party is a logistics company (e.g. ["exporter"]). Buyers have reported forwarders still being returned, so screen party names yourself.
quantityUnitPriceUSDarrayUSD unit price per quantity range, as [min, max].
countryOfDestinationCodestringDestination country ISO3 code(s), semicolon-separated (e.g. 'USA;CHN').
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
| API | 價格 | 回應 |
|---|---|---|
Tendata | 每次呼叫 $0.019 起 | 非同步 JSON |
Tendata | 每次呼叫 $0.016 起 | 非同步 JSON |
Tendata | 每次呼叫 $0.0016 起 | 非同步 JSON |
Tendata | 每次呼叫 $0.019 起 | 非同步 JSON |
Tendata | 每次呼叫 $0.064 起 | 非同步 JSON |
Tendata | 每次呼叫 $0.016 起 | 非同步 JSON |
問題
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/tendata/trade/importers。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
每次起 $0.019,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
必要:pageNo (integer), catalog(imports, exports 之一), endDate (string), pageSize (integer) 和 startDate (string)。 選填:hsCode (string), weight (array), exporter (string), importer (string), quantity (array) 和 sumOfUSD (array),以及另外 16 個。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
JSON 結果。此端點為非同步執行,因此回應會告訴您如何取得完成的結果。
不需要。Customs Trade Importers 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Tendata API 存取權。