openapi: 3.0.2 info: title: MarineTraffic Routing Information API version: 1.0.0 description: Maritime route generation and distance calculation between ports / coordinates, accounting for sea lanes and traffic patterns. contact: name: MarineTraffic url: https://www.marinetraffic.com/ servers: - url: https://services.marinetraffic.com/api tags: - name: Routing Information paths: /exportroutes/{api_key}: get: tags: - Routing Information summary: Vessel Route to Port description: "A newer version of this endpoint is available here: https://developers.kpler.com/spec/c78f79cf-4169-4a59-987d-e5970ea170f9

\n\ Receive a list of available routes and distances from a vessel to a port.

Notes " operationId: exportroutes parameters: - $ref: '#/components/parameters/api_key' - $ref: '#/components/parameters/mmsi_VI03' - $ref: '#/components/parameters/imo_VI03' - $ref: '#/components/parameters/shipid_VI03' - $ref: '#/components/parameters/port_target_id_VI03' - $ref: '#/components/parameters/includealternatives_VI03' - $ref: '#/components/parameters/includeinland_VI03' - $ref: '#/components/parameters/msgtype_VI03' - $ref: '#/components/parameters/protocol' responses: '200': description: Successful Response content: application/json: schema: oneOf: - $ref: '#/components/schemas/200_vi03_default' - $ref: '#/components/schemas/200_vi03_extended' application/xml: schema: oneOf: - $ref: '#/components/schemas/200_vi03_default' - $ref: '#/components/schemas/200_vi03_extended' examples: Default: summary: Simple value: "\n\n \n" Extended: summary: Extended value: "\n\n \n" '400': description: Bad Request content: application/json: schema: oneOf: - $ref: '#/components/schemas/400_vi03_invalid_ship_identifier' - $ref: '#/components/schemas/400_vi03_missing_or_invalid_port_identifier' application/xml: schema: oneOf: - $ref: '#/components/schemas/400_vi03_invalid_ship_identifier' - $ref: '#/components/schemas/400_vi03_missing_or_invalid_port_identifier' examples: Invalid ship identifier: summary: Invalid ship identifier value: "\n\n \n \ \ \n \n" Missing or invalid port identifier: summary: Missing or invalid port identifier value: "\n\n \n \ \ \n \n" '429': description: Too Many Requests content: application/json: schema: $ref: '#/components/schemas/429_too_many_requests' application/xml: schema: $ref: '#/components/schemas/429_too_many_requests' examples: Area out of bound: summary: Too Many Requests value: "\n\n \n \ \ \n \n" '/exportroutes/{api_key} ': get: tags: - Routing Information summary: Distance to Port description: "A newer version of this endpoint is available here: https://developers.kpler.com/spec/c78f79cf-4169-4a59-987d-e5970ea170f9

\n\ Receive a list of available routes and distances from point or port to a specific port.

Notes " operationId: exportroutes_ parameters: - $ref: '#/components/parameters/api_key' - $ref: '#/components/parameters/port_start_id_VI03' - $ref: '#/components/parameters/LAT_VI03' - $ref: '#/components/parameters/LON_VI03' - $ref: '#/components/parameters/port_target_id_VI03' - $ref: '#/components/parameters/includealternatives_VI03' - $ref: '#/components/parameters/includeinland_VI03' - $ref: '#/components/parameters/msgtype_VI03' - $ref: '#/components/parameters/protocol' responses: '200': description: Successful Response content: application/json: schema: oneOf: - $ref: '#/components/schemas/200_vi03_default' - $ref: '#/components/schemas/200_vi03_extended' application/xml: schema: oneOf: - $ref: '#/components/schemas/200_vi03_default' - $ref: '#/components/schemas/200_vi03_extended' examples: Default: summary: Simple value: "\n\n \n" Extended: summary: Extended value: "\n\n \n" '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/400_vi03_missing_or_invalid_port_identifier' application/xml: schema: $ref: '#/components/schemas/400_vi03_missing_or_invalid_port_identifier' examples: Missing or invalid port identifier: summary: Missing or invalid port identifier value: "\n\n \n \ \ \n \n" '429': description: Too Many Requests content: application/json: schema: $ref: '#/components/schemas/429_too_many_requests' application/xml: schema: $ref: '#/components/schemas/429_too_many_requests' examples: Area out of bound: summary: Too Many Requests value: "\n\n \n \ \ \n \n" components: parameters: api_key: name: api_key in: path description: 'API key: 40-character hexadecimal number' required: true schema: type: string cursor: name: cursor in: query description: The pagination cursor provided in the metadata section of the previous response required: false schema: type: string limit: name: limit in: query description: The limit of vessels per page (min=1000, max=5000) required: false schema: type: integer default: 2000 protocol_mandatory: name: protocol in: query description: "Response type. Use one of the following: