TradeImport Duty
tariff.duty
Calculate supported US HTSUS and EU TARIC duty components for one import line against pinned official data. Unresolved rates, evidence requirements and dates outside the snapshots return needs_review.
https://api.kanagu.dev/v1/tariff/duty- Price
- $0.05 per line, on successful calls only
- Authentication
- API key required.
- MCP
call_operationwithoperation: "tariff.duty"athttps://api.kanagu.dev/mcp- Markdown
- /docs/tariff.duty.md
Compliance coverage
- Jurisdictions
- Jurisdictions: US, EU
- Standards
- USITC Harmonized Tariff Schedule2026 HTS Revision 232026-11-10Source
- European Commission TARIC monthly extractionNovember 2026, reference date 1 November2026-11-01Source
- Executive Order 14389 ending certain IEEPA tariff actionsEO 14389, §22026-02-20Source
- European Commission explanation for TARIC extractions9 June 20262026-06-09Source
- Union Customs Code, preferential originRegulation (EU) No 952/2013, Article 642013-10-09Source
- Temporary low-value consignment customs dutyCouncil Regulation (EU) 2026/382, Article 22026-02-11Source
- Verification
- Duty expressions and legal references are checked against the USITC HTS and European Commission TARIC exports and their published interpretation rules.
- Last reviewed
- 2026-11-26
curl https://api.kanagu.dev/v1/tariff/duty \
-H "Authorization: Bearer $KANAGU_KEY" \
-H "Content-Type: application/json" \
-d '{"jurisdiction":"EU","code":"9504400000","origin":"JP","importDate":"2026-11-01","customsValue":"1200.00","euConsignment":"ordinary","euPreference":{"area":"JP","proofConfirmed":true}}'const res = await fetch("https://api.kanagu.dev/v1/tariff/duty", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"jurisdiction": "EU",
"code": "9504400000",
"origin": "JP",
"importDate": "2026-11-01",
"customsValue": "1200.00",
"euConsignment": "ordinary",
"euPreference": {
"area": "JP",
"proofConfirmed": true
}
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();curl https://api.kanagu.dev/mcp \
-H "Authorization: Bearer $KANAGU_KEY" \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"call_operation","arguments":{"operation":"tariff.duty","input":{"jurisdiction":"EU","code":"9504400000","origin":"JP","importDate":"2026-11-01","customsValue":"1200.00","euConsignment":"ordinary","euPreference":{"area":"JP","proofConfirmed":true}}}}}'{
"jurisdiction": "EU",
"code": "9504400000",
"origin": "JP",
"importDate": "2026-11-01",
"customsValue": "1200.00",
"euConsignment": "ordinary",
"euPreference": {
"area": "JP",
"proofConfirmed": true
}
}Request body
application/json
jurisdiction"US" | "EU"requiredcodestringrequired- 8- or 10-digit HTSUS (US), or CN/TARIC (EU) goods code. Preserve leading zeros.
originstringrequired- Uppercase country or territory of origin. Use TARIC geography codes for EU. US accepts UK as an alias for GB.
importDatestring (date)required- Date of entry for consumption (US) or declaration acceptance (EU).
customsValuestringrequired- Line customs value in USD (US) or EUR (EU), as a decimal string.
quantityobjectquantity.valuestringrequiredquantity.unitstringrequired- Use the unit in the published duty rate, such as kg, hl, or each.
euPreferenceobject- TARIC geographical area of the preference claimed, for EU entries only.
euPreference.areastringrequiredeuPreference.proofConfirmedbooleanrequired- The importer verified entitlement and holds the required proof of preferential origin.
euAdditionalCodestring- Verified TARIC additional code for an EU trade-defence measure, e.g. an exporter code.
euConsignment"ordinary" | "low_value_qualifying"- Use ordinary after ruling out special low-value treatment or low_value_qualifying for an eligible postal/IOSS consignment under Regulation (EU) 2026/382.
Response
200 · application/json
status"calculated" | "needs_review"requiredjurisdiction"US" | "EU"requiredcodestringrequiredoriginstringrequiredimportDatestring (date)requiredcurrency"USD" | "EUR"requiredtotalDutystring | nullrequired- Combined duty when supported and resolved, in the output currency.
snapshotobjectrequiredsnapshot.namestringrequiredsnapshot.versionstringrequiredsnapshot.datestring (date)requiredsnapshot.throughstring (date)requiredsnapshot.urlstring (uri)requiredmeasuresarray of objectrequiredmeasures[].kind"base" | "preference" | "additional" | "anti_dumping" | "countervailing" | "quota" | "suspension" | "low_value"requiredmeasures[].status"applied" | "alternative" | "conditional" | "not_applicable"requiredmeasures[].goodsCodestringrequiredmeasures[].areastringmeasures[].additionalCodestringmeasures[].orderNumberstringmeasures[].ratestringrequiredmeasures[].amountstring | nullrequired- Duty for this rate expressed in the output currency (a scenario amount for conditional/alternative measures).
measures[].sourceobjectrequiredmeasures[].source.rulestringrequiredmeasures[].source.urlstring (uri)requiredfindingsarray of objectrequiredfindings[].codestringrequiredfindings[].fieldstringrequiredfindings[].expectedstringrequiredfindings[].actualstringrequiredfindings[].sourceobjectrequiredfindings[].source.rulestringrequiredfindings[].source.urlstring (uri)required
Try it
Errors
Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.
| Status | Code and meaning |
|---|---|
| 400 | invalid_inputThe body does not match the request schema. The message names each field. |
| 400 | invalid_jsonThe body is missing or is not valid JSON. |
| 400 | invalid_idempotency_keyIdempotency-Key must be 1–128 visible ASCII characters. |
| 401 | invalid_api_keyThe Bearer key is missing, malformed, invalid or inactive. |
| 402 | free_allowance_exhaustedThis month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left. |
| 404 | not_foundNo operation at this path. |
| 409 | idempotency_conflictThe Idempotency-Key was already used with a different body. |
| 413 | payload_too_largeJSON bodies may be at most 64 KiB. |
| 500 | internal_errorThe call failed on our side. It is not billed; retry with the same Idempotency-Key. |
JSON Schema
Request schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"jurisdiction": {
"type": "string",
"enum": [
"US",
"EU"
]
},
"code": {
"type": "string",
"pattern": "^(?:\\d{8}|\\d{10}|\\d{4}\\.\\d{2}\\.\\d{2}(?:\\.?\\d{2})?)$",
"description": "8- or 10-digit HTSUS (US), or CN/TARIC (EU) goods code. Preserve leading zeros."
},
"origin": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "Uppercase country or territory of origin. Use TARIC geography codes for EU. US accepts UK as an alias for GB."
},
"importDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Date of entry for consumption (US) or declaration acceptance (EU)."
},
"customsValue": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d{0,11})(?:\\.\\d{1,2})?$",
"description": "Line customs value in USD (US) or EUR (EU), as a decimal string."
},
"quantity": {
"type": "object",
"properties": {
"value": {
"type": "string",
"pattern": "^(?:0|[1-9]\\d{0,11})(?:\\.\\d{1,6})?$"
},
"unit": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9]{0,11}$",
"description": "Use the unit in the published duty rate, such as kg, hl, or each."
}
},
"required": [
"value",
"unit"
],
"additionalProperties": false
},
"euPreference": {
"description": "TARIC geographical area of the preference claimed, for EU entries only.",
"type": "object",
"properties": {
"area": {
"type": "string",
"pattern": "^(?:[A-Z]{2}|\\d{4})$"
},
"proofConfirmed": {
"type": "boolean",
"description": "The importer verified entitlement and holds the required proof of preferential origin."
}
},
"required": [
"area",
"proofConfirmed"
],
"additionalProperties": false
},
"euAdditionalCode": {
"description": "Verified TARIC additional code for an EU trade-defence measure, e.g. an exporter code.",
"type": "string",
"pattern": "^[A-Z0-9]{4}$"
},
"euConsignment": {
"description": "Use ordinary after ruling out special low-value treatment or low_value_qualifying for an eligible postal/IOSS consignment under Regulation (EU) 2026/382.",
"type": "string",
"enum": [
"ordinary",
"low_value_qualifying"
]
}
},
"required": [
"jurisdiction",
"code",
"origin",
"importDate",
"customsValue"
],
"additionalProperties": false,
"examples": [
{
"jurisdiction": "EU",
"code": "9504400000",
"origin": "JP",
"importDate": "2026-11-01",
"customsValue": "1200.00",
"euConsignment": "ordinary",
"euPreference": {
"area": "JP",
"proofConfirmed": true
}
},
{
"jurisdiction": "US",
"code": "6109.10.00.12",
"origin": "CN",
"importDate": "2026-11-10",
"customsValue": "1200.00",
"quantity": {
"value": "100",
"unit": "each"
}
}
]
}Response schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"status": {
"type": "string",
"enum": [
"calculated",
"needs_review"
]
},
"jurisdiction": {
"type": "string",
"enum": [
"US",
"EU"
]
},
"code": {
"type": "string"
},
"origin": {
"type": "string"
},
"importDate": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"currency": {
"type": "string",
"enum": [
"USD",
"EUR"
]
},
"totalDuty": {
"description": "Combined duty when supported and resolved, in the output currency.",
"type": [
"string",
"null"
]
},
"snapshot": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"version": {
"type": "string"
},
"date": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"through": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"name",
"version",
"date",
"through",
"url"
],
"additionalProperties": false
},
"measures": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"base",
"preference",
"additional",
"anti_dumping",
"countervailing",
"quota",
"suspension",
"low_value"
]
},
"status": {
"type": "string",
"enum": [
"applied",
"alternative",
"conditional",
"not_applicable"
]
},
"goodsCode": {
"type": "string"
},
"area": {
"type": "string"
},
"additionalCode": {
"type": "string"
},
"orderNumber": {
"type": "string"
},
"rate": {
"type": "string"
},
"amount": {
"description": "Duty for this rate expressed in the output currency (a scenario amount for conditional/alternative measures).",
"type": [
"string",
"null"
]
},
"source": {
"type": "object",
"properties": {
"rule": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"rule",
"url"
],
"additionalProperties": false
}
},
"required": [
"kind",
"status",
"goodsCode",
"rate",
"amount",
"source"
],
"additionalProperties": false
}
},
"findings": {
"type": "array",
"items": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"field": {
"type": "string"
},
"expected": {
"type": "string"
},
"actual": {
"type": "string"
},
"source": {
"type": "object",
"properties": {
"rule": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"required": [
"rule",
"url"
],
"additionalProperties": false
}
},
"required": [
"code",
"field",
"expected",
"actual",
"source"
],
"additionalProperties": false
}
}
},
"required": [
"status",
"jurisdiction",
"code",
"origin",
"importDate",
"currency",
"totalDuty",
"snapshot",
"measures",
"findings"
],
"additionalProperties": false
}