68 ENDPOINTS

API Catalog

What problem each endpoint solves. To test with real data, use the Playground.

This page shows the main endpoints, not the exhaustive catalog. Test any endpoint in the Playground with dev-test-key.

Classification

AI-powered HS code classification with GRI reasoning

Final products classified by assembled FUNCTION (not dominant component). Components get GRI reasoning + rejected alternatives you can cite in audits.

/v1/classify
Final product HS code + GRI reasoning
2 credits
/v1/classify-component
Component code by end-use + CBP defensibility
2 credits
/v1/batch-classify
Classify entire BOM (hs_code fast-path = free)
2 credits
/v1/classification-interview
Pre-classification questions to improve accuracy
Free

Tariff Rates

US, Mexico, and Canada with MFN, USMCA, and policy tariffs

107,000+ rates from official sources, updated daily. Includes Section 301 (lists and forced labor) and Section 232 that most databases miss.

/v1/tariff-rates
US MFN + Section 301/232 + USMCA stacking
0.5 credits
/v1/mexico-tariff-rates
Mexico LIGIE rates (8,177 codes)
0.5 credits
/v1/canada-tariff-rates
Canada CBSA rates (8,240 codes)
0.5 credits
/v1/rate-history
Historical rate changes for an HS code
0.5 credits

Duty Calculation

Complete landed cost with all policy tariffs

Stacks MFN + Section 301 (lists and forced labor) + Section 232 correctly. Most calculators miss one or more layers.

/v1/duty-calculate
Total duty: MFN + 301 + 232 + MPF
0.5 credits
/v1/multi-market-compare
Compare landed cost across US, MX, CA
0.5 credits
/v1/ieepa-refund
Estimate IEEPA refund eligibility
0.5 credits

USMCA & FTA

Trade agreement qualification and rules

Product-specific rules from USMCA Annex 4-B. Calculates RVC% and tells you which criterion (A/B/C/D) applies.

/v1/usmca-qualify
Does my product qualify for USMCA?
1 credits
/v1/rules-of-origin
Product-specific origin rules
0.5 credits
/v1/automotive-rules
USMCA automotive LVC rules
0.5 credits
/v1/textile-rules
USMCA yarn-forward rules
0.5 credits

Policy & Risk

Trade policy monitoring and risk assessment

Monitors 33 government feeds daily. Alerts filtered to YOUR HS codes, not generic news.

/v1/country-risk
Geopolitical risk + forced-labor tariff tiers by country
0.5 credits
/v1/transshipment-risk
Will CBP flag this as transshipment?
0.5 credits
/v1/ad-cvd-orders
Active AD/CVD orders (825 active orders)
0.5 credits
/v1/energy-exposure
Energy vulnerability score + Hormuz/Russia risk
0.5 credits
Want to try these endpoints? Open the Playground with dev-test-key

CBP Compliance

CBP audit preparation and response tools

Built for escalating CBP enforcement. Penalty estimates based on actual 19 USC 1592 tiers.

/v1/penalty-calculator
Estimate 19 USC 1592 penalties
0.5 credits
/v1/entry-review-simulation
What does CBP see in my entry?
0.5 credits
/v1/binding-ruling-search
Ruling request templates and CROSS guidance
0.5 credits
/v1/ctpat-checklist
C-TPAT compliance checklist
Free
/v1/cbp-response-templates
CF 28/29 response templates (POST with entry: 0.5)
Free
/v1/party-screen
Restricted party screening (BIS Entity List)
0.5 credits
/v1/defensibility-report
AI-generated CBP audit documentation
2 credits

Mexico Strategic

Nearshoring analysis and Mexico programs

Mexico has 14 FTAs covering 50+ countries. Shows which programs (IMMEX, PROSEC) you actually qualify for.

/v1/mexico-savings
ROI of moving production to Mexico
0.5 credits
/v1/mexico-trade-routes
Mexico's 14 FTA agreements
0.5 credits
/v1/mexico-programs
IMMEX, PROSEC, Drawback eligibility
0.5 credits
/v1/nom-requirements
Mexican NOM compliance (23 standards)
0.5 credits

Full Analysis

Comprehensive trade intelligence reports

Everything in one call: classification, rates, qualification, policy risks, and actionable output.

/v1/analyze
Complete multi-market trade analysis
1 credits

Document Parsing

Extract trade data from invoices and certificates

Upload a PDF invoice or certificate — get structured HS codes, values, and origin data back.

/v1/parse-invoice
Extract HS codes + values from invoices
0.5 credits
/v1/parse-certificate
Parse existing certificates of origin
0.5 credits
/v1/document-templates
CBP form templates and field guides
Free

Utility & Free

Reference data, translation, and system endpoints

Free reference endpoints. Check data coverage (107K+ records), translate results, and preflight checks.

/v1/health
API health + data coverage stats
Free
/v1/countries
Country list with risk tiers
Free
/v1/usage
Your API usage stats
Free
/v1/reference-data
HS chapter and section reference
Free
/v1/translate
Translate results to any language
Free
/v1/tariff-preflight
Pre-check before tariff lookup (drives paid calls)
Free
/v1/industries
Industry taxonomy for classification routing
Free

Embeddable Widgets

Drop-in components for your app — iframe or JS

Same intelligence as the API, packaged for easy embedding. 21 embeddable widgets via tri_widget_* keys.

/widgets/component-lookup
HS classification widget (AI-powered)
2 credits
/widgets/tariff-lookup
Tariff rate calculator widget
0.5 credits
/widgets/entry-review
CBP entry review & risk scoring
0.5 credits
/widgets/mexico-roi
Nearshoring ROI calculator
0.5 credits
/widgets/usmca-check
USMCA qualification checker
0.5 credits
/widgets/ieepa-refund
IEEPA refund estimator
0.5 credits
/widgets/audit-export
Export audit documentation
Free
/widgets/classification-interview
Pre-classification interview questions
Free
/widgets/tariff-preflight
Preflight checks before tariff lookup
Free
/widgets/translate-results
Translate widget results to any language
Free
/widgets/options
Dropdown metadata (countries, industries)
Free

Customs broker or compliance platform? See how teams embed Triangle →

Ready to test?

Use dev-test-key in the Playground to test any endpoint free.

Open Playground

Need more detail? See the API quick reference or the full developer guide.