pageNointegererforderlich
Page number, starting at 1.
https://api.sandbase.ai/v1/api/tendata/trade/origin-countriesBreak down the customs records that match a trade query by country of origin, with weight, USD value and shipment count for each country.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Break down the customs records that match a trade query by country of origin, with weight, USD value and shipment count for each country.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/tendata/trade/origin-countries" \
-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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
pageNointegererforderlichPage number, starting at 1.
catalogstringerforderlichData-source side: customs import records or export records.
Mögliche Werte: imports, exports
endDatestringerforderlichQuery window end, YYYY-MM-DD.
pageSizeintegererforderlichRows per page (1-20). Each returned row is billed, so this caps the cost of one call.
startDatestringerforderlichQuery 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].
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').
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Customs Trade by Origin CountryDiese API Tendata | Ab $0.016 pro Aufruf | Asynchrones JSON |
Tendata | Ab $0.016 pro Aufruf | Asynchrones JSON |
Tendata | Ab $0.0016 pro Aufruf | Asynchrones JSON |
Tendata | Ab $0.019 pro Aufruf | Asynchrones JSON |
Tendata | Ab $0.064 pro Aufruf | Asynchrones JSON |
Tendata | Ab $0.016 pro Aufruf | Asynchrones JSON |
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/tendata/trade/origin-countries mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Ab $0.016 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Erforderlich: pageNo (integer), catalog (eines von imports, exports), endDate (string), pageSize (integer) und startDate (string). Optional: hsCode (string), weight (array), exporter (string), importer (string), quantity (array) und sumOfUSD (array) und 14 weitere. Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Ein JSON-Ergebnis. Dieser Endpunkt läuft asynchron, daher zeigt die Antwort, wie Sie das fertige Ergebnis abrufen.
Nein. Customs Trade by Origin Country läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Tendata API beantragen.