About this endpoint
What it does
Looks up HS / commodity code information from one of four modes: keyword search, direct code lookup, code validation, or bulk mixed queries. The request body controls the mode and related filters such as market, origin, and lookup values, and the response returns billing info plus a list of matched rows.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| q | String | No | Search mode only: product words in English, such as cotton t-shirt, lithium battery, or roasted coffee. |
| code | String | No | Code mode only: HS / commodity code with 2, 4, 6, 8, or 10 digits. Dots and spaces are ignored. |
| mode | ENUM | No | Lookup mode. Allowed values: search, code, validate, bulk. |
| codes | String Array | No | Validate mode only: up to 100 codes. |
| limit | Integer | No | Search mode only. Minimum 1, maximum 100, default 20. The description also notes search mode uses 1-50 and default 10. |
| market | ENUM | No | Market selector. Allowed values: UK, EU. UK is the default; EU uses the EU Common Customs Tariff as published by the UK Trade Tariff Northern Ireland (XI) service. |
| origin | String | No | ISO 2-letter country of origin, such as CN, VN, or US. In code mode, this returns the preferential rate and the duty that applies to this origin. |
| queries | String Array | No | Bulk mode only: up to 100 items. The description says bulk mode supports up to 50 objects, each one an input of another mode; failing queries return an error row while the others still answer. |
Response
Returns a JSON object with billed and count integer fields, plus an items array of objects. billed is the number of charged result rows, count is the number of rows in items, and each items[] entry may include lookup, classification, duty, and validation fields.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| billed | Integer | No | Units charged for this call: result rows only; not-found, unavailable, and invalid rows are free. |
| count | Integer | No | Number of rows in items. |
| items | Object Array | No | Array of result rows. Each row can include: q, hs4, hs6, url, vat, code, chain, error, level, score, market, source, tariff, children, fetchedAt, matchType, declarable, originDuty, description, matchedTerm, preferentialDuty, thirdCountryDuty, and declarableChildren. |



