us-tariff-calculator
v1.0.0
Published
Calculate the current total 2026 US import tariff on any product in one call. Stacked duty layers (MFN, Section 301/232), MPF/HMF, no HTS code required. Works without an API key.
Downloads
381
Maintainers
Readme
US Tariff Calculator
Calculate the current total 2026 US import tariff on any product in one call. Stacked duty layers (MFN, Section 301/232), MPF/HMF, no HTS code required. Works without an API key.
US Tariff Calculator is a fast US tariff calculator: describe a product, get the current total duty rate. It runs on the maintained, source-backed GroundTruth data layer, so numbers reflect current 2026 stacked tariffs (MFN + Section 301/232 where applicable), MPF/HMF and full landed cost—no HTS code required.
Install
npm install us-tariff-calculatorQuick start
const { calculateTariff } = require('us-tariff-calculator');
const rate = await calculateTariff({ product: 'bluetooth speaker', origin: 'CN', value: 1000 });
console.log(rate);Parameters
| Name | Type | Description |
|---|---|---|
| product | string | Plain-language product description. |
| origin | string | Origin country code: CN, VN, IN, MX (or default). |
| value | number | Declared value. |
| mode | string | ocean (default) or air. |
| freight | number | Optional freight, for a complete landed cost. |
| brokerFee | number | Optional broker fee. |
What you get back
A source-backed result containing the stacked duty rate, duty amount, MPF/HMF, total landed cost, an as_of date and the official source URLs.
Free vs Enterprise
The public endpoint is keyless and rate-limited—perfect for evaluation and light use. For unlimited calls, done-for-you setup and rate-change alerts, see GroundTruth Enterprise:
https://dytsk9wrfv.page.coze.site/groundtruth.html
License
MIT
