Skip to main content
The query_type parameter determines how the API searches for HS codes.
query_type
integer
default:"2"
Switch between 2 search modes: HS code only OR full search mode

Search Types

The query_type parameter lets you switch between the two search modes available.

Type 1

Type 1 searches only the HS code numbers themselves. This is useful when you know the HS code or part of it, and it provides faster and more precise results for code lookups.

Type 2 (Default)

Type 2 is the Full Search mode and is set as the default. It searches both HS code numbers and descriptions, making it ideal when you’re searching by product name or keywords, as it returns broader and more comprehensive results.
curl -X GET "https://api.hsping.com/api/v1/find?query=94038200&query_type=1" \
  -H "Authorization: Bearer API_KEY"

//query = 94038200
//query_type = 1 (HS Code number search only)