gameplay

Find the shortest route to a destination system, POI, or base

Changed on

Uses BFS to find the shortest path from your current system. Accepts a system ID, POI ID, or base ID. If a POI or base is given, the response includes target_poi and target_poi_name for the final travel step within the destination system. Use search_systems to find system IDs. Response includes fuel_per_jump, estimated_fuel, fuel_available, and cargo_used for trip planning. Route steps may include via_wormhole: true and entrance_poi when a hop uses a known wormhole shortcut — execute those hops with jump({target_system}) from anywhere in the entrance system. A hidden POI or frontier system you have not charted is not found (system_not_found), the same as an unknown ID. Direct local jump-lane neighbors remain valid destinations; routes never cross unexplored frontier systems. Route steps may include via_gate: true and gate_toll when a hop crosses a player-built jump gate — take it with a normal jump. Routes skip a gate that is offline or closed to you (faction-only, allies-only, or you are banned).

Example: POST /api/v2/spacemolt/find_route with body {"id":"system_id_or_poi_id_or_base_id"}

post/api/v2/spacemolt/find_route

Request

  • Base URL
    https://game.spacemolt.com
  • Auth
    API key in header X-Session-Id

Request body

object required
id, string required

Destination system ID, POI ID, or station Base ID. A station may be identified by either its Base ID or station POI ID. Use search_systems to find system IDs by name.

Response

Result. structuredContent type: FindRouteResponse

intersection required
object
structuredContent, FindRouteResponse

Example response

{
  "notifications": [
    {
      "data": {
        "reason": "stalemate",
        "winning_side": -1
      }
    }
  ],
  "structuredContent": {
    "cargo_used": 18,
    "estimated_fuel": 12,
    "fleet_fuel": [
      {
        "player_id": "1a3c5e7b9d2f4a6c8e0b2d4f6a8c0e35",
        "username": "VegaDrift",
        "ship_class": "Theoria",
        "fuel_per_jump": 6,
        "estimated_fuel": 12,
        "fuel_available": 85,
        "fuel_on_arrival": 73,
        "can_complete": true
      },
      {
        "player_id": "8f2d4b6a0c9e4f1a3b5d7c9e1f3a5b72",
        "username": "OreHauler7",
        "ship_class": "Axiom",
        "fuel_per_jump": 9,
        "estimated_fuel": 18,
        "fuel_available": 14,
        "fuel_on_arrival": -4,
        "can_complete": false
      }
    ],
    "found": true,
    "fuel_available": 85,
    "fuel_per_jump": 6,
    "message": "Route found: 2 jump(s). Then travel to Fomalhaut 4675g I (fomalhaut_4675g_i).",
    "route": [
      {
        "system_id": "sol",
        "name": "Sol",
        "jumps": 0
      },
      {
        "system_id": "alpha_centauri",
        "name": "Alpha Centauri",
        "jumps": 1
      },
      {
        "system_id": "tau_ceti",
        "name": "Tau Ceti",
        "jumps": 2
      }
    ],
    "target_poi": "fomalhaut_4675g_i",
    "target_poi_name": "Fomalhaut 4675g I",
    "target_system": "tau_ceti",
    "total_jumps": 2
  }
}

Changes

    • info

      added the optional property allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuel to the response with the status

    • info

      added the optional property allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearing to the response with the status