catalogstringwymagane
Data-source side: customs import records or export records.
Możliwe wartości: imports, exports
https://api.sandbase.ai/v1/api/tendata/trade/record-countCount the customs records that match a trade query before paying for rows, to check that filters are narrow enough.
Twój wynik pojawi się tutaj
Uzupełnij dane wejściowe, a następnie kliknij Uruchom.
Count the customs records that match a trade query before paying for rows, to check that filters are narrow enough.
Zacznij tworzyć
Punkt końcowy API platformy z jednolitym uwierzytelnianiem i śledzeniem użycia.
curl -X POST "https://api.sandbase.ai/v1/api/tendata/trade/record-count" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"hsCode": "851712",
"catalog": "imports",
"endDate": "2025-12-31",
"startDate": "2025-01-01"
}'Ustaw klucz API SandBase w środowisku serwera. Żądania używają uwierzytelniania Bearer.
export SANDBASE_API_KEY="YOUR_API_KEY"Przechowuj klucz na serwerze. Nie ujawniaj go w kodzie przeglądarkowym.
catalogstringwymaganeData-source side: customs import records or export records.
Możliwe wartości: imports, exports
endDatestringwymaganeQuery window end, YYYY-MM-DD.
startDatestringwymaganeQuery 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').
Zapisany przykładowy response dla tego API; podczas wyświetlania nie jest wykonywane żadne żądanie na żywo.
Nie opublikowano zapisanego response. Uruchom API w Playground, aby sprawdzić jego odpowiedź.
Odkryj więcej
| API | Cena | Odpowiedź |
|---|---|---|
Tendata | Od $0 za wywołanie | Asynchroniczny JSON |
Tendata | Od $0.016 za wywołanie | Asynchroniczny JSON |
Tendata | Od $0.0016 za wywołanie | Asynchroniczny JSON |
Tendata | Od $0.019 za wywołanie | Asynchroniczny JSON |
Tendata | Od $0.064 za wywołanie | Asynchroniczny JSON |
Tendata | Od $0.016 za wywołanie | Asynchroniczny JSON |
Pytania
Wyślij żądanie POST do https://api.sandbase.ai/v1/api/tendata/trade/record-count z kluczem API SandBase w nagłówku Authorization (Bearer) oraz parametrami w treści JSON. Możesz też wypróbować je w Playground na tej stronie bez pisania kodu.
Od $0 za wywołanie, rozliczane z salda SandBase. Płacisz tylko za wykonane wywołania; nie ma subskrypcji.
Wymagane: catalog (jedna z opcji: imports, exports), endDate (string) i startDate (string). Opcjonalne: hsCode (string), weight (array), exporter (string), importer (string), quantity (array) i sumOfUSD (array) i jeszcze 14. Tabela Parameters oraz Playground na tej stronie zawierają wszystkie pola.
Wynik JSON. Ten endpoint działa asynchronicznie, więc odpowiedź informuje, jak pobrać gotowy wynik.
Nie. Customs Trade Record Count działa przez SandBase, więc jeden klucz API SandBase obejmuje ten endpoint i każde inne API oraz model w katalogu. Nie musisz osobno ubiegać się o dostęp do API Tendata.