Skip to content

About

Look up US tariff rates and HS codes. Trade compliance, import/export costs, tariff classification. USMCA, GSP, FTA rates. Updated 2026 data.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

US Tariff & HS Code Lookup — Automate Import Duty Rate Research

Look up US import tariff rates and HS (Harmonized System) codes from the official USITC Harmonized Tariff Schedule. Search by HS code or product keyword. Get general duty rates, special trade program rates (USMCA, GSP, FTAs), and chapter notes. Updated 2026 data.

Run on Apify Available on RapidAPI License: ISC

Why This Exists

Looking up US tariff rates is painful:

  • The USITC website is slow and hard to navigate
  • HS codes are 10 digits with dots — easy to mistype
  • Special trade program rates (USMCA, GSP, CAFTA-DR) are buried in footnotes
  • No public API exists for automated lookups

This tool automates the entire process. Give it an HS code or product keyword, and get structured tariff data back via API.

What Data You Get

{
  "hsCode": "8471.30",
  "description": "Portable automatic data processing machines, weighing not more than 10 kg",
  "generalDutyRate": "Free",
  "specialDutyRates": {
    "GSP": "Free",
    "USMCA (Canada)": "Free",
    "USMCA (Mexico)": "Free",
    "Australia FTA": "Free",
    "Korea FTA": "Free"
  },
  "column2Rate": "35%",
  "unitOfQuantity": "No.",
  "countryOfOrigin": "Mexico",
  "applicableSpecialRate": {
    "program": "USMCA (Mexico)",
    "rate": "Free"
  },
  "searchKeyword": "8471.30",
  "scrapedAt": "2026-03-10T15:00:00.000Z"
}

Quick Start

cURL — Look up by HS Code

curl "https://api.apify.com/v2/acts/george.the.developer~us-tariff-hs-code-lookup/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -X POST \
  -d '{
    "hsCode": "8471.30",
    "countryOfOrigin": "Mexico",
    "maxResults": 10
  }' \
  -H 'Content-Type: application/json'

cURL — Search by Keyword

curl "https://api.apify.com/v2/acts/george.the.developer~us-tariff-hs-code-lookup/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -X POST \
  -d '{
    "keyword": "laptop computer",
    "maxResults": 20
  }' \
  -H 'Content-Type: application/json'

Node.js

import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('george.the.developer/us-tariff-hs-code-lookup').call({
    hsCode: '0901.11',
    countryOfOrigin: 'Colombia',
    maxResults: 10,
    includeNotes: true,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach(tariff => {
    console.log(`HS ${tariff.hsCode}: ${tariff.description}`);
    console.log(`  General rate: ${tariff.generalDutyRate}`);
    if (tariff.applicableSpecialRate) {
        console.log(`  ${tariff.applicableSpecialRate.program}: ${tariff.applicableSpecialRate.rate}`);
    }
});

Python

from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

# Look up tariff for coffee from Colombia
run = client.actor("george.the.developer/us-tariff-hs-code-lookup").call(run_input={
    "hsCode": "0901.11",
    "countryOfOrigin": "Colombia",
    "maxResults": 10,
})

for tariff in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(f"HS {tariff['hsCode']}: {tariff['description']}")
    print(f"  General duty: {tariff['generalDutyRate']}")
    if "applicableSpecialRate" in tariff:
        rate = tariff["applicableSpecialRate"]
        print(f"  {rate['program']}: {rate['rate']}")

Use Cases

  • Import Cost Calculation — Determine exact duty rates before placing international orders
  • Trade Compliance — Automate HS code classification for customs declarations
  • Supply Chain Optimization — Compare tariff rates across supplier countries
  • E-Commerce — Calculate landed costs for cross-border selling (Shopify, Amazon FBA)
  • FTA Analysis — Identify which free trade agreements reduce your duties to zero
  • Customs Brokerage — Automate tariff lookups for client shipments
  • Trade Policy Research — Track tariff changes across product categories

Supported Trade Programs

The scraper parses and identifies rates for 20+ special programs:

Code Program
A Generalized System of Preferences (GSP)
CA, MX USMCA (Canada, Mexico)
AU Australia FTA
KR Korea FTA
CL Chile FTA
CO Colombia TPA
PA Panama TPA
PE Peru TPA
SG Singapore FTA
IL Israel FTA
JO Jordan FTA
P CAFTA-DR
D AGOA (African Growth & Opportunity)
E Caribbean Basin Initiative

Input Parameters

Parameter Type Default Description
hsCode string — HS code to look up (e.g., "8471.30")
keyword string — Product keyword (e.g., "laptop computer")
countryOfOrigin string — Highlight applicable FTA rates
maxResults number 20 Max tariff lines to return (1-100)
includeNotes boolean true Include chapter/section notes

Run on Apify

Run this actor on Apify — get tariff data in seconds.

  • Cost: ~$0.005 per lookup
  • Data Source: Official USITC Harmonized Tariff Schedule (hts.usitc.gov)

Also Available on RapidAPI

Prefer a standard REST API? This lookup tool is also available on RapidAPI with simple API key authentication:

  • Free tier: 50 requests/month
  • Pro: $29/month (1,000 requests)
  • Ultra: $79/month (5,000 requests)
  • Mega: $199/month (20,000 requests)

Limitations

  • Data is scraped from the public USITC website. While generally accurate, always verify rates with a licensed customs broker for official customs declarations.
  • The tool cannot determine the correct HS classification for your product — it looks up rates for codes/keywords you provide.
  • Some complex tariff provisions (tariff-rate quotas, anti-dumping duties, Section 301 tariffs) may not be fully captured.

Related Tools

License

ISC License. See LICENSE for details.


Built by george.the.developer on Apify.

About

Look up US tariff rates and HS codes. Trade compliance, import/export costs, tariff classification. USMCA, GSP, FTA rates. Updated 2026 data.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors