Shopify Shipping AppG2 Best Shipping SoftwareCapterra Best Shipping Software
Rated Excellent 4.2 with 1200+ 5-Star Reviews
Trusted By 100,000+ Businesses Worldwide

HS Code API For Product
Import Duties & Customs Clearance

Accurate HS Code classification across 200+ countries and territories

Automate HS code allocation for faster customs clearance when importing goods and shipping internationally. Ensure regulatory compliance, navigate changing tariffs and eliminate shipment delays.

  • Reliable 99.99% API uptime
  • Access 5,300 HS codes
  • Ship to 200+ destinations
  • 24/7 global support

Why Brands Rely on Easyship's HS Code API

Easyship’s HS Codes API gives your platform real-time access to global tariff calculations with a single API. No more maintaining country tables, reconciling supplier-provided codes, or manual mapping.

Global Tariff Coverage

Instant access to our global HS Code library used by 200+ destinations with automatic keyword match suggestions.

HS Code Intelligence

Enrich your product cataloge with simplified HS Code allocation for customs and regulatory compliance.

Customs Clearance

Populate all your shipping documentation with accurate product HS Codes for faster customs clearance.

Tax & Duty API

Easily combine Easyship's HS Code and Tax & Duty API endpoints for simplified cross-border shipments.

Duties At Checkout

Offer transparent tax and duty calculations at checkout to boost conversions with clear HS Code classification.

Total Landed Costs

Once assigned, use Easyship to return all applicable tax, duty and tariffs for accurate landed cost estimates.

How does the HS Code API work?

Get product classification certainty with one simple API call. Send your product details and receive matched HS Codes that can be mapped and assigned for accurate tax, duty and tariff calculations for compliance and customs.

  • Generate your API key to access the full HS Codes library
  • Send your product details to receive suggested matches
  • Receive an accurate HS Code for international shipments
  • Combine with Easyship's Tax & Duty API for fully landed costs
  • Display transparent import tax and duty information at checkout

Accurate HS Code automation for global eCommerce

Return and assign the correct HS Code classification at scale with simplified cross-border tools for product categorization, HS Code matching, tariff management, compliance and import tax and duty calculations. No matter where your package is being delievered, Easyship's HS Code API delivers the exact compliance data you need to file customs correctly.

Embedded HS management for live import duties at checkout

Easily embed HS classification into your application, checkout or fulfillment workflow for transparent, fully landed costs. Display accurate import duties and taxes to customers and allow platform sellers to self-classify products correctly, ensuring every shipment is compliant with no surprises.

What is a HS Code API?

Easyship's HS Code API automatically classifies products using globally standardized HS codes defined by the World Customs Organization (WCO), returning clear product definitions to support associated Country Of Origin (COO) information, speeding up customs clearance, and ensuring compliance. By integrating HS Code lookups into your store or platform, you'll receive real-time classifications to accurately calculate international import duties, taxes and tariffs.

IMPLEMENTATION SUPPORT

Get Expert API Guidance & Implementation Support

Not sure how to get started? Generate your free API Key by clicking "Start Free" or complete this form to speak directly with an implementation expert. What once took months to build can now be achieved in days.

  • Risk-Free: Start with our free plan—no credit card required
  • Global Network: One API endpoint for 550+ global carrier services
  • Quick Setup: Generate your API Key and start building in minutes

Have Questions? We Have Answers

Built For Developers & Enterprise Brands

Whether you’re running operations, building a marketplace, or managing a logistics platform, Easyship’s HS Codes API simplifies compliance with one scalable, up-to-date customs classification engine.

eCommerce Brands

Instantly save on shipping and fulfillment costs with one unified shipping solution for every sales channel worldwide.

Arrow Right
Global Marketplaces

Offer a completely integrated global shipping experience for buyers and sellers with transparent rates, duties, insurance and discounts.

Arrow Right
Technology Platforms

Connect and embed global shipping services directly into your application for seamless shipping, returns and payment flows.

Arrow Right
Fulfillment & Warehousing

Automate shipping workflows, rate shopping, manifests, pickup scheduling, and analytics while reducing complexity and overheads.

Arrow Right

Shipping Rates API FAQs

What is returned in the HS Codes API response?

The response includes accurate Harmonized System (HS) codes that allow you to lookup, match and assign the right HS Code to the right product.

Do I need to combine this with my own tariff data?

No, you don't. While you'll need to manage and document elements of your supply chain for accuracy and compliance, Easyship provides globally updated tariff schedules and HS code assignment in real-time.

Does the API support everything I need to ship from labels and tracking to duties and address checks?

Yes, absolutely! Easyship offers a unique all-in-one solution that includes everything you need to ship a modular API suite. You can compare rates, generate labels, offer tracking, address verification, tax and duties together—so you can compare, buy, print, validate and monitor shipments in one integrated flow.

Does the API populate customs documents automatically?

Yes, when combined with Easyship's broader suite of API products, the API can return and populate the HS Code across all required customs documentation, including the commercial invoice, packing list and shipping label.

Can I filter or restrict certain classifications?

Yes, of course. Easyship's API is entirely flexible. You can apply business level rules like restricted categories, prohibited goods, or destination-specific overrides.

Which product inputs have the biggest impact on HS Code classification?

All the details you capture about your product can affect the likely classification. Consider the product description, materials, intended use, country of origin, and delivery destination as the primary drivers. Use Easyship's HS Code API to validate supplier-provided codes for added peace of mind.

Can I get real-time tariff and customs data via a HS Codes API?

Yes, try Easyship for everything cross-border in one package. The HS Codes API surfaces live tariff data, duty rules, de minimis thresholds, and tax logic for 200+ destinations so your system always uses current customs data.

Does the API include import duty and tax calculations?

Absolutely! Combine our HS Code API and Tax & Duty API to get the complete tariff management toolkit, from product classification to import tax and duty calculation, integrated directly into your platform.

Try the composable shipping API for global eCommerce

Every Easyship API is modular. Allowing you to connect only what you need from rates to returns. Start with live pricing, then layer in label generation, tracking, duties and address validation as you grow.

More Shipping API Resources

Shopify Australia
Technology

Shopify Australia

Easyship helped Shopify Australia enable it's merchants with access a diverse courier network, discounted rates and an integrated logistics solution leading to 4.5x growth in orders.

eBay
Technology

eBay

Find out how eBay leveraged Easyship to improve shipping efficiency, cut costs, and boost global sales, driving $3.68 billion in GMV across 200+ countries

Ostrichpillow
Industry

Ostrichpillow

We helped this famous pillow improve their delivery service by expanding their distribution worldwide and reduce shipping costs by 62%.