Reference
UN/LOCODE transport location lookup
Search 116,000+ UN/LOCODE entries by name, code, country, or function type.
get/api/unlocode
Request
- Base URL: https://www.freightutils.com
- URL: https://www.freightutils.com/api/unlocode
- Auth: none declared
Query parameters
qstring
Name or code search; the spaced notation "GB LHR" reads as GBLHR.
codestring
Exact 5-character UN/LOCODE, e.g. GBLHR; "GB LHR" is accepted.
countrystring
ISO 2-letter country
function'port' | 'airport' | 'rail' | 'road' | 'icd' | 'border'
Function type
limitinteger
Max results — a whole number (default 20); values outside 1–100 are clamped. Text that is not a whole number is refused with 400.
Response
Search results. A name search with no match carries did_you_mean: up to 3 real places whose name is one or two letters from the query ({code, name, country}) — suggestions, never applied.
Changes
No recorded changes to this operation across all 1 revision of this API.