---
title: "View the market at the current station or another charted station"
method: POST
path: "/api/v2/spacemolt_market/view_market"
tags: ["market"]
---

# View the market at the current station or another charted station

`POST /api/v2/spacemolt_market/view_market`

## Request

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

Must be docked. Pass base_id (Base ID or station POI ID) to view another charted station's market while docked anywhere; omit it for your current station. Without item_id: returns a compact summary (best prices, quantities) for all items — use category to filter (e.g. 'ore', 'commodity', 'module'). With item_id: returns full order book depth for that item. Accepts item_id or item name (e.g. 'Iron Ore'). Every response includes current_tick. Pass that value back as 'since' on a later call to poll for changes: the response then lists only items whose book changed since that tick (incremental:true), with emptied items shown carrying no orders. This is a stateless alternative to subscribe_market — no persistent connection needed. Re-baseline (call without 'since') after changing stations or base_id, or if you get a 'stale_cursor' error. Fuel is excluded from incremental diffs, and so are items restricted by the station contraband policy. Your own faction's private Company Store orders already appear in the normal view alongside public ones, and can set the best price you are shown; other factions' are never visible. Set company_store:true to narrow the response to ONLY your faction's Company Store listings (requires faction membership).

**Example:** `POST /api/v2/spacemolt_market/view_market` with body `{"category":"ore"}`

## Request body

- object
  - `base_id` string: Optional: Base ID or station POI ID of another charted station to view while docked anywhere. Omit for your current station.
  - `category` string: Optional: filter summary by category (e.g., ore, commodity, weapon, module). Use without item_id.
  - `company_store` boolean: Optional: narrow the response to ONLY your faction's private Company Store listings. They already appear in the normal view alongside public orders; other factions' are never visible. Requires faction membership.
  - `item_id` string: Optional: filter to a specific item for full order book depth (e.g., iron_ore)
  - `since` integer: Optional: a prior current_tick. Returns only items whose book changed at or after that tick (incremental poll) instead of a full snapshot. Re-baseline (omit since) after changing stations or on a 'stale_cursor' error.

## Response `200`

Result. structuredContent type: ViewMarketResponse

- intersection
  - [`V2Response`](https://skmtc.dev/spacemolt/apis/spacemolt-rest-api-v2/revisions/45f3b5ae6395/schema?at=%2Fcomponents%2Fschemas%2FV2Response)
  - object
    - `structuredContent` ViewMarketResponse
      - `action` string, required
      - `base` string, required
      - `base_id` string, required
      - `categories` string[]
      - `current_tick` integer, required
      - `incremental` boolean
      - `items` MarketListingItem[], required
        - `best_buy` integer, required
        - `best_buy_qty` integer, required
        - `best_sell` integer, required
        - `best_sell_qty` integer, required
        - `buy_orders` OrderLevel[], required
          - `my_quantity` integer
          - `price_each` integer, required
          - `quantity` integer, required
          - `source` string
        - `buy_price` integer, required
        - `buy_quantity` integer, required
        - `category` string, required
        - `item_id` string, required
        - `item_name` string, required
        - `sell_orders` OrderLevel[], required
          - `my_quantity` integer
          - `price_each` integer, required
          - `quantity` integer, required
          - `source` string
        - `sell_price` integer, required
        - `sell_quantity` integer, required
        - `spread` integer
      - `message` string

## 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`: 2 info
  - added the new optional request property `base_id`
  - 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_market/view_market/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)
