pageNointegerobligatoire
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.
Votre sortie apparaîtra ici
Complétez les entrées, puis cliquez sur Exécuter.
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.
Commencer à construire
Point de terminaison de l'API de la plateforme avec authentification unifiée et suivi de l'utilisation.
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"
}'Définissez votre clé API SandBase dans l'environnement de votre serveur. Les requêtes utilisent l'authentification Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Conservez votre clé côté serveur. Ne l'exposez pas dans le code du navigateur.
pageNointegerobligatoirePage number, starting at 1.
catalogstringobligatoireData-source side: customs import records or export records.
Valeurs possibles : imports, exports
endDatestringobligatoireQuery window end, YYYY-MM-DD.
pageSizeintegerobligatoireRows per page (1-20). Each returned row is billed, so this caps the cost of one call.
startDatestringobligatoireQuery 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.
Valeurs possibles : weight, sumOfUSD, tradeCount
sortOrderstringRanking direction.
Valeurs possibles : 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').
Exemple de réponse enregistré pour cette API ; aucune requête en direct n'est effectuée lors de l'affichage.
Aucune réponse enregistrée n'a été publiée. Exécutez l'API dans Playground pour inspecter sa réponse.
Explorer plus
| API | Prix | Réponse |
|---|---|---|
Customs Trade ImportersCette API Tendata | À partir de $0.019 par appel | JSON asynchrone |
Tendata | À partir de $0.016 par appel | JSON asynchrone |
Tendata | À partir de $0.0016 par appel | JSON asynchrone |
Tendata | À partir de $0.019 par appel | JSON asynchrone |
Tendata | À partir de $0.064 par appel | JSON asynchrone |
Tendata | À partir de $0.016 par appel | JSON asynchrone |
Questions
Envoyez une requête POST à https://api.sandbase.ai/v1/api/tendata/trade/importers avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.
À partir de $0.019 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.
Obligatoire : pageNo (integer), catalog (l’un de imports, exports), endDate (string), pageSize (integer) et startDate (string). Facultatif : hsCode (string), weight (array), exporter (string), importer (string), quantity (array) et sumOfUSD (array) et 16 de plus. Le tableau des paramètres et le Playground sur cette page listent tous les champs.
Un résultat JSON. Ce point de terminaison s’exécute de manière asynchrone, donc la réponse vous indique comment récupérer le résultat final.
Non. Customs Trade Importers fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Tendata séparément.