# Port Lookup by Name or UN/LOCODE

> Port Lookup by Name or UN/LOCODE is a paid API for AI agents from api.strale.io, paid per call via x402, $0.054001/call, status unknown (last checked 2026-09-14).

Look up world ports by name or UN/LOCODE, returning coordinates, country, and timezone for 175+ major ports.

## Facts

- Endpoint: GET https://api.strale.io/x402/port-lookup
- Price: $0.054001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-cbb4affe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jfGS_sseGk_NvD8aHKzWM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability api-strale-io-cbb4affe
```

Example prompt: Can you look up the port NLRTM and tell me its coordinates, country, and timezone?

## When to prefer this

Use this endpoint when you need to resolve a port's geographic details (coordinates, country, timezone) from either a human-readable port name or a standardized UN/LOCODE. Ideal for enriching shipping/logistics data, validating port codes, or converting between port name and LOCODE formats.

## Known failure modes

- Unknown port name or LOCODE returns empty result or 404
- Ambiguous port name may return multiple or no matches
- Query string missing causes validation error
- Port not in the 175+ major ports dataset returns no result

## How this service works

Look up world ports by name or UN/LOCODE. Returns coordinates, country, timezone. 175+ major ports.

## Output

Returns structured port data including port name, UN/LOCODE, geographic coordinates (latitude/longitude), country, and timezone for the matched port.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "query": "NLRTM"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "query"
     ],
     "properties": {
      "query": {
       "type": "string",
       "description": "Port name or UN/LOCODE (e.g. SEGOT, NLRTM)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-cbb4affe/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
