API reference
During the beta these results come from a sample reference dataset (tax rates,
HS catalog, regulations, screening, sanctions and PEP lists), not the official
sources. Use them to build and test your integration, not for customs
declarations or compliance decisions. API responses carry x-tariffapis-data: sample.
Base URL: https://tariffapis.com. Requests and responses are JSON.
Authenticate every call with Authorization: Bearer tk_live_…; create keys under API keys in the app.
Responses carry x-ratelimit-limit
and x-ratelimit-remaining; a 429 includes retry-after.
Errors look like {"error": {"code": "…", "message": "…"}}.
401 means a missing or revoked key; 403 means your plan doesn't include the module.
ai
aml
-
POST
/api/v1/aml/screenAML / PEP screening Guide
compliance
-
POST
/api/v1/compliance/screenScreen a shipment Guide
contact center
ekyc
helpdesk
hs
-
POST
/api/v1/hs/classifyClassify a product description Guide
kyb
landed cost
-
POST
/api/v1/landed-cost/estimateEstimate landed cost Guide
messaging
regulations
-
POST
/api/v1/regulations/searchFind regulations Guide
risk
-
POST
/api/v1/risk/scoreScore a shipment Guide
sanctions
-
POST
/api/v1/sanctions/screenSanctions screening Guide
tariffs
-
POST
/api/v1/tariffs/calculateCalculate duty for one line Guide
taxes
-
POST
/api/v1/taxes/calculateCalculate import tax Guide
verifications
-
GET
/api/v1/verifications/:idRead a verification's result Guide