Developer API
Sea Routes API
Plan sea routes, estimate voyage time, and calculate port distances between ports or coordinates with one REST API call. Built for shipping, logistics, and freight teams that need dependable maritime routing data for maps, quotes, and planning tools.
curl https://api.searoutesnav.com/calculate-route \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"origin": { "port_id": 2451 },
"destination": { "coordinates": [103.85, 1.29] },
"speed_kmh": 26
}'Maritime routing toolkit
Everything you need for maritime routing
Add port distance calculation, voyage time estimates, canal-aware routing, and clean maritime data to your logistics platform without maintaining your own sea route network.
Port-to-Port Distance
Accurate sea distances between any two ports or coordinates, returned in kilometres.
Voyage Time
Estimated voyage duration in hours, based on the vessel speed you supply.
Canal Routing
Toggle Suez, Panama, Gibraltar and Kiel routing options to match real-world voyages.
Vessel Speed Control
Pass an exact speed in km/h and the API recalculates the voyage duration on the fly.
Clean JSON Responses
Predictable, well-documented JSON payloads that drop straight into your application.
Global Port Coverage
Tens of thousands of ports worldwide, addressable by port id or coordinates, with name autocomplete.
API example
From route request to usable maritime data
Send an origin and destination by port id or coordinates, add vessel speed when you need voyage duration, and receive structured JSON for distance, route geometry, and waypoints. No SDK required.
Request
curl https://api.searoutesnav.com/calculate-route \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"origin": { "port_id": 2451 },
"destination": { "coordinates": [103.85, 1.29] },
"speed_kmh": 26
}'Response
{
"success": true,
"distance_km": 15431.2,
"duration_hours": 593.5,
"route_coordinates": [[4.14, 51.95], ...],
"waypoints": [[4.14, 51.95], ...],
"message": "Route calculated: Rotterdam → Singapore"
}Start building with the Sea Routes API
Create a free account to get your API key, then explore pricing as your usage grows.