Rank importers
Rank US importers by physical containers for an HS4 heading, port of discharge, or origin country over full calendar months.
Authorizations
Use a Terminal49 API key in the Authorization header with the Token prefix.
Authorization: Token YOUR_API_KEY
Body
4-digit HS heading: rank importers of containers carrying it. Any other value returns 400. Use commodities/search to find one.
^\d{4}$"0306"
Substring of a US port name.
200"savannah"
Substring of an origin country.
200"vietnam"
Full calendar months ending last month.
1 <= x <= 60Maximum importers to return.
1 <= x <= 100Response
OK
First month of the period (inclusive).
"2025-10"
Last month of the period (inclusive).
"2026-09"
The measure the ranking uses.
"containers"
The filters that were applied, keyed by the names the service uses: a port_of_discharge request comes back as pod. Only filters that were given appear.
Counting caveats that apply to this response, for example that volume is physical containers or that the window includes a partial month. Surface these to end users.
Importers in descending order. The list does not distinguish forwarders from cargo owners and does not give each company's total volume; use companies/search for those.