UN/LOCODE location lookup by 5-character code: name
logistics_seaport_unlocodeUN/LOCODE location lookup by 5-character code (country + place, e.g. FIHEL): name, subdivision, status, port/rail/road/airport functions, IATA code and coordinates. Data is the UN/LOCODE list as mirrored on DataHub (ODC-PDDL), not the UNECE site itself. Price: $0.002 in USDC per successful call, paid with x402 (Base, Solana or Arc); failed calls are not charged.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"code": "<code>"
},
"name": "logistics_seaport_unlocode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | Yes | UN/LOCODE, 5 letters: 2-letter country + 3-character location, e.g. FIHEL, SGSIN |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | ||
| iata | No | ||
| name | No | ||
| source | No | ||
| status | No | ||
| country | No | ||
| checkedAt | No | ||
| functions | No | ||
| coordinates | No | ||
| subdivision | No |