API and MCP
Use Corridor's trade data in your own tools
1. Get a key
Sign in, open your account and create a key under “API and AI access”. The key is shown once, so copy it then. An account can have 5 keys, and each key can make 60 requests a minute.
2. Call the API
Send the key in the Authorization header. Every endpoint is a GET that returns JSON.
curl "https://corridorterminal.com/api/v1/duty?product=p68-0&origin=IN&dest=US" \ -H "Authorization: Bearer YOUR_KEY"
| Endpoint | What it returns |
|---|---|
/api/v1/products?q=black pepper | Search the catalogue by name or HS code. Gives the product ids the other calls use. |
/api/v1/duty?product=p68-0&origin=IN&dest=US | Import duty, additional duty and import VAT or GST on a lane, with any trade deal applied. |
/api/v1/landed-cost?product=p68-0&origin=IN&dest=UK | Landed cost per unit for a typical shipment: price, freight, insurance, duty, port charges and delivery. |
/api/v1/markets?product=p68-0 | Export destinations ranked by India's real exports, margin, duty, freight and risk. |
Use a product id from the search, or pass hs= with a 6 or 8 digit HS code instead. Origins and destinations are the terminal's country codes, such as IN, US, EU, UK, AE, AU, OM and NZ. The EU is one destination.
3. Connect an AI assistant (MCP)
The MCP server gives an AI assistant the same four tools: search_products, get_duty, landed_cost, best_markets. It speaks the Model Context Protocol over HTTP. Add it as a remote server with your key as a bearer token:
{
"mcpServers": {
"corridor-terminal": {
"type": "http",
"url": "https://corridorterminal.com/api/mcp",
"headers": { "Authorization": "Bearer YOUR_KEY" }
}
}
}The exact place for this setting depends on the assistant you use. Then ask it something like “what duty does black pepper from India pay in the US, and where else should I sell it?”
What to know
- Every figure is an estimate for planning. Each reply carries that note. Confirm tariff lines and rates with your customs broker before you quote or ship.
- The API is read-only reference data. It can't see or change your saved quotes, records or shipments.
- Rates and rules are updated by hand; each duty reply says when they were last checked.
- Don't resell the data or copy it wholesale. See the terms of use.