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
| Field | Type | Required | What it is |
|---|---|---|---|
query | string | Yes | Port name or UN/LOCODE (e.g. SEGOT, NLRTM) |
Output fields
How reliably each field appears in a successful answer.
| Field | Type | Appears |
|---|---|---|
matches | array | Always (present in every successful answer) |
total_matches | number | Always (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
}' {
"tool": "strale_execute",
"arguments": {
"slug": "port-lookup",
"inputs": {
"query": "SELECT * FROM users WHERE active = true LIMIT 10"
},
"max_price_cents": 5
}
} import { Strale } from "straleio";
const strale = new Strale({ apiKey: process.env.STRALE_API_KEY! });
const result = await strale.do({
capability_slug: "port-lookup",
inputs: {
"query": "SELECT * FROM users WHERE active = true LIMIT 10"
},
max_price_cents: 5,
}); import os
from straleio import Strale, DoRequest
strale = Strale(api_key=os.environ["STRALE_API_KEY"])
result = strale.do(DoRequest(
capability_slug="port-lookup",
inputs={
"query": "SELECT * FROM users WHERE active = true LIMIT 10",
},
max_price_cents=5,
)) # No account. The first request answers 402 with the price in USDC;
# an x402 client pays it from your wallet and repeats the request.
curl -i 'https://api.strale.io/x402/v2/port-lookup?query=SELECT+*+FROM+users+WHERE+active+%3D+true+LIMIT+10' 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
Related tools
- Address Geocoding €0.02
- Barcode Lookup €0.05
- Container Tracking €0.05
- Country Lookup €0.02
- Country Tax Rates €0.02
- Country Trade Data €0.20