# Tariffs API > US import tariff data and HTS code resolution, designed for cross-border ecommerce checkouts. REST API + MCP server returns the total US landed duty for any HTS code and country of origin, including Section 301, Section 232, Section 122, IEEPA measures, Chapter 99 special programs, and historical rates. Public pricing, 14-day free trial. Tariffs API is built for developers shipping a duty calculation into a checkout, ERP, or broker tool. The platform maintains the US HTS index and overlays trade-agreement and presidential-proclamation rates on top of base MFN duties. Customers get a single `/resolve` REST endpoint that returns the applicable rates with confidence scores, warnings, and match metadata. An MCP server is available for agentic workflows on the Pro plan. Web tools (duty calculator, HTS browser, watch list with rate-change alerts) ship alongside the API for non-technical users. Important context: Tariffs API does not perform HTS classification (placing a product into a code). That requires a licensed customs broker. The platform reports rates and regulations applied to HTS codes that the user has already identified. ## Core pages - [Homepage](https://tariffsapi.com/): Product overview for checkout developers. - [Tariff calculator](https://tariffsapi.com/tariff-calculator): Free web calculator for total landed duty by HTS code, origin country, and date. - [HTS browser and search](https://tariffsapi.com/hts): Searchable index of every US HTS code with current rates and applicable measures. - [HTS code page template](https://tariffsapi.com/hts/8471.30.01): Per-code rate breakdown — replace the code suffix to view any HTS code. - [Pricing](https://tariffsapi.com/pricing): Plans for web users (Free, Importer) and developers (Basic API, Pro). - [Pricing (machine-readable)](https://tariffsapi.com/pricing.md): Same pricing in plain markdown for programmatic readers. - [API documentation](https://tariffsapi.com/api-documentation): REST API reference for the `/resolve` endpoint and supporting routes. - [OpenAPI spec](https://tariffsapi.com/openapi.yaml): Machine-readable API schema. - [Status page](https://tariffsapi.com/status): Current data sync status across HTS chapters, agreements, and Federal Register imports. - [Changelog](https://tariffsapi.com/changelog): Recent product and data updates. ## Ecommerce platform integrations Drop-in patterns for wiring Tariffs API into common ecommerce platforms. Each page includes copy-paste code that calls `/api/v1/tariffs/resolve` and writes the result back to the cart. - [Medusa](https://tariffsapi.com/integrations/medusa): Workflow step + storefront integration for headless Medusa stores. - [Solidus](https://tariffsapi.com/integrations/solidus): Rails-native `Spree::Calculator` subclass. - [Spree Commerce](https://tariffsapi.com/integrations/spree): Same calculator pattern adapted for Spree. - [Saleor](https://tariffsapi.com/integrations/saleor): Sync webhook handler using the tax-calculation webhook. - [BigCommerce](https://tariffsapi.com/integrations/bigcommerce): Carts API integration + custom line item for the duty total. - [Adobe Commerce (Magento)](https://tariffsapi.com/integrations/adobe-commerce): PHP module that registers a quote totals collector. - [Swell](https://tariffsapi.com/integrations/swell): Node middleware for headless Swell.is stores. - [Foxy](https://tariffsapi.com/integrations/foxy): Pre-payment webhook returning duty as a custom field. ## Competitor alternatives Honest comparisons against other cross-border duty providers. Each page cites the competitor's public pricing and docs. - [vs Zonos](https://tariffsapi.com/alternatives/zonos): Zonos is a full cross-border platform; Tariffs API is the duty number only. - [vs Passport](https://tariffsapi.com/alternatives/passport): Passport (passportglobal.com) is DTC-focused; Tariffs API is a standalone REST endpoint. (Additional alternative pages may exist; see the footer of any page or the sitemap for the current list.) ## Trade-program explainers - [Section 301](https://tariffsapi.com/section-301): China-origin punitive duties. - [Section 232](https://tariffsapi.com/section-232): National-security tariffs (steel, aluminum, autos). - [IEEPA](https://tariffsapi.com/ieepa): International Emergency Economic Powers Act tariffs. - [IEEPA refund](https://tariffsapi.com/ieepa-refund): Refund-eligibility guidance for IEEPA-affected entries. - [Chapter 99](https://tariffsapi.com/chapter-99): Special classification provisions and how they overlay base rates. ## Editorial - [Blog](https://tariffsapi.com/blog): Weekly digest of US tariff and trade news, grounded in HTS-level changes from the Federal Register, USTR, and presidential proclamations. Each issue cites primary sources. - [News](https://tariffsapi.com/news): Curated upstream tariff and trade headlines from third-party publishers. ## For developers and agents - The `/api/v1/tariffs/resolve` endpoint accepts an HTS code and country of origin (and optional `as_of` date) and returns base MFN duty plus all applicable Section 301, 232, 122, IEEPA, Chapter 99, and trade-agreement adjustments. - A bulk `/api/v1/tariffs/resolve_batch` endpoint accepts up to 200 codes per request for cart-level pricing. - An MCP server is available on the Pro plan for agentic tariff workflows. - Rate data syncs from USITC HTS publications and Federal Register notices. The status page reports current sync state. - Historical rates are available via `as_of` queries on the Importer (web) and Basic API / Pro (API) plans. ## What this site does not do - It does not classify products under HTS codes. That is a licensed-customs-broker activity. - It does not file customs entries or interact with CBP on a user's behalf. - Rate data shown reflects published US regulations and may lag breaking news headlines by hours or days while imports complete.