Tariffs API Reference
3 routes. Base URL https://api.apifor.dev, authenticated with x-api-key. Failed calls are not charged. Overview, limits and sources are on the Import duty and landed cost API page.
GET
/v1/tariffs/search2 creditsFull-text search over the national tariff descriptions (USITC HTS for US, UK Trade Tariff for GB), or a code prefix. 2 credits.
| Parameter | In | Type | Rules |
|---|---|---|---|
| q * | query | string | max 100 chars · Words, or a code prefix such as 6109. |
| market * | query | string | one of US, GB · Import market. EU is not available yet and returns 400 MARKET_UNAVAILABLE. |
| limit | query | integer | 1 to 50 · default 20 |
| declarable | query | string | one of true, false · true returns only codes you can declare. |
curl 'https://api.apifor.dev/v1/tariffs/search?q=cotton%20t-shirts&market=US' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"market": "US",
"code": "6109100014",
"display_code": "6109.10.00.14",
"description": "Boys' (338)",
"path": "T-shirts, singlets, tank tops and similar garments, knitted or crocheted > Of cotton > Men's or boys' > Other T-shirts > Boys' (338)",
"declarable": true,
"general_rate": "16.5%"
},
{
"market": "US",
"code": "6109100045",
"display_code": "6109.10.00.45",
"description": "Girls' (339)",
"path": "T-shirts, singlets, tank tops and similar garments, knitted or crocheted > Of cotton > Women's or girls' > Other > T-shirts > Girls' (339)",
"declarable": true,
"general_rate": "16.5%"
},
{
"market": "US",
"code": "6109100012",
"display_code": "6109.10.00.12",
"description": "Men's (338)",
"path": "T-shirts, singlets, tank tops and similar garments, knitted or crocheted > Of cotton > Men's or boys' > Other T-shirts > Men's (338)",
"declarable": true,
"general_rate": "16.5%"
}
],
"meta": {
"total": 3,
"attribution": {
"source": "U.S. International Trade Commission, Harmonized Tariff Schedule of the United States",
"license": "Public domain (U.S. Government work, 17 U.S.C. 105)",
"license_url": "https://www.usa.gov/publicdomain/label/1.0/",
"source_url": "https://hts.usitc.gov/",
"attribution_page": "https://catalog.data.gov/dataset/harmonized-tariff-schedule-of-the-united-states-2025",
"notice": "Normalized to JSON; statistical lines inherit the rate of their 8-digit line."
}
}
}200Matching codes, best match first400Error envelope401Error envelope402Error envelope
GET
/v1/tariffs/code/{code}5 creditsMFN/general rate, preferential rates per origin, units, notes, source and valid_from. GB reads the live UK tariff (cached 24 h). 5 credits.
| Parameter | In | Type | Rules |
|---|---|---|---|
| code * | path | string | None |
| market * | query | string | one of US, GB · Import market. EU is not available yet and returns 400 MARKET_UNAVAILABLE. |
| origin | query | string | ISO 3166-1 alpha-2 · Country of origin (ISO 3166-1 alpha-2). Picks the preferential or column 2 rate when one applies. |
curl 'https://api.apifor.dev/v1/tariffs/code/6109.10.00.12?market=US&origin=KR' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": {
"market": "US",
"code": "6109100012",
"display_code": "6109.10.00.12",
"description": "Men's (338)",
"path": "T-shirts, singlets, tank tops and similar garments, knitted or crocheted > Of cotton > Men's or boys' > Other T-shirts > Men's (338)",
"declarable": true,
"units": [
"doz.",
"kg"
],
"origin": "KR",
"applied": {
"basis": "special program KR (US-Korea FTA)",
"program": "KR",
"rate": {
"text": "Free",
"kind": "free",
"percent": 0
}
},
"rates": {
"general": {
"text": "16.5%",
"kind": "ad_valorem",
"percent": 16.5
},
"column2": {
"text": "90%",
"kind": "ad_valorem",
"percent": 90
},
"special_text": "Free (AU,BH,CL,CO,IL,JO,KR,MA,OM,P,PA,PE,S,SG)"
},
"preferential": [
{
"program": "AU",
"name": "US-Australia FTA",
"rate": {
"text": "Free",
"kind": "free",
"percent": 0
},
"applies_to_origin": false
},
{
"program": "BH",
"name": "US-Bahrain FTA",
"rate": {
"text": "Free",
"kind": "free",
"percent": 0
},
"applies_to_origin": false
}
],
"rate_line": "61091000",
"footnotes": [],
"notes": [
"The US-Korea FTA rate needs the goods to meet its rules of origin and a valid claim at entry.",
"Chapter 99 additional duties (Section 232, Section 301, IEEPA and similar) are not included and can be large. Check them before you rely ..."
],
"source": {
"name": "USITC Harmonized Tariff Schedule",
"revision": "2026 HTS Revision 23",
"valid_from": "2026-11-10",
"url": "https://hts.usitc.gov/search?query=61091000"
},
"disclaimer": "Estimate for planning only. Not a binding tariff, origin or valuation ruling. The importer or declarant is responsible for the commodity ..."
},
"meta": {
"attribution": {
"source": "U.S. International Trade Commission, Harmonized Tariff Schedule of the United States",
"license": "Public domain (U.S. Government work, 17 U.S.C. 105)",
"license_url": "https://www.usa.gov/publicdomain/label/1.0/",
"source_url": "https://hts.usitc.gov/",
"attribution_page": "https://catalog.data.gov/dataset/harmonized-tariff-schedule-of-the-united-states-2025",
"notice": "Normalized to JSON; statistical lines inherit the rate of their 8-digit line."
}
}
}200Rates for the code400Error envelope401Error envelope402Error envelope404Error envelope502Error envelope
POST
/v1/tariffs/landed-cost15 creditsDuty, import VAT and total landed cost with every assumption listed. An estimate, never a binding ruling. 15 credits.
{
"market": "GB",
"code": "6109100010",
"origin": "CN",
"customs_value": 1000,
"currency": "GBP",
"shipping": 120,
"insurance": 15
}curl -X POST 'https://api.apifor.dev/v1/tariffs/landed-cost' \
-H 'content-type: application/json' \
-H 'x-api-key: YOUR_API_KEY' \
-d '{"market":"GB","code":"6109100010","origin":"CN","customs_value":1000,"currency":"GBP","shipping":120,"insurance":15}'{
"success": true,
"data": {
"market": "GB",
"code": "6109100010",
"display_code": "6109100010",
"description": "Articles of apparel and clothing accessories, knitted or crocheted > T-shirts, singlets and other vests, knitted or crocheted > Of cotton...",
"origin": "CN",
"currency": "GBP",
"goods_value": 1000,
"shipping": 120,
"insurance": 15,
"customs_value_basis": "CIF (goods + shipping + insurance to the UK border)",
"dutiable_value": 1135,
"duty": {
"basis": "third country duty (UK Global Tariff)",
"program": null,
"rate": {
"text": "12.00 %",
"kind": "ad_valorem",
"percent": 12
},
"amount": 136.2,
"computed": true
},
"additional_duties": [],
"import_tax": {
"name": "UK import VAT",
"rate_percent": 20,
"base": 1271.2,
"amount": 254.24,
"source": "UK Trade Tariff measure 305 for 6109100010"
},
"landed_cost_total": 1525.44,
"total_is_complete": true,
"assumptions": [
"customs_value is the price of the goods. Shipping and insurance to the UK border are added to make the CIF customs value, which is the du...",
"Rate used: third country duty (UK Global Tariff)."
],
"source": {
"name": "UK Online Trade Tariff",
"revision": null,
"valid_from": "2021-01-01",
"url": "https://www.trade-tariff.service.gov.uk/commodities/6109100010"
},
"disclaimer": "Estimate for planning only. Not a binding tariff, origin or valuation ruling. The importer or declarant is responsible for the commodity ..."
},
"meta": {
"attribution": {
"source": "HM Revenue & Customs and Department for Business and Trade, UK Online Trade Tariff",
"license": "Open Government Licence v3.0",
"license_url": "https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/",
"source_url": "https://www.trade-tariff.service.gov.uk/",
"attribution_page": "https://www.trade-tariff.service.gov.uk/terms",
"notice": "Contains public sector information licensed under the Open Government Licence v3.0. Normalized to JSON."
}
}
}200Landed cost estimate400Error envelope401Error envelope402Error envelope404Error envelope502Error envelope