Japan Customs HS Code & Duty Calculator avatar

Japan Customs HS Code & Duty Calculator

Pricing

from $0.01 / 1,000 results

Go to Apify Store
Japan Customs HS Code & Duty Calculator

Japan Customs HS Code & Duty Calculator

Classify products into Japan customs HS9 codes, compute duty + 消費税 (JCT, 10%), and produce JCT-inclusive landed cost in JPY. Built for cross-border merchants pricing into Japan. BYO Anthropic key for LLM classification (publisher charges $0 for LLM calls).

Pricing

from $0.01 / 1,000 results

Rating

0.0

(0)

Developer

Aulvem

Aulvem

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

2 days ago

Last modified

Share

Classify products into Japan customs HS9 codes, compute the applicable duty rate, and produce a JCT-inclusive landed cost — for cross-border e-commerce merchants who need to quote total cost before shipping into Japan.

For each row, you get HS6 candidates with confidence scores, the selected HS9 code, the tariff rate per the appropriate trade agreement, the duty in JPY, the JCT (consumption tax) in JPY, and the total landed cost.

Built for Japan-bound merchants on Shopify, BASE, Stores, custom storefronts, and for the 通関業者 / 輸入代行 / 越境 EC コンサル who price their service against actual customs cost.

What it computes

For each item in a single Apify run:

  • HS6 classification: Top 3 candidates with confidence scores (when LLM mode is on)
  • HS9 resolution: First HS9 child of the highest-confidence HS6, or the user-supplied knownHs9 if provided
  • Tariff rate: Per-HS9 rate at MFN or agreement-based (EPA / GSP / ITA), derived from the bundled snapshot of 税関 公表データ
  • Duty in JPY: floor(CIF × rate%)
  • JCT: floor((CIF + duty) × 10%) — standard 消費税 rate
  • Total landed JPY: CIF + duty + JCT — what your customer effectively pays in import cost

When to use it

  • Pre-quote calculator: Before listing a product for sale into Japan, run it through to know the customer's total landed cost — useful for accurate ¥ pricing in Shopify
  • Bulk reclassification: When 国税庁 or 税関 publish a tariff schedule update, batch-re-validate your SKU catalog
  • Onboarding 通関業者: Send your customs broker an Apify dataset URL instead of an Excel sheet; they can re-run as your catalog updates
  • CI / nightly check: Schedule the Actor nightly via Apify Scheduler to recompute landed cost for new SKUs

Two modes

ModeWhenCost
knownHs9 pathYou already know the 9-digit HS code$0.001/row, no LLM API call
LLM classifierYou only have a product description$0.001/row Apify PPE + ~$0.020/row Anthropic API charged to YOUR Anthropic key (BYO key, see Input tab)

The Actor publisher does NOT charge you for the LLM call. You bring your own Anthropic key from console.anthropic.com and the call is made directly from the Actor to Anthropic with your credential. The Actor never logs the key.

Input

{
"items": [
{
"ref": "sku-001",
"description": "Cotton T-shirt with printed graphic",
"originCountry": "VN",
"cifJpy": 50000,
"language": "en"
}
],
"useLlmClassifier": true,
"anthropicApiKey": "sk-ant-..."
}

Field reference is in the Input tab. For pure landed-cost computation with no classification, supply knownHs9 per item and leave useLlmClassifier: false.

Output

One dataset row per item:

FieldTypeDescription
refstring | nullEchoed back for matching
descriptionstringEcho of input
originCountrystringEcho of input
candidatesarrayHS6 candidates from classifier (or single knownHs9 entry)
selectedHs9string | nullThe 9-digit code used for duty computation
tariffRatePctnumber | nullRate applied (e.g. 7.4 for 7.4%)
tariffKindstring | null"agreement-or-default" or null
dutyintegerJPY
jctintegerJPY
totalLandedJpyintegerCIF + duty + JCT
warningsstring[]Issues: missing knownHs9, LLM failure, unknown rate

Pricing

  • Pay-Per-Result (PPE): $0.001 per item processed (Apify charge)
  • LLM mode add-on: ~$0.020/row on your own Anthropic billing (Actor publisher receives $0)
  • Free tier: First 5 runs/day per Apify account

For a 1,000-SKU catalog with all knownHs9 (no LLM), total = $1.00. Same catalog with full LLM classification: $1.00 Apify + ~$20 on your Anthropic key.

  • HS code data snapshot is the bundled @ws/jp-hs-code 2026 version (heading-level mapping). For specific HS9 codes outside the snapshot, the Actor emits a warning and falls back to 0% duty (you must verify against 税関 tariff search).
  • This Actor surfaces classification mechanically; it does not replace a 通関士 or 通関業者. Final classification disposition is your broker's call, especially for borderline cases (cosmetics vs medicaments, knit vs woven apparel, electronics chapter 85 vs 90).
  • JCT computation uses the standard 10% rate. Reduced rate (8%) for some food / 新聞 items is not implemented.

Roadmap

  • v0.2: Per-HS9 tariff rate snapshot from customs.go.jp (replace heading-level placeholder)
  • v0.3: Auto-classifier fine-tune feedback loop (customer corrections → improved confidence)
  • v0.4: Shopify Admin API connector (skip JSON marshaling for Shopify-Japan stores)

Maintained by aulvem. Bug reports / feature requests via the Issues tab on the Actor page.


Developer notes

This Actor is part of a shared-modules monorepo. Classifier logic lives in apps/apify-jp-hs-code/src/classifier.ts (16 unit tests). Tariff snapshot in @ws/jp-hs-code (12 unit tests).

The Anthropic API key is read EXCLUSIVELY from input.anthropicApiKey — never from process.env. This guarantees that LLM cost lands on the Apify customer, not on the Actor publisher's Anthropic account (BYO-key policy).

Local run (developers only):

cd apps/apify-jp-hs-code
pnpm tsx src/main.ts

Uses Apify SDK in local mode; expects an INPUT.json in the configured KV store. See Apify SDK local development docs.

Deploy is via the bundle pipeline:

./scripts/apify-build-bundle.sh @apps/apify-jp-hs-code japan-hs-code-duty-calculator apps/apify-jp-hs-code
cd apify-deploy/japan-hs-code-duty-calculator
pnpm dlx apify-cli push --force

Pre-push sanity checks live in ../../docs/apify-actor-sanity-check.md.