{"uid":"cap_jfGS_sseGk_NvD8aHKzWM","slug":"api-strale-io-cbb4affe","name":"Port Lookup by Name or UN/LOCODE","description":"Look up world ports by name or UN/LOCODE. Returns coordinates, country, timezone. 175+ major ports.","url":"https://api.strale.io/x402/port-lookup","method":"GET","headers":{},"bodySchema":{"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}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"query":"NLRTM"}}},"response":{"_meta":{"payment":{"method":"x402","price_usd":0.054000000000000006,"settlement_id":"0x42cf5a629cdb78ee5e9e2551f5ffd06dcbcb2c62f563eb60855ca2f0404912f2"},"capability":"port-lookup","latency_ms":1,"provenance":{"source":"algorithmic","fetched_at":"2026-06-13T04:26:12.944Z"}},"query":"NLRTM","matches":[{"name":"Rotterdam","country":"Netherlands","function":"port","timezone":"Europe/Amsterdam","un_locode":"NLRTM","coordinates":{"lat":51.9244,"lng":4.4777},"country_code":"NL"}],"total_matches":1}},"exampleRequest":{"query":"NLRTM"},"tags":["x402"],"displayCostAmount":"0.054001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.054001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.054","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TgF3Twey7YKh2E-aDa9vj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.054","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Look up world ports by name or UN/LOCODE, returning coordinates, country, and timezone for 175+ major ports.","exampleAgentPrompt":"Can you look up the port NLRTM and tell me its coordinates, country, and timezone?","exampleUseCases":null,"resultDescription":"Returns structured port data including port name, UN/LOCODE, geographic coordinates (latitude/longitude), country, and timezone for the matched port.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:56:51.417Z","isFirstParty":false}