Port Lookup

Look up a port by name or UN/LOCODE: coordinates, country and time zone, for 175+ major ports.

Pay by wallet (x402) port-lookup

Example

Input
{
  "query": "SELECT * FROM users WHERE active = true LIMIT 10"
}
Answer
{
  "query": "SELECT * FROM users WHERE active = true LIMIT 10",
  "matches": [],
  "total_matches": 0
}

Inputs

FieldTypeRequiredWhat it is
querystringYesPort name or UN/LOCODE (e.g. SEGOT, NLRTM)

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
matchesarrayAlways (present in every successful answer)
total_matchesnumberAlways (present in every successful answer)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "port-lookup",
    "inputs": {
      "query": "SELECT * FROM users WHERE active = true LIMIT 10"
    },
    "max_price_cents": 5
  }'

Limitations

  • Small inland ports can have limited data

    AI-based port information — covers major seaports and airports; small inland ports may have limited data

    What to do instead: For UN/LOCODE validation, cross-reference against the UNECE code list at unece.org/cefact/locode