Quick Start
Get up and running in 5 minutes.
1
Get Your API Key
Sign up for a partner account to get your test API key (tri_test_xxx). Production keys (tri_live_xxx) are issued after integration review.
Get API Key →2
Make Your First Request
Test the tariff rates endpoint:
curl -X GET "https://triangle-trade-intelligence.vercel.app/api/v1/tariff-rates?hs_code=85423100" \ -H "Authorization: Bearer tri_test_YOUR_KEY"
Response:
{
"success": true,
"data": {
"hs_code": "85423100",
"description": "Electronic integrated circuits: Processors...",
"rates": {
"mfn_rate": 0.0,
"usmca_rate": 0.0,
"section_301": 0.25,
"section_232": 0.0,
"ieepa_fentanyl": 0.20
}
},
"meta": {
"request_id": "req_abc123",
"credits_used": 0.1,
"data_freshness": "2026-01-22T06:00:00.000Z"
}
}3
Embed a Widget (Optional)
Add the Tariff Calculator widget to any page:
<div data-triangle-tariff data-api-key="tri_test_YOUR_KEY" data-destination="US" data-theme="dark" ></div> <script src="https://triangle-trade-intelligence.vercel.app/widgets/tariff-calculator.js"></script>
4
Go Live
When you're ready, request production keys and switch from tri_test_* to tri_live_*. Your integration code stays the same.