---
title: "HS Code & Import Duty Lookup API"
slug: hs-code-import-duty-lookup
url: https://apyhub.com/martin10291/service/hs-code-import-duty-lookup
provider: Martin Petrov
categories: [Retrieval Kit, Verification Kit]
tags: [hs-code, commodity-classification, customs, tariff, duty-rates, trade-compliance]
auth: api_key
version: 1.0
service_type: sync
endpoints: 1
atoms: 100
mcp: true
---

# HS Code & Import Duty Lookup API

HS Code API for search, code lookup, validate, or bulk requests. Get tariff, VAT, origin duty, and code data for UK and EU. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/martin10291/hs-code-import-duty-lookup` | What it does Looks up HS / commodity code information from one of four modes: keyword search, direc… | 100 |

## Endpoint reference

### HS Code Lookup API - Tariff, Duty Rates, Commodity Codes

`POST https://api.eu.apyhub.com/martin10291/hs-code-import-duty-lookup` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `q` | body | string | no | search mode: product words in English, e.g. cotton t-shirt, lithium battery, roasted coffee. Example: `red wine`. |
| `code` | body | string | no | code mode: HS / commodity code with 2, 4, 6, 8 or 10 digits; dots and spaces are ignored, e.g. 6109.10 or 6109100010. |
| `mode` | body | string | no | search = keyword to ranked HS/commodity codes; code = full details of one code (duty, VAT, origin rate, measures, or declarable children); validate = check that codes exist and are declarable; bulk =… |
| `codes` | body | array of string | no | validate mode: up to 100 codes. |
| `limit` | body | integer | no | search mode: 1-50, default 10. Default: `20`. Example: `10`. |
| `market` | body | string | no | UK = UK Global Tariff (default); EU = EU Common Customs Tariff as published by the UK Trade Tariff Northern Ireland (XI) service. One of: UK, EU. Example: `UK`. |
| `origin` | body | string | no | ISO 2-letter country of origin, e.g. CN, VN, US. code mode returns the preferential rate and the duty that applies to this origin. |
| `queries` | body | array of string | no | bulk mode: up to 50 objects, each one an input of another mode, e.g. {"mode":"code","code":"8517130000","origin":"VN"}. A failing query returns an error row; the others still answer. |

#### Quickstart

Look up HS codes by keyword with the default search mode.

```bash
curl -X POST "https://api.eu.apyhub.com/martin10291/hs-code-import-duty-lookup" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"mode":"search","q":"cotton t-shirt","limit":10}'
```

#### What you'll get back

Returns a JSON object with `billed` and `count` integers, plus an `items` array of result objects. Each item can include fields such as `q`, `hs4`, `hs6`, `code`, `chain`, `level`, `score`, `market`, `tariff`, `declarable`, and other mode-specific fields.

```json
{
  "billed": 1,
  "count": 1,
  "items": [
    {
      "q": "cotton t-shirt",
      "hs6": "610910",
      "code": "6109100000",
      "level": "commodity",
      "score": 98,
      "market": "UK",
      "declarable": true
    }
  ]
}
```

## About

## What it does

The HS Code API returns HS and commodity code data for customs work. Send product words, a code, or mixed lookups in the request body. Use `q` for search mode, `code` for one code, `mode` for the lookup type, `market` for UK or EU, and `origin` for the country code when you need origin duty.

You get back ranked matches, one code's details, or validation rows. Search mode returns likely codes from English product words like `cotton t-shirt`. Code mode shows tariff data, UK VAT, declarable status, and the duty for the origin you pass. Bulk mode lets you mix up to 50 queries in one call.

Teams use the HS Code API to classify goods before shipping. They use it to check duty cost in import tools and to confirm which codes can go on a customs declaration.

To check money values after duty work, use the [Currency Converter API](https://apyhub.com/apyhub/service/convert-currency-pair-for-date). To confirm country codes in import forms, use the [Countries Dictionary API](https://apyhub.com/apyhub/service/list-all-countries).

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/martin10291/service/hs-code-import-duty-lookup
