Container Number & UN/LOCODE Checker Online
Check ISO 6346 container numbers and size-type codes, air waybill (AWB) check digits and airline prefixes, and search UN/LOCODE ports and airports.
Result
Press “Run” to see the result.
One endpoint for the codes of freight paperwork. container checks an ISO 6346 container number (CSQU3054383): owner code, equipment category (U freight container, J detachable equipment, Z trailer / chassis), serial number and the check digit, or computes the check digit when you give 10 characters. size_type decodes an ISO 6346 size and type code (22G1, 45G1, 22R1): length, height and width, type group and detailed type.
awb checks an air waybill number (738-1234 5675): 3-digit airline prefix, serial and the mod-7 check digit, with the carrier name for about 50 major airlines (the full IATA directory is a paid product, so unknown prefixes are reported as such). locode returns a UN/LOCODE entry (VNSGN, VNHPH, VNCLI): name with and without diacritics, country, subdivision, functions (port, rail, road, airport, inland depot, border crossing…), status, IATA code and coordinates. q searches names without accents; without country it searches the ports, airports, inland depots and border crossings of every country, with country every location of that country. code detects the kind of code by itself.
UN/LOCODE data: the official UNECE / UN/CEFACT release (CC BY 4.0, attribution in each response), checked weekly for a new release. Container owner codes are not looked up (the BIC register is paid) and no tracking status is given.
Use this in your code
curl "https://apibox.io.vn/v1/freight-codes?locode=VNHPH" \
-H "Authorization: Bearer YOUR_API_KEY"const res = await fetch('https://apibox.io.vn/v1/freight-codes?locode=VNHPH', {
method: 'GET',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
},
});
const data = await res.json();
console.log(data);import requests
res = requests.get(
"https://apibox.io.vn/v1/freight-codes?locode=VNHPH",
headers={"Authorization": "Bearer YOUR_API_KEY"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/freight-codes?locode=VNHPH');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY'],
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
How is the container check digit computed?
ISO 6346: letters get values 10-38 (skipping multiples of 11), each of the first 10 characters is multiplied by 2^position, the sum mod 11 (10 counts as 0) is the check digit.
Which UN/LOCODE release is used?
The latest official release published by UNECE (data_version in the response, e.g. 2025-1); the data is checked weekly for a new release.
Can it track a container or flight?
No. It validates and decodes codes only; tracking needs the carrier or terminal systems.