pageNointegerobbligatorio
Page number, starting at 1.
https://api.sandbase.ai/v1/api/tendata/trade/hs-codesBreak down the customs records that match a trade query by HS code, with weight, USD value and shipment count for each code.
Il tuo output apparirà qui
Completa gli input, poi fai clic su Esegui.
Break down the customs records that match a trade query by HS code, with weight, USD value and shipment count for each code.
Inizia a costruire
Endpoint API della piattaforma con autenticazione unificata e tracciamento dell'utilizzo.
curl -X POST "https://api.sandbase.ai/v1/api/tendata/trade/hs-codes" \
-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"
}'Imposta la tua SandBase API key nell'ambiente del server. Le richieste usano l'autenticazione Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conserva la tua key sul server. Non esporla nel codice del browser.
pageNointegerobbligatorioPage number, starting at 1.
catalogstringobbligatorioData-source side: customs import records or export records.
Valori possibili: imports, exports
endDatestringobbligatorioQuery window end, YYYY-MM-DD.
pageSizeintegerobbligatorioRows per page (1-20). Each returned row is billed, so this caps the cost of one call.
startDatestringobbligatorioQuery 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').
Risposta di esempio salvata per questa API; durante la visualizzazione non viene eseguita alcuna richiesta live.
Nessuna risposta salvata è stata pubblicata. Esegui l'API in Playground per ispezionarne la risposta.
Esplora altro
| API | Prezzo | Risposta |
|---|---|---|
Customs Trade by HS CodeQuesta API Tendata | Da $0.016 per chiamata | JSON asincrono |
Tendata | Da $0.016 per chiamata | JSON asincrono |
Tendata | Da $0.0016 per chiamata | JSON asincrono |
Tendata | Da $0.019 per chiamata | JSON asincrono |
Tendata | Da $0.064 per chiamata | JSON asincrono |
Tendata | Da $0.0016 per chiamata | JSON asincrono |
Domande
Invia una richiesta POST a https://api.sandbase.ai/v1/api/tendata/trade/hs-codes con la tua chiave API di SandBase nell'header Authorization (Bearer) e i parametri nel body JSON. Puoi anche provarla nel Playground di questa pagina senza scrivere codice.
A partire da $0.016 per chiamata, addebitato dal tuo saldo SandBase. Paghi solo le chiamate che effettui; non c'è alcun abbonamento.
Richiesti: pageNo (integer), catalog (uno tra imports, exports), endDate (string), pageSize (integer) e startDate (string). Facoltativi: hsCode (string), weight (array), exporter (string), importer (string), quantity (array) e sumOfUSD (array) e altri 14. La tabella dei parametri e il Playground di questa pagina elencano tutti i campi.
Un risultato JSON. Questo endpoint viene eseguito in modo asincrono, quindi la risposta indica come recuperare il risultato completato.
No. Customs Trade by HS Code funziona tramite SandBase, quindi una sola chiave API SandBase copre questo endpoint e tutte le altre API e modelli del catalogo. Non è necessario richiedere separatamente l'accesso alle API Tendata.