
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
groundtruth-tariff
Advanced tools
2026 US tariff and landed cost API for AI agents and ecommerce sellers. Source-linked duty rates (MFN, Section 301/232, forced-labor), MPF/HMF, and total landed cost.
Source-linked 2026 US tariff & landed-cost API for AI agents and ecommerce sellers.
Get accurate US import duties — MFN rates, Section 301/232 tariffs, MPF/HMF fees — and total landed cost in a single call. Every rate is traceable to an official source.
npm install groundtruth-tariff
const { calculateTariff } = require('groundtruth-tariff');
const result = await calculateTariff({
product: 'cotton t-shirt',
origin: 'CN',
value: 1000
});
console.log(result);
// {
// as_of: '2026-09-29',
// origin: 'CN',
// matched_category: { id: 'apparel', label: 'Apparel & clothing' },
// duty_breakdown: [
// { name: 'MFN duty', rate: 0.165 },
// { name: 'Section 301', rate: 0.25 },
// ...
// ],
// total_duty_rate: 0.54,
// total_customs_duty: 540,
// fees: { mpf: 34.65, hmf: 12.5 },
// total_landed_cost: 1573.50,
// sources: [ ... ]
// }
calculateTariff({ product, origin, value, mode })Calculate import duty and full landed cost.
| Param | Type | Required | Description |
|---|---|---|---|
product | string | ✅ | Product description, e.g. 'cotton t-shirt' |
origin | string | ✅ | Origin country code: CN, VN, IN, MX, etc. |
value | number | ✅ | Declared customs value in USD |
mode | string | ❌ | Shipping mode: 'ocean' (default) or 'air' |
Returns a promise resolving to the full duty breakdown, fees, and landed cost.
listCategories()List all supported tariff categories, origin countries, and fee rules.
const { listCategories } = require('groundtruth-tariff');
const data = await listCategories();
console.log(data.categories);
Smartphone from Vietnam, shipped by air:
const result = await calculateTariff({
product: 'smartphone',
origin: 'VN',
value: 2000,
mode: 'air'
});
Error handling:
try {
const result = await calculateTariff({ product: 'shoes', origin: 'CN', value: 500 });
} catch (err) {
console.error('Tariff lookup failed:', err.message);
}
MIT © GroundTruth
Free tier includes attribution. Paid plans remove attribution and raise rate limits.
FAQs
2026 US tariff and landed cost API for AI agents and ecommerce sellers. Source-linked duty rates (MFN, Section 301/232, forced-labor), MPF/HMF, and total landed cost.
The npm package groundtruth-tariff receives a total of 9 weekly downloads. As such, groundtruth-tariff popularity was classified as not popular.
We found that groundtruth-tariff demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.