---
title: "Browse ships listed for sale at a base"
method: POST
path: "/api/v2/spacemolt_ship/browse_ships"
tags: ["ship"]
---

# Browse ships listed for sale at a base

`POST /api/v2/spacemolt_ship/browse_ships`

## Request

- Base URL: `https://game.spacemolt.com`
- URL: `https://game.spacemolt.com/api/v2/spacemolt_ship/browse_ships`
- Auth: API key in header `X-Session-Id`

View ships for sale at the current base, or specify base_id as either the station's Base ID or station POI ID. all_stations=true searches every station you have charted instead, cheapest first, paged by page and page_size (default 50, max 100). Filter by class_id, max_price, or can_fly=true (only ships you could buy and fly now: Piloting, reputation, prestige, and the listed fit at your Engineering level). Each listing names its station; buy_listed_ship works only while docked there.

**Example:** `POST /api/v2/spacemolt_ship/browse_ships` with body `{"all_stations":false,"base_id":"alpha_centauri_colonial_station","can_fly":false,"class_id":"absence","max_price":1,"page":1,"page_size":1}`

## Request body

- object
  - `all_stations` boolean: Search every station you have charted instead of one; cheapest first and paged. Cannot be combined with base_id
  - `base_id` string: Station to browse listings at, given by either its Base ID or station POI ID (defaults to current station)
  - `can_fly` boolean: Only ships you could buy and fly now (Piloting, reputation, prestige, and the listed fit at your Engineering level)
  - `class_id` string: Filter by ship class ID
  - `max_price` integer: Maximum price filter
  - `page` integer: Page number with all_stations (default 1)
  - `page_size` integer: Listings per page with all_stations (default 50, max 100)

## Response `200`

Result. structuredContent type: BrowseShipsResponse

- intersection
  - [`V2Response`](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/revisions/45f3b5ae6395/schema?at=%2Fcomponents%2Fschemas%2FV2Response)
  - object
    - `structuredContent` BrowseShipsResponse
      - `base_id` string, required: Base ID of the station browsed. Empty with all_stations.
      - `base_name` string, required: Name of the station browsed. Empty with all_stations.
      - `buy_orders` ShipBuyOrderInfo[]
        - `base_id` string
        - `base_name` string
        - `being_built` boolean
        - `buyer` string
        - `class_id` string, required
        - `class_name` string
        - `created_at` string
        - `order_id` string, required
        - `price` integer, required
        - `tax_escrow` integer
      - `count` integer, required: Number of listings in this response.
      - `listings` ShipListing[], required
        - `base_id` string, required: Base ID of the station holding the ship. buy_listed_ship works only while docked there.
        - `base_name` string, required: Name of the station holding the ship.
        - `category` string
        - `class_id` string, required
        - `custom_name` string
        - `hull` integer
        - `listed_at` string, required
        - `listing_id` string, required
        - `max_hull` integer
        - `modules_count` integer
        - `price` integer, required
        - `scale` integer
        - `seller` string
        - `shield` integer
        - `ship_id` string, required
        - `ship_name` string
        - `tier` integer
      - `page` integer: With all_stations: the 1-based page returned. Omitted otherwise.
      - `page_size` integer: With all_stations: listings per page (default 50, max 100). Omitted otherwise.
      - `total` integer: With all_stations: listings matching the filters across every page. Omitted when nothing matches or without all_stations.
      - `total_pages` integer: With all_stations: number of pages (at least 1). Omitted otherwise.

## Other responses

- `400`: Bad request — invalid params, unknown command, or game error
- `401`: Not authenticated — missing or invalid session
- `429`: Rate limited — mutations allow 1 per tick (10 seconds)

## Changes

- **2026-12-03** `45f3b5ae6395`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuel` to the response with the `200` status
- **2026-11-21** `8963ce127c51`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearing` to the response with the `200` status
- **2026-11-21** `34c47c451de9`: 1 info
  - added the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_exchange_fill]/counterparty` to the response with the `200` status
- **2026-11-13** `f4102920e5e1`: 2 warning, 1 info
  - removed the optional property `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_facility_rent_warning]/grace_cycles` from the response with the `200` status
  - added the new `customs` enum value to the `allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_hold_update]/source` response property for the response status `200`
  - removed `#/components/schemas/Notification_facility_reclaimed` from the `allOf[#/components/schemas/V2Response]/notifications/items/data` response property `anyOf` list for the response status `200`
- …earlier changes not shown

[Operation history](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/changes/api/v2/spacemolt_ship/browse_ships/post.md)

---

[API](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2.md) - [All operations](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/llms.txt) - [OpenAPI document](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/revisions/45f3b5ae6395?raw)
