# A host's listing price history, newest first

> GET /v1/hosts/{host_id}/listing-history. Every change of the host's listing: when it was listed or unlisted, or its price changed, with the old and new price and who made the change (actor: a…

Source: https://legion.ambient.xyz/docs/api/hosts/list-host-listing-history

`GET https://api.legion.ambient.xyz/v1/hosts/{host_id}/listing-history`

Authenticate with an API key: `Authorization: Bearer $LEGION_API_KEY`.

Every change of the host's listing: when it was listed or unlisted, or its
price changed, with the old and new price and who made the change (`actor`: a `user`, an
`api_key`, a platform `admin`, or `legion` for Legion's own pricing; the actor's ID is given for a
person and a key only, and is the ID of this organization's own member or key). Removing a listed
host records its unlisting. A write that changes none of the flag, the price and the interruptible price (a
country-only `updateListing`, a repeated one) records nothing. Needs `hosts.manage`; another organization's host is
404. Cursor-paginated, newest first.

Since a row also carries the auto-pricing settings after the change (`pricing_mode`,
`min_price_per_gpu_hour`, `offer_interruptible`), and a change of those alone records a row. A price Legion
set (the switch to `auto`, and every hourly repricing, whose `actor` is `legion`) carries `recommendation`:
the recommendation it followed, with its confidence and basis.

## Path parameters

- `host_id`, string (uuid), required

## Query parameters

- `cursor`, string: Opaque cursor from a previous page's `next_cursor`.
- `limit`, integer

## Responses

### 200

A page of listing changes.

- `items`, array of ListingChange, required
  - `old_listed`, boolean, required
  - `listed`, boolean, required
  - `old_price_per_gpu_hour`, Money, required
    - `amount_minor`, integer (int64), required: Amount in minor units (cents for USD).
    - `currency`, MoneyCurrency, required: ISO 4217 currency code. Only USD is supported.
  - `price_per_gpu_hour`, Money, required
    - `amount_minor`, integer (int64), required: Amount in minor units (cents for USD).
    - `currency`, MoneyCurrency, required: ISO 4217 currency code. Only USD is supported.
  - `interruptible_price_per_gpu_hour`, Money: The interruptible price after the change. Absent when the host does not offer the interruptible tier.
  - `actor`, ListingChangeActor, required
    - `kind`, string, required
    - `id`, string (uuid): The person, the API key, or (`oauth_grant`) the OAuth grant, an app a person connected to the MCP server. Absent for `legion` and `admin`.
  - `created_at`, string (date-time), required
  - `pricing_mode`, PricingMode: The pricing mode after the change; `manual` on rows from before auto pricing.
  - `min_price_per_gpu_hour`, Money: The auto-pricing floor after the change. Absent when there is none.
  - `offer_interruptible`, boolean: Whether auto pricing offers the interruptible tier, after the change; false on rows from before auto pricing.
  - `recommendation`, ListingChangeRecommendation: The price recommendation a price Legion set followed: the recommended prices before the floor, the step limit and the on-demand cap were applied, and what the recommendation rested on.
    - `price_per_gpu_hour`, Money, required
      - `amount_minor`, integer (int64), required: Amount in minor units (cents for USD).
      - `currency`, MoneyCurrency, required: ISO 4217 currency code. Only USD is supported.
    - `interruptible_price_per_gpu_hour`, Money, required
      - `amount_minor`, integer (int64), required: Amount in minor units (cents for USD).
      - `currency`, MoneyCurrency, required: ISO 4217 currency code. Only USD is supported.
    - `confidence`, PriceConfidence, required
    - `basis`, PriceBasis, required
      - `gpu_class`, GpuClass, required: Legion's canonical class of a GPU model: one of `b300`, `b200`, `gh200`, `h200`, `h100-sxm`, `h100-pcie`, `h100-nvl`, `a100-80gb`, `a100-40gb`, `l40s`, `l40`, `l4`, `a10`, `a40`, `a6000`, `rtx-6000-ada`, `rtx-pro-6000`, `rtx-5090`, `rtx-4090`, `rtx-3090`, `v100`, `mi300x`, or `other-<slug of the model>` for a model that matches none of them. Derived from the model name and the GPU memory, so hosts of one class are comparable for pricing.
      - `legion_listings`, integer, required: Approved, listed Legion hosts of the class whose prices were counted.
      - `legion_gpu_hours_30d`, number (double), required: GPU-hours of the class rented on Legion in the last 30 days.
      - `utilization_7d`, number (double): The class's average share of listed GPUs that were rented over 7 days. Absent without snapshots.
      - `sources`, array of PriceSource, required: The external sources the anchor used, with when each was observed.
      - `kind`, PriceBasisKind: `exact`: the host's own GPU class had enough data (marketplace prices, Legion rentals, listings). `similar`: it had too little, so the price follows similar GPU classes of the same vendor (same architecture first, then nearest by performance and memory), scaled to this GPU, with a wider range and `low` confidence. Absent in rows stored before; read as `exact`.
      - `similar_models`, array of PriceSimilarModel: With `kind` `similar`: the similar GPU classes the price was derived from, nearest first. Absent with `kind` `exact`.
      - `spec`, array of PriceSpecAxis: The machine spec factor: what the host provisions per GPU against the median of its GPU class, one entry per resource (`cpu`, `memory`, `disk`, `pcie`, `nvlink`, in that order), always all five for a host's recommendation. Absent in recommendations without a host and in rows stored before.
      - `spec_adjustment`, number (double): The sum of the axes' `adjustment`, e.g. -0.0612 for 6.12% less: the share by which the machine spec moves the price. Between -0.2 and 0.2. Present with `spec`.
      - `normalized_sources`, integer: How many of the external sources stated the machine spec of their offers (`ExternalPriceObservation.bundle`) and had their prices adjusted to the class's median spec before the anchor. Absent in rows stored before.
- `next_cursor`, string

Example:

```json
{
  "items": [
    {
      "old_listed": false,
      "listed": false,
      "old_price_per_gpu_hour": {
        "amount_minor": 250,
        "currency": "USD"
      },
      "price_per_gpu_hour": {
        "amount_minor": 250,
        "currency": "USD"
      },
      "interruptible_price_per_gpu_hour": {
        "amount_minor": 250,
        "currency": "USD"
      },
      "actor": {
        "kind": "user",
        "id": "0192f1a2-7c3d-7e4f-8a9b-0c1d2e3f4a5b"
      },
      "created_at": "2026-10-15T12:00:00Z",
      "pricing_mode": "manual",
      "min_price_per_gpu_hour": {
        "amount_minor": 250,
        "currency": "USD"
      },
      "offer_interruptible": false,
      "recommendation": {
        "price_per_gpu_hour": {
          "amount_minor": 250,
          "currency": "USD"
        },
        "interruptible_price_per_gpu_hour": {
          "amount_minor": 250,
          "currency": "USD"
        },
        "confidence": "low",
        "basis": {
          "gpu_class": "h100-sxm",
          "legion_listings": 0,
          "legion_gpu_hours_30d": 0,
          "utilization_7d": 0,
          "sources": [
            {
              "source": "vast-ai",
              "as_of": "2026-10-15T12:00:00Z"
            }
          ],
          "kind": "exact",
          "similar_models": [
            {
              "weight": 0,
              "price_scale": 0
            }
          ],
          "spec": [
            {
              "resource": "cpu",
              "unit": "string",
              "host_value": 0,
              "class_median": 0,
              "adjustment": 0,
              "below_minimum": false,
              "known": false
            }
          ],
          "spec_adjustment": -0.2,
          "normalized_sources": 0
        }
      }
    }
  ],
  "next_cursor": "string"
}
```

### 400

The request is malformed or fails validation. An image reference that
is not a container image reference answers `invalid_image_reference`.

### 401

Missing, unknown, expired or revoked credentials.

### 403

The caller lacks the permission this operation requires (`forbidden`),
or signed in without having joined an organization yet
(`no_organization`; `getOnboarding` and the invitation and
organization operations under it work), or could not sign in
(`email_unverified`, `account_conflict`, and `domain_not_allowed`). `not_invited` is no longer returned to
session tokens.

`access_not_approved`: a signed-in person who is not approved
for the beta yet. Every operation that takes a credential answers it to
them, except `getMe` and `joinMyWaitlist`; the problem carries
`access` (`waitlisted` or `not_requested`, and the email). Approved
means a member of an organization, holding a pending invitation, or Legion; an API key always belongs to a member.

`oauth_token_mcp_only`: the caller sent an OAuth access token (`lgo_`), which is accepted
only by `mcpMessage` and the tool calls it dispatches. Every other operation answers it, whatever
the token's scope. Use an API key or the Legion web app.

`org_suspended`: the caller's organization is suspended. Every operation that takes a
credential answers it, by session or API key, except `getMe` (which shows `org.suspended_at` and
`org.suspension_reason`) and the support operations under `/v1/support/`.

`terms_not_accepted`: an approved caller who has not accepted
the current version of the Terms of Use and the Acceptable Use Policy. Every operation that takes a credential answers it, except `getMe`,
`acceptLegalDocuments`, `joinMyWaitlist` and the wind-down operations
(`listRentals`, `stopRental`, `deleteRental`, `listHosts`,
`updateListing` with `listed` false, `removeHost`); the problem
carries `legal`. An API key acts for the person who created it, so it
is refused until that person accepts. Terminal
operations also return
`session_required` (called with an API key) and `step_up_required`
(neither a sign-in nor a step-up challenge within the step-up window).

### 404

The resource does not exist or belongs to another organization.

### 500

An unexpected server error. Safe to retry.

## Errors

- 400 [`invalid_cursor`](https://legion.ambient.xyz/docs/errors#invalid_cursor)
- 403 [`no_organization`](https://legion.ambient.xyz/docs/errors#no_organization)

## Example request

```sh
curl -s "https://api.legion.ambient.xyz/v1/hosts/$HOST_ID/listing-history" \
  -H "Authorization: Bearer $LEGION_API_KEY"
```
