Public estimate API
Free read-only JSON endpoint returning a UK import duty and VAT estimate for a commodity code, origin and value, with source, timestamps and 'not calculated' where rates cannot be verified.
Endpoint
GET /api/public/v1/estimate — no key needed. Only public tariff data is used; nothing you send is stored.
Parameters
code— 10-digit UK commodity code (required)origin— 2-letter ISO country code of origin, e.g. CN, US, DE (required)goods— goods value in GBP (required)shipping,insurance— GBP, default 0
Example
GET https://importduty-calculator.co.uk/api/public/v1/estimate?code=6912002310&origin=CN&goods=400&shipping=0
{
"api_version": "1.0",
"tariff_data_fetched_at": "2026-10-19T10:00:00.000Z",
"source": { "name": "UK Trade Tariff ...", "url": "https://www.trade-tariff.service.gov.uk/commodities/6912002310?country=CN" },
"destination": "GB", "currency": "GBP",
"commodity_code": "6912002310", "origin_country": "CN",
"verification_status": "rates_read_from_official_tariff",
"duty": { "status": "calculated", "amount": 16 },
"import_vat": { "status": "calculated", "amount": 83.2 },
"total_cash_outlay_excluding_fees": { "status": "calculated", "amount": 499.2 },
"not_included": ["courier or broker clearance fees", "..."],
"warnings": [], "assumptions": ["..."], "disclaimer": "Estimate only ..."
}Rules
- Any amount we cannot verify is returned as
{ "status": "not_calculated", "amount": null }, never estimated. - 400 = invalid input; 502 = the UK Trade Tariff could not be read (no estimate).
- Successful responses may be cached for up to 1 hour. Please cache on your side and keep request volumes modest.
- Versioned path: breaking changes will use
/v2.
Method and limits: see methodology. Estimates are not legal or tax advice.
Last reviewed 19 October 2026. General guidance only — not legal or tax advice.