Developers

US import duties in the tools you already use

Every integration calls the same API: send an HTS code, a country of origin and a value, get every US duty and fee that applies, each with its official source. Each one below comes from a runnable example of the official clients.

Integrations

  • Python · Official clientpip install tarifftrust, then estimate the US duties and fees of a product, a declaration or a catalog from Python, each amount with its official source.
  • Node.js and TypeScript · Official clientnpm install tarifftrust: typed, without dependencies, for any server-side runtime with fetch. Every US duty and fee of an HTS code, each with its source.
  • Google Sheets · Spreadsheet=TARIFFTRUST_DUTY(code, origin, value) in any cell: the US import duty of a product on the day the cell is calculated, from a short Apps Script.
  • Shopify, WooCommerce and other stores · E-commerceEstimate the US duties of a cart from your store's backend, as one import declaration, from the customs fields of your catalog.
  • ERP and purchase orders · Landed costRead a purchase order, estimate it as one US import declaration, and spread duty, fees, freight and insurance over each unit.
  • Next.js · Web applicationA form and a route handler that call the TariffTrust API: the browser only ever calls your route, never the API with your key.

AI agents

TariffTrust is also a remote MCP server: Claude, Claude Code, Cursor, VS Code, Gemini CLI or your own agent get the API's operations as tools, and can estimate a product or a whole declaration, search the HTS and cite each duty's source instead of guessing a rate. Connect your agent.

Any other tool

Anything that can send an HTTPS request can call the REST API: one product, a batch of up to 200, a whole declaration with its fees counted once, or the duties of a product over a period. The reference gives each call in curl, Python, Node.js and Java, and the public repository holds the clients and every example.