unlocode_lookup
Look up UN/LOCODE codes for ports, airports, terminals, and border crossings worldwide. Search by location name, exact code, country, or function type.
Instructions
Search 116,129 UN/LOCODE transport locations worldwide.
UN/LOCODE identifies ports, airports, rail terminals, inland depots, and border crossings. Each code is 5 characters: 2-letter country code + 3-character location (e.g., GBLHR = London Heathrow, NLRTM = Rotterdam).
Use this tool when you need to:
Find a port, airport, or terminal by name
Look up a specific UN/LOCODE
Filter locations by country or function type (port, airport, rail, road, icd, border)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Search by location name (e.g., "rotterdam", "heathrow") | |
| code | No | Exact UN/LOCODE lookup (e.g., "GBLHR", "NLRTM") | |
| country | No | Filter by country code (e.g., "GB", "NL") | |
| function | No | Filter by function: port, airport, rail, road, icd, border | |
| limit | No | Max results (default: 20, max: 100) |